Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 4285 was 4262, checked in by bensch, 19 years ago

orxonox/trunk: moved around some files, and deleted the obsolete DataTank

File size: 1.6 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;
[2036]14class World;
[2190]15class Camera;
[2636]16class GameLoader;
[3655]17class ResourceManager;
[1850]18
[2190]19//! Orxonox core singleton class
20/**
21*/
[1803]22class Orxonox {
23
[1850]24 private:
[3226]25  static Orxonox* singletonRef;
[1850]26  Orxonox ();
[3543]27
[3449]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
[3655]33  ResourceManager* resourceManager; //!< The ResourceManager
[2190]34 
[3449]35  bool bQuitOrxonox;          //!< If Orxonox should Quit
36  bool pause;                 //!< Pause mode
37  Uint32 lastframe;           //!< Time of the last Frame
[2636]38 
[4135]39  unsigned int argc;          //!< Count of Arguments of orxonox
40  char** argv;                //!< Values of th Arguments of orxonox.
41 
[3226]42  void getConfigFile (int argc, char** argv);
[2636]43 
[4135]44  // subsystem initialization
[3226]45  int initVideo ();
46  int initSound ();
47  int initInput ();
48  int initNetworking ();
49  int initResources ();
50  int initWorld ();
[2190]51 
52 public:
53  static Orxonox* getInstance ();
[3660]54  virtual ~Orxonox ();
55
[2636]56  void start();
[2190]57  void quitGame();
[1879]58
[3226]59  void eventHandler (SDL_Event* event);
60  bool systemCommand (Command* cmd);
[1897]61
[2190]62  int init (int argc, char** argv);
[2636]63 
[3226]64  CommandNode* getLocalInput();
65  World* getWorld();
[3365]66  SDL_Surface* getScreen ();
[2636]67 
[3214]68  //void mainLoop();
[1803]69};
70
[4132]71int startHelp(int argc, char** argv);
[3648]72int startOrxonox(int argc, char** argv);
73
[3224]74#endif /* _ORXONOX_H */
[1850]75
Note: See TracBrowser for help on using the repository browser.