#include <GameEngine.h>
Inherits SubsystemInterface.
Inherited by Win32GameEngine.
Public Member Functions | |
| GameEngine (void) | |
| virtual | ~GameEngine () |
| virtual void | init (void) |
| Init engine by creating client and logic. | |
| virtual void | init (int argc, char *argv[]) |
| Init engine by creating client and logic. | |
| virtual void | reset (void) |
| reset system to starting state | |
| virtual void | update (void) |
| per frame update | |
| virtual void | execute (void) |
| virtual void | setFramesPerSecondLimit (Int fps) |
| Set the maximum rate engine updates are allowed to occur. | |
| virtual Int | getFramesPerSecondLimit (void) |
| Get maxFPS. Not inline since it is called from another lib. | |
| virtual void | setQuitting (Bool quitting) |
| set quitting status | |
| virtual Bool | getQuitting (void) |
| is app getting ready to quit. | |
| virtual Bool | isMultiplayerSession (void) |
| virtual void | serviceWindowsOS (void) |
| virtual Bool | isActive (void) |
| service the native OS | |
| virtual void | setIsActive (Bool isActive) |
Public Member Functions inherited from SubsystemInterface | |
| SubsystemInterface () | |
| virtual | ~SubsystemInterface () |
| virtual void | postProcessLoad () |
| virtual void | draw (void) |
| void | UPDATE (void) |
| void | DRAW (void) |
| AsciiString | getName (void) |
| void | setName (AsciiString name) |
Protected Member Functions | |
| virtual FileSystem * | createFileSystem (void) |
| Factory for FileSystem classes. | |
| virtual LocalFileSystem * | createLocalFileSystem (void)=0 |
| Factory for LocalFileSystem classes. | |
| virtual ArchiveFileSystem * | createArchiveFileSystem (void)=0 |
| Factory for ArchiveFileSystem classes. | |
| virtual GameLogic * | createGameLogic (void)=0 |
| Factory for GameLogic classes. | |
| virtual GameClient * | createGameClient (void)=0 |
| Factory for GameClient classes. | |
| virtual MessageStream * | createMessageStream (void) |
| Factory for the message stream. | |
| virtual ModuleFactory * | createModuleFactory (void)=0 |
| Factory for modules. | |
| virtual ThingFactory * | createThingFactory (void)=0 |
| Factory for the thing factory. | |
| virtual FunctionLexicon * | createFunctionLexicon (void)=0 |
| Factory for Function Lexicon. | |
| virtual Radar * | createRadar (void)=0 |
| Factory for radar. | |
| virtual WebBrowser * | createWebBrowser (void)=0 |
| Factory for embedded browser. | |
| virtual ParticleSystemManager * | createParticleSystemManager (void)=0 |
| virtual AudioManager * | createAudioManager (void)=0 |
| Factory for Audio Manager. | |
Protected Attributes | |
| Int | m_maxFPS |
| Maximum frames per second allowed. | |
| Bool | m_quitting |
| true when we need to quit the game | |
| Bool | m_isActive |
| app has OS focus. | |
Protected Attributes inherited from SubsystemInterface | |
| AsciiString | m_name |
The implementation of the game engine
Definition at line 61 of file GameEngine.h.
| GameEngine::GameEngine | ( | void | ) |
Definition at line 183 of file GameEngine.cpp.
|
virtual |
Definition at line 197 of file GameEngine.cpp.
|
protectedpure virtual |
Factory for ArchiveFileSystem classes.
Implemented in Win32GameEngine.
|
protectedpure virtual |
Factory for Audio Manager.
Implemented in Win32GameEngine.
|
protectedvirtual |
Factory for FileSystem classes.
Definition at line 923 of file GameEngine.cpp.
|
protectedpure virtual |
Factory for Function Lexicon.
Implemented in Win32GameEngine.
|
protectedpure virtual |
Factory for GameClient classes.
Implemented in Win32GameEngine.
|
protectedpure virtual |
Factory for GameLogic classes.
Implemented in Win32GameEngine.
|
protectedpure virtual |
Factory for LocalFileSystem classes.
Implemented in Win32GameEngine.
|
protectedvirtual |
Factory for the message stream.
Factory for the message stream
Definition at line 915 of file GameEngine.cpp.
|
protectedpure virtual |
Factory for modules.
Implemented in Win32GameEngine.
|
protectedpure virtual |
Implemented in Win32GameEngine.
|
protectedpure virtual |
Factory for radar.
Implemented in Win32GameEngine.
|
protectedpure virtual |
Factory for the thing factory.
Implemented in Win32GameEngine.
|
protectedpure virtual |
Factory for embedded browser.
Implemented in Win32GameEngine.
|
virtual |
The "main loop" of the game engine. It will not return until the game exits.
The "main loop" of the game engine. It will not return until the game exits.
Definition at line 789 of file GameEngine.cpp.
|
virtual |
Get maxFPS. Not inline since it is called from another lib.
Definition at line 177 of file GameEngine.cpp.
|
inlinevirtual |
is app getting ready to quit.
Definition at line 108 of file GameEngine.h.
|
virtual |
Init engine by creating client and logic.
Definition at line 251 of file GameEngine.cpp.
|
virtual |
Init engine by creating client and logic.
Initialize the game engine by initializing the GameLogic and GameClient.
Implements SubsystemInterface.
Reimplemented in Win32GameEngine.
Definition at line 250 of file GameEngine.cpp.
|
inlinevirtual |
|
virtual |
Definition at line 929 of file GameEngine.cpp.
|
virtual |
reset system to starting state
Reset all necessary parts of the game engine to be ready to accept new game data
Implements SubsystemInterface.
Reimplemented in Win32GameEngine.
Definition at line 709 of file GameEngine.cpp.
|
inlinevirtual |
Reimplemented in Win32GameEngine.
Definition at line 82 of file GameEngine.h.
|
virtual |
Set the maximum rate engine updates are allowed to occur.
Definition at line 241 of file GameEngine.cpp.
|
inlinevirtual |
Definition at line 84 of file GameEngine.h.
|
inlinevirtual |
set quitting status
Definition at line 107 of file GameEngine.h.
|
virtual |
per frame update
Update the game engine by updating the GameClient and GameLogic singletons.
Implements SubsystemInterface.
Reimplemented in Win32GameEngine.
Definition at line 746 of file GameEngine.cpp.
|
protected |
app has OS focus.
Definition at line 104 of file GameEngine.h.
|
protected |
Maximum frames per second allowed.
Definition at line 102 of file GameEngine.h.
|
protected |
true when we need to quit the game
Definition at line 103 of file GameEngine.h.