Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/atmospheric_engine/src/orxonox.h @ 7767

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