diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-09 23:06:00 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-09 23:06:00 +0000 |
commit | 31959bc355c471c573828bf63932850e46c4b5bc (patch) | |
tree | cc473901e88926e36c89775a7fc97a51da948498 /src/core/application.h | |
parent | d281384f727583b39b8e97ffea58b278ecc8dd47 (diff) |
more entities
Diffstat (limited to 'src/core/application.h')
-rw-r--r-- | src/core/application.h | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/src/core/application.h b/src/core/application.h index 34e0a97..1e2869a 100644 --- a/src/core/application.h +++ b/src/core/application.h @@ -7,43 +7,45 @@ #ifndef __INCLUDED_CORE_APPLICATION_H__ #define __INCLUDED_CORE_APPLICATION_H__ -namespace core { +namespace core +{ /// core interface for the client and server Application classes -class Application { +class Application +{ public: /// default constructor Application(); - + /// default destructor virtual ~Application(); - + /// initialize the application virtual void init(); - + /// shutdown the application virtual void shutdown(); - + /// run a core frame virtual void frame(float seconds); - + /// a pointer to the current console instance static Application *instance(); - + /// quit the application virtual void quit(int status); - + /// load the game module void connect(); - + /// disconnect from the game module void disconnect(); - + /// time the core has been running, in seconds float current_time; - + /// global application object - static Application *application_instance; + static Application *application_instance; }; |