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-05 00:41:59 +0000
committerStijn Buys <ingar@osirion.org>2008-02-05 00:41:59 +0000
commit8ee5d47d7e1336eb69064ca31e27bbfa7d86b51e (patch)
treeb4ac5b825a118e8c88f4003603bca231ea3bc8bb /src/core/application.h
parente63d8bec31ad067efb7aafd1c798bcdab8db8faf (diff)
renamed ApplicationInterface to Application
Diffstat (limited to 'src/core/application.h')
-rw-r--r--src/core/application.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/core/application.h b/src/core/application.h
new file mode 100644
index 0000000..985c823
--- /dev/null
+++ b/src/core/application.h
@@ -0,0 +1,53 @@
+/*
+ core/application.h
+ This file is part of the Osirion project and is distributed under
+ the terms of the GNU General Public License version 2.
+*/
+
+#ifndef __INCLUDED_CORE_APPLICATION_H__
+#define __INCLUDED_CORE_APPLICATION_H__
+
+namespace core {
+
+/// core interface for the client and server Application classes
+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);
+
+ /// connect to 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;
+};
+
+
+} // namespace core
+
+#endif // __INCLUDED_CORE_APPLICATION_H__
+