Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: default value can now be supplied as aditional arg of the SHELL_COMMAND-macro

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