Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 5991 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
RevLine 
[4766]1/*!
[5018]2 * @file orxonox.h
3 * Orxonox core functions
[4766]4*/
[1856]5
[3224]6#ifndef _ORXONOX_H
7#define _ORXONOX_H
[1803]8
[4817]9#include "base_object.h"
[2190]10
11class WorldEntity;
[2636]12class GameLoader;
[4766]13class IniParser;
[1850]14
[4768]15//! orxonox core singleton class
[2190]16/**
17*/
[4817]18class Orxonox : public BaseObject {
[1803]19
[4445]20 public:
21  virtual ~Orxonox ();
[4836]22  /** @returns a Pointer to the only object of this Class */
[4766]23  inline static Orxonox* getInstance() { if (!singletonRef) singletonRef = new Orxonox();  return singletonRef; };
24
[4445]25  int init (int argc, char** argv);
26
[5207]27  void restart();
28
[4445]29  void start();
30
[4817]31  //void graphicsHandler (SDL_Event* event);
[4445]32
[1850]33 private:
[4447]34  Orxonox ();
35
[4766]36  void parseIniFile(const char* fileName);
37
[5074]38  int initResources ();
[4445]39  int initVideo ();
40  int initSound ();
41  int initInput ();
42  int initNetworking ();
[5074]43  int initMisc ();
[4445]44
[5207]45
[4830]46  const char* getConfigFile ();
[4446]47
[4445]48 private:
[4447]49  static Orxonox*   singletonRef;            //!< singleton reference to orxonox
[3543]50
[4766]51  IniParser*        iniParser;               //!< Reference to the ini-parser used in orxonox
[4830]52  char*             configFileName;          //!< Filename of the configuration-file.
[4447]53  GameLoader*       gameLoader;              //!< The gameLoader
[4766]54
[4447]55  unsigned int      argc;                    //!< Count of Arguments of orxonox
56  char**            argv;                    //!< Values of th Arguments of orxonox.
[1803]57};
58
[4447]59
[5024]60////////////////////////
61// Start-up functions //
62////////////////////////
[4132]63int startHelp(int argc, char** argv);
[3648]64int startOrxonox(int argc, char** argv);
65
[3224]66#endif /* _ORXONOX_H */
[1850]67
Note: See TracBrowser for help on using the repository browser.