Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: Iniparser is passed on to the EvenetHandler over orxonox

File size: 1.4 KB
Line 
1/*!
2    \file orxonox.h
3  *  Orxonox core functions
4*/
5
6#ifndef _ORXONOX_H
7#define _ORXONOX_H
8
9#include "base_object.h"
10
11class WorldEntity;
12class GameLoader;
13class IniParser;
14
15//! orxonox core singleton class
16/**
17*/
18class Orxonox : public BaseObject {
19
20 public:
21  virtual ~Orxonox ();
22  /** @returns a Pointer to the only object of this Class */
23  inline static Orxonox* getInstance() { if (!singletonRef) singletonRef = new Orxonox();  return singletonRef; };
24
25  int init (int argc, char** argv);
26
27  void start();
28
29  //void graphicsHandler (SDL_Event* event);
30
31 private:
32  Orxonox ();
33
34  void parseIniFile(const char* fileName);
35
36  int initVideo ();
37  int initSound ();
38  int initInput ();
39  int initNetworking ();
40  int initResources ();
41
42  const char* getConfigFile ();
43
44 private:
45  static Orxonox*   singletonRef;            //!< singleton reference to orxonox
46
47  IniParser*        iniParser;               //!< Reference to the ini-parser used in orxonox
48  char*             configFileName;          //!< Filename of the configuration-file.
49  GameLoader*       gameLoader;              //!< The gameLoader
50
51  unsigned int      argc;                    //!< Count of Arguments of orxonox
52  char**            argv;                    //!< Values of th Arguments of orxonox.
53};
54
55
56
57
58int startHelp(int argc, char** argv);
59int startOrxonox(int argc, char** argv);
60
61#endif /* _ORXONOX_H */
62
Note: See TracBrowser for help on using the repository browser.