Nebula
|
#include <gameapplication.h>
Nebula's default game application.
It creates and triggers the GameServer. For game features it creates the core and graphicsfeature which is used in every gamestate (such as level gamestates or only gui gamestates).
Inherits App::Application.
Classes | |
class | GameAppExitHandler |
Protected Member Functions | |
virtual void | SetupGameFeatures () |
setup game features | |
virtual void | CleanupGameFeatures () |
cleanup game features | |
virtual void | SetupAppFromCmdLineArgs () |
setup app from cmd lines | |
_declare_timer (GameApplicationFrameTimeAll) | |
Protected Member Functions inherited from App::Application | |
void | SetReturnCode (int c) |
set return code | |
Protected Attributes | |
Ptr< Core::CoreServer > | coreServer |
Ptr< IO::GameContentServer > | gameContentServer |
Ptr< Resources::ResourceServer > | resourceServer |
Ptr< IO::IoServer > | ioServer |
Ptr< IO::IoInterface > | ioInterface |
Ptr< BaseGameFeature::BaseGameFeatureUnit > | baseGameFeature |
Ptr< Game::GameServer > | gameServer |
GameAppExitHandler | exitHandler |
Protected Attributes inherited from App::Application | |
Util::String | companyName |
Util::String | appName |
Util::String | appID |
Util::String | appVersion |
Util::CommandLineArgs | args |
bool | isOpen |
int | returnCode |
Private Member Functions | |
virtual __DeclareSingleton(GameApplication) public | ~GameApplication () |
destructor | |
virtual bool | Open () |
open the application | |
virtual void | Close () |
close the application | |
virtual void | Run () |
run the application | |
virtual void | StepFrame () |
step one frame | |
Static Private Attributes | |
static IndexT | FrameIndex = -1 |
Additional Inherited Members | |
Public Member Functions inherited from App::Application | |
Application () | |
constructor | |
virtual | ~Application () |
destructor | |
void | SetCompanyName (const Util::String &n) |
set company name | |
const Util::String & | GetCompanyName () const |
get company name | |
void | SetAppTitle (const Util::String &n) |
set application name | |
const Util::String & | GetAppTitle () const |
get application name | |
void | SetAppID (const Util::String &n) |
set application id | |
const Util::String & | GetAppID () const |
get application id | |
void | SetAppVersion (const Util::String &n) |
set application version | |
const Util::String & | GetAppVersion () const |
get application version | |
void | SetCmdLineArgs (const Util::CommandLineArgs &a) |
set command line args | |
const Util::CommandLineArgs & | GetCmdLineArgs () const |
get command line args | |
virtual void | Exit () |
exit the application, call right before leaving main() | |
bool | IsOpen () const |
return true if app is open | |
int | GetReturnCode () const |
get the return code | |
|
privatevirtual |
destructor
|
protected |
|
protectedvirtual |
cleanup game features
Cleanup all added game features.
|
privatevirtual |
close the application
Reimplemented from App::Application.
|
privatevirtual |
open the application
Reimplemented from App::Application.
|
privatevirtual |
run the application
Run the application.
This method will return when the application wishes to exit.
Reimplemented from App::Application.
|
protectedvirtual |
setup app from cmd lines
|
protectedvirtual |
setup game features
Setup new game features which should be used by this application.
Overwride for all features which have to be used.
Make sure that features are setup ONLY in this method, since other systems might not expect otherwise.
|
privatevirtual |
step one frame
|
protected |
|
protected |
|
protected |
|
staticprivate |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |