google-code-export / gtge

Automatically exported from code.google.com/p/gtge
2 stars 0 forks source link

GameLoader should not extend Applet nor AppletMode #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The GameLoader class should not extend the Applet nor the AppletMode class.  
Instead, a new class should be created, in the com.golden.gamedev.loader 
package, called AppletGameLoader that provides this functionality.  When 
complete, GameLoader should be wiped clean of code and extend this class, and 
become deprecated, as it will then be deleted in 0.2.5.

Original issue reported on code.google.com by MetroidF...@gmail.com on 7 Jun 2010 at 12:56

GoogleCodeExporter commented 9 years ago
Actually, three GameLoaders need to be constructed:

AppletModeGameLoader - preserves hierarchy currently existing due to bad 
inheritance tree of Applet->AppletMode->GameLoader.  This class will be 
immediately deprecated due to bad inheritance design, but it will exist in 
0.2.4 to allow users to port their games over to:

AppletGameLoader - a GameLoader that does not expose methods from either Applet 
or AppletGameMode except those that actually have to deal with loading a game.  
This loader is *not* an Applet nor is it a BaseGraphics (AppletMode).

DesktopGameLoader - this GameLoader loads only WindowedMode or FullScreenMode 
games.

Original comment by MetroidF...@gmail.com on 7 Jun 2010 at 1:04