Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/trackManager/src/orxonox.h @ 3498

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

orxonox/branches/trackManager: merged trunk back to tracManager R3440:3497 → 3498
merged with command:
svn merge ../trunk/ trackManager/ -r 3430:HEAD
conflicts resolved in favor of the Trunk

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
[2190]9#include "stdincl.h"
10
11class CommandNode;
12class WorldEntity;
13class DataTank;
[2036]14class World;
[2190]15class Camera;
[2636]16class GameLoader;
[1850]17
[2190]18//! Orxonox core singleton class
19/**
20*/
[1803]21class Orxonox {
22
[1850]23 private:
[3226]24  static Orxonox* singletonRef;
[1850]25  Orxonox ();
26  ~Orxonox ();
[2190]27 
[3498]28  char configfilename[256];   //!< Filename of the configuration-file.
29  World* world;               //!< Reference to the current running world.
30  DataTank* resources;        //!< DataContainer
31  CommandNode* localinput;    //!< Command Handler
32  Camera* localcamera;        //!< The current Camera
33  SDL_Surface* screen;        //!< The current Screen
34  GameLoader* gameLoader;     //!< The gameLoader
[2190]35 
[3498]36  bool bQuitOrxonox;          //!< If Orxonox should Quit
37  bool pause;                 //!< Pause mode
38  Uint32 lastframe;           //!< Time of the last Frame
[2636]39 
[3226]40  void getConfigFile (int argc, char** argv);
[2636]41 
42  // main loop functions
[3214]43  //  void synchronize ();
44  //void handle_input ();
45  //void time_slice ();
46  //void collision ();
47  //void display ();
[2190]48 
49        // subsystem initialization
[3226]50  int initVideo ();
51  int initSound ();
52  int initInput ();
53  int initNetworking ();
54  int initResources ();
55  int initWorld ();
[2190]56 
57 public:
58  static Orxonox* getInstance ();
[2636]59  void start();
[2190]60  void quitGame();
[1879]61
[3226]62  void eventHandler (SDL_Event* event);
63  bool systemCommand (Command* cmd);
[1897]64
[2190]65  int init (int argc, char** argv);
[2636]66 
[3226]67  CommandNode* getLocalInput();
68  Camera* getCamera();
69  World* getWorld();
[3365]70  SDL_Surface* getScreen ();
[2636]71 
[3214]72  //void mainLoop();
[1803]73};
74
[3224]75#endif /* _ORXONOX_H */
[1850]76
Note: See TracBrowser for help on using the repository browser.