Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 4768 was 4768, checked in by bensch, 19 years ago

orxonox/trunk: ini-parser small cleanup char* → const char*

File size: 1.7 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;
17class IniParser;
18
19//! orxonox core singleton class
20/**
21*/
22class Orxonox : public EventListener {
23
24 public:
25  virtual ~Orxonox ();
26  /** \returns a Pointer to the only object of this Class */
27  inline static Orxonox* getInstance() { if (!singletonRef) singletonRef = new Orxonox();  return singletonRef; };
28
29  int init (int argc, char** argv);
30
31  void start();
32
33  void graphicsHandler (SDL_Event* event);
34  void process(const Event  &event);
35
36 private:
37  Orxonox ();
38
39  void parseIniFile(const char* fileName);
40
41  int initVideo ();
42  int initSound ();
43  int initInput ();
44  int initNetworking ();
45  int initResources ();
46
47  const char* getConfigFile (int argc, char** argv);
48
49 private:
50  static Orxonox*   singletonRef;            //!< singleton reference to orxonox
51
52  IniParser*        iniParser;               //!< Reference to the ini-parser used in orxonox
53  char              configFileName[256];     //!< Filename of the configuration-file.
54  GameLoader*       gameLoader;              //!< The gameLoader
55  ResourceManager*  resourceManager;         //!< The ResourceManager
56  ObjectManager*    objectManager;           //!< the object manager of the game
57  EventHandler*     eventHandler;            //!< the eventhandler of orxonox is created here
58
59  unsigned int      argc;                    //!< Count of Arguments of orxonox
60  char**            argv;                    //!< Values of th Arguments of orxonox.
61};
62
63
64
65
66int startHelp(int argc, char** argv);
67int startOrxonox(int argc, char** argv);
68
69#endif /* _ORXONOX_H */
70
Note: See TracBrowser for help on using the repository browser.