Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/orxonox.h @ 4445

Last change on this file since 4445 was 4445, checked in by patrick, 19 years ago

orxonox/trunk: cleaned up the orxonox class: removed all unused variables and functions

File size: 1.5 KB
RevLine 
[2190]1/*!
2    \file orxonox.h
3    \brief Orxonox core functions
4*/ 
[1856]5
[3224]6#ifndef _ORXONOX_H
7#define _ORXONOX_H
[1803]8
[3608]9#include "glincl.h"
[4408]10#include "event_listener.h"
[2190]11
[4408]12
[4445]13
[2190]14class WorldEntity;
[2036]15class World;
[2190]16class Camera;
[2636]17class GameLoader;
[3655]18class ResourceManager;
[4286]19class ObjectManager;
[4408]20class EventHandler;
21class Event;
[1850]22
[2190]23//! Orxonox core singleton class
24/**
25*/
[4408]26class Orxonox : public EventListener {
[1803]27
[4445]28
29 public:
30  static Orxonox* getInstance ();
31  virtual ~Orxonox ();
32  int init (int argc, char** argv);
33
34  void start();
35  void quitGame();
36
37  void graphicsHandler (SDL_Event* event);
38  void process(const Event  &event);
39
[1850]40 private:
[4445]41  int initVideo ();
42  int initSound ();
43  int initInput ();
44  int initNetworking ();
45  int initResources ();
46
47 private:
[3226]48  static Orxonox* singletonRef;
[1850]49  Orxonox ();
[3543]50
[3449]51  char configfilename[256];   //!< Filename of the configuration-file.
52  GameLoader* gameLoader;     //!< The gameLoader
[3655]53  ResourceManager* resourceManager; //!< The ResourceManager
[4286]54  ObjectManager* objectManager; //!< the object manager of the game
[4408]55  EventHandler* eventHandler;
[2190]56 
[3449]57  bool bQuitOrxonox;          //!< If Orxonox should Quit
58  bool pause;                 //!< Pause mode
59  Uint32 lastframe;           //!< Time of the last Frame
[2636]60 
[4135]61  unsigned int argc;          //!< Count of Arguments of orxonox
62  char** argv;                //!< Values of th Arguments of orxonox.
63 
[3226]64  void getConfigFile (int argc, char** argv);
[3660]65
[2636]66 
[4442]67
[1803]68};
69
[4132]70int startHelp(int argc, char** argv);
[3648]71int startOrxonox(int argc, char** argv);
72
[3224]73#endif /* _ORXONOX_H */
[1850]74
Note: See TracBrowser for help on using the repository browser.