/*! \file orxonox.h \brief Orxonox core functions */ #ifndef _ORXONOX_H #define _ORXONOX_H #include "glincl.h" #include "event_listener.h" class WorldEntity; class World; class Camera; class GameLoader; class ResourceManager; class ObjectManager; class EventHandler; class Event; //! Orxonox core singleton class /** */ class Orxonox : public EventListener { public: static Orxonox* getInstance (); virtual ~Orxonox (); int init (int argc, char** argv); void start(); void quitGame(); void graphicsHandler (SDL_Event* event); void process(const Event &event); private: int initVideo (); int initSound (); int initInput (); int initNetworking (); int initResources (); private: static Orxonox* singletonRef; Orxonox (); char configfilename[256]; //!< Filename of the configuration-file. GameLoader* gameLoader; //!< The gameLoader ResourceManager* resourceManager; //!< The ResourceManager ObjectManager* objectManager; //!< the object manager of the game EventHandler* eventHandler; bool bQuitOrxonox; //!< If Orxonox should Quit bool pause; //!< Pause mode Uint32 lastframe; //!< Time of the last Frame unsigned int argc; //!< Count of Arguments of orxonox char** argv; //!< Values of th Arguments of orxonox. void getConfigFile (int argc, char** argv); }; int startHelp(int argc, char** argv); int startOrxonox(int argc, char** argv); #endif /* _ORXONOX_H */