Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 9698 was 7256, checked in by bensch, 19 years ago

orxonox/trunk: merged the preferences back to the trunk
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/preferences . -r7233:HEAD
no conflicts… nice work

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
[7256]24  int init(int argc, char** argv, const std::string & 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
[7256]51  std::string       serverName;              //!< Name of the Orxonox client if == "" -> server
[5996]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////////////////////////
[7256]59
[5996]60int startNetworkOrxonox(int argc, char** argv);
[7256]61int startOrxonox(int argc, char** argv, const std::string & clientName, int port);
[3648]62
[3224]63#endif /* _ORXONOX_H */
[1850]64
Note: See TracBrowser for help on using the repository browser.