Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: finished cleaning up orxonox.cc

File size: 1.2 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 "event_listener.h"
10
11class WorldEntity;
12class GameLoader;
13class ResourceManager;
14class ObjectManager;
15class EventHandler;
16class Event;
17
18//! Orxonox core singleton class
19/**
20*/
21class Orxonox : public EventListener {
22
23
24 public:
25  static Orxonox* getInstance ();
26  virtual ~Orxonox ();
27  int init (int argc, char** argv);
28
29  void start();
30
31  void graphicsHandler (SDL_Event* event);
32  void process(const Event  &event);
33
34 private:
35  int initVideo ();
36  int initSound ();
37  int initInput ();
38  int initNetworking ();
39  int initResources ();
40
41  void getConfigFile (int argc, char** argv);
42
43 private:
44  static Orxonox* singletonRef;
45  Orxonox ();
46
47  char configfilename[256];   //!< Filename of the configuration-file.
48  GameLoader* gameLoader;     //!< The gameLoader
49  ResourceManager* resourceManager; //!< The ResourceManager
50  ObjectManager* objectManager; //!< the object manager of the game
51  EventHandler* eventHandler;
52 
53  unsigned int argc;          //!< Count of Arguments of orxonox
54  char** argv;                //!< Values of th Arguments of orxonox.
55};
56
57int startHelp(int argc, char** argv);
58int startOrxonox(int argc, char** argv);
59
60#endif /* _ORXONOX_H */
61
Note: See TracBrowser for help on using the repository browser.