Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: some more classes now destroy themselves via virtual-destructors and call to predecessing destroy-function
also made
#include "stdincl.h" out of unnecessary h-files, so we got faster compile time.

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 ();
[3543]26  virtual ~Orxonox ();
27  void destroy(void);
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  Camera* localcamera;        //!< The current Camera
34  SDL_Surface* screen;        //!< The current Screen
35  GameLoader* gameLoader;     //!< The gameLoader
[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 
[3226]41  void getConfigFile (int argc, char** argv);
[2636]42 
43  // main loop functions
[3214]44  //  void synchronize ();
45  //void handle_input ();
46  //void time_slice ();
47  //void collision ();
48  //void display ();
[2190]49 
50        // subsystem initialization
[3226]51  int initVideo ();
52  int initSound ();
53  int initInput ();
54  int initNetworking ();
55  int initResources ();
56  int initWorld ();
[2190]57 
58 public:
59  static Orxonox* getInstance ();
[2636]60  void start();
[2190]61  void quitGame();
[1879]62
[3226]63  void eventHandler (SDL_Event* event);
64  bool systemCommand (Command* cmd);
[1897]65
[2190]66  int init (int argc, char** argv);
[2636]67 
[3226]68  CommandNode* getLocalInput();
69  Camera* getCamera();
70  World* getWorld();
[3365]71  SDL_Surface* getScreen ();
[2636]72 
[3214]73  //void mainLoop();
[1803]74};
75
[3224]76#endif /* _ORXONOX_H */
[1850]77
Note: See TracBrowser for help on using the repository browser.