Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Shell: the shell outputs one Line now :)

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 initResources ();
37  int initVideo ();
38  int initSound ();
39  int initInput ();
40  int initNetworking ();
41  int initMisc ();
42
43  const char* getConfigFile ();
44
45 private:
46  static Orxonox*   singletonRef;            //!< singleton reference to orxonox
47
48  IniParser*        iniParser;               //!< Reference to the ini-parser used in orxonox
49  char*             configFileName;          //!< Filename of the configuration-file.
50  GameLoader*       gameLoader;              //!< The gameLoader
51
52  unsigned int      argc;                    //!< Count of Arguments of orxonox
53  char**            argv;                    //!< Values of th Arguments of orxonox.
54};
55
56
57////////////////////////
58// Start-up functions //
59////////////////////////
60int startHelp(int argc, char** argv);
61int startOrxonox(int argc, char** argv);
62
63#endif /* _ORXONOX_H */
64
Note: See TracBrowser for help on using the repository browser.