From 8ee5d47d7e1336eb69064ca31e27bbfa7d86b51e Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 5 Feb 2008 00:41:59 +0000 Subject: renamed ApplicationInterface to Application --- src/core/application.h | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/core/application.h (limited to 'src/core/application.h') 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__ + -- cgit v1.2.3