Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-02-09 23:06:00 +0000
committerStijn Buys <ingar@osirion.org>2008-02-09 23:06:00 +0000
commit31959bc355c471c573828bf63932850e46c4b5bc (patch)
treecc473901e88926e36c89775a7fc97a51da948498 /src/core/application.h
parentd281384f727583b39b8e97ffea58b278ecc8dd47 (diff)
more entities
Diffstat (limited to 'src/core/application.h')
-rw-r--r--src/core/application.h28
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;
};