Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: renamed all the \param → @param and so on in Doxygen tags.
Thanks a lot to the kDevelop team. this took since the last commit :)

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 Event;
14class IniParser;
15
16//! orxonox core singleton class
17/**
18*/
19class Orxonox : public BaseObject {
20
21 public:
22  virtual ~Orxonox ();
23  /** @returns a Pointer to the only object of this Class */
24  inline static Orxonox* getInstance() { if (!singletonRef) singletonRef = new Orxonox();  return singletonRef; };
25
26  int init (int argc, char** argv);
27
28  void start();
29
30  //void graphicsHandler (SDL_Event* event);
31
32 private:
33  Orxonox ();
34
35  void parseIniFile(const char* fileName);
36
37  int initVideo ();
38  int initSound ();
39  int initInput ();
40  int initNetworking ();
41  int initResources ();
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
59int startHelp(int argc, char** argv);
60int startOrxonox(int argc, char** argv);
61
62#endif /* _ORXONOX_H */
63
Note: See TracBrowser for help on using the repository browser.