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
Line 
1/*!
2    \file orxonox.h
3    \brief Orxonox core functions
4*/ 
5
6#ifndef _ORXONOX_H
7#define _ORXONOX_H
8
9#include "glincl.h"
10#include "event_listener.h"
11
12
13
14class WorldEntity;
15class World;
16class Camera;
17class GameLoader;
18class ResourceManager;
19class ObjectManager;
20class EventHandler;
21class Event;
22
23//! Orxonox core singleton class
24/**
25*/
26class Orxonox : public EventListener {
27
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
40 private:
41  int initVideo ();
42  int initSound ();
43  int initInput ();
44  int initNetworking ();
45  int initResources ();
46
47 private:
48  static Orxonox* singletonRef;
49  Orxonox ();
50
51  char configfilename[256];   //!< Filename of the configuration-file.
52  GameLoader* gameLoader;     //!< The gameLoader
53  ResourceManager* resourceManager; //!< The ResourceManager
54  ObjectManager* objectManager; //!< the object manager of the game
55  EventHandler* eventHandler;
56 
57  bool bQuitOrxonox;          //!< If Orxonox should Quit
58  bool pause;                 //!< Pause mode
59  Uint32 lastframe;           //!< Time of the last Frame
60 
61  unsigned int argc;          //!< Count of Arguments of orxonox
62  char** argv;                //!< Values of th Arguments of orxonox.
63 
64  void getConfigFile (int argc, char** argv);
65
66 
67
68};
69
70int startHelp(int argc, char** argv);
71int startOrxonox(int argc, char** argv);
72
73#endif /* _ORXONOX_H */
74
Note: See TracBrowser for help on using the repository browser.