Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/preferences/src/orxonox.h @ 7250

Last change on this file since 7250 was 7250, checked in by rennerc, 18 years ago

implemented -h/—help argument

File size: 1.6 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;
[1850]13
[4768]14//! orxonox core singleton class
[2190]15/**
16*/
[4817]17class Orxonox : public BaseObject {
[1803]18
[4445]19 public:
20  virtual ~Orxonox ();
[4836]21  /** @returns a Pointer to the only object of this Class */
[4766]22  inline static Orxonox* getInstance() { if (!singletonRef) singletonRef = new Orxonox();  return singletonRef; };
23
[5996]24  int init(int argc, char** argv, const char* name, int port);
[4445]25
[5207]26  void restart();
27
[4445]28  void start();
29
[1850]30 private:
[4447]31  Orxonox ();
32
[5074]33  int initResources ();
[4445]34  int initVideo ();
35  int initSound ();
36  int initInput ();
37  int initNetworking ();
[5074]38  int initMisc ();
[4445]39
[7221]40  const std::string& getConfigFile ();
[4446]41
[4445]42 private:
[4447]43  static Orxonox*   singletonRef;            //!< singleton reference to orxonox
[3543]44
[7221]45  std::string       configFileName;          //!< Filename of the configuration-file.
[4447]46  GameLoader*       gameLoader;              //!< The gameLoader
[4766]47
[4447]48  unsigned int      argc;                    //!< Count of Arguments of orxonox
49  char**            argv;                    //!< Values of th Arguments of orxonox.
[5996]50
51  const char*       serverName;              //!< Name of the Orxonox client if == NULL -> server
52  int               port;                    //!< number of the network port of the server/client if == -1 no network
[1803]53};
54
[4447]55
[5024]56////////////////////////
57// Start-up functions //
58////////////////////////
[5996]59int showHelp(int argc, char** argv);
60int showLicense();
61int startNetworkOrxonox(int argc, char** argv);
62int startOrxonox(int argc, char** argv, const char* clientName, int port);
[3648]63
[3224]64#endif /* _ORXONOX_H */
[1850]65
Note: See TracBrowser for help on using the repository browser.