Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/heightMap/src/orxonox.h @ 4809

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

orxonox/branches/heightMap: merged trunk back to the heightMap branche
merged with command:
svn merge trunk/ branches/heightMap/ -r 4122:HEAD

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