Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/physics/src/orxonox.h @ 4283

Last change on this file since 4283 was 4283, checked in by bensch, 20 years ago

orxonox/branches/physics: merged the trunk back to branches/physics
merged with command
svn merge -r 4223:HEAD ../../trunk/ .
conflicts additively included

File size: 1.6 KB
Line 
1/*!
2    \file orxonox.h
3    \brief Orxonox core functions
4*/ 
5
6#ifndef _ORXONOX_H
7#define _ORXONOX_H
8
9#include "comincl.h"
10#include "glincl.h"
11
12class CommandNode;
13class WorldEntity;
14class World;
15class Camera;
16class GameLoader;
17class ResourceManager;
18
19//! Orxonox core singleton class
20/**
21*/
22class Orxonox {
23
24 private:
25  static Orxonox* singletonRef;
26  Orxonox ();
27
28  char configfilename[256];   //!< Filename of the configuration-file.
29  World* world;               //!< Reference to the current running world.
30  CommandNode* localinput;    //!< Command Handler
31  SDL_Surface* screen;        //!< The current Screen
32  GameLoader* gameLoader;     //!< The gameLoader
33  ResourceManager* resourceManager; //!< The ResourceManager
34 
35  bool bQuitOrxonox;          //!< If Orxonox should Quit
36  bool pause;                 //!< Pause mode
37  Uint32 lastframe;           //!< Time of the last Frame
38 
39  unsigned int argc;          //!< Count of Arguments of orxonox
40  char** argv;                //!< Values of th Arguments of orxonox.
41 
42  void getConfigFile (int argc, char** argv);
43 
44  // subsystem initialization
45  int initVideo ();
46  int initSound ();
47  int initInput ();
48  int initNetworking ();
49  int initResources ();
50  int initWorld ();
51 
52 public:
53  static Orxonox* getInstance ();
54  virtual ~Orxonox ();
55
56  void start();
57  void quitGame();
58
59  void eventHandler (SDL_Event* event);
60  bool systemCommand (Command* cmd);
61
62  int init (int argc, char** argv);
63 
64  CommandNode* getLocalInput();
65  World* getWorld();
66  SDL_Surface* getScreen ();
67 
68  //void mainLoop();
69};
70
71int startHelp(int argc, char** argv);
72int startOrxonox(int argc, char** argv);
73
74#endif /* _ORXONOX_H */
75
Note: See TracBrowser for help on using the repository browser.