Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 3609 was 3608, checked in by patrick, 20 years ago

orxonox/trunk: now there is a real speedup in compiling time when dependencies are modified: just realy only includes, what is needed. Byside the speedup, there is more overview! never add an orxonox class to stdincl.h if it doesn't have to be

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 DataTank;
15class World;
16class Camera;
17class GameLoader;
18
19//! Orxonox core singleton class
20/**
21*/
22class Orxonox {
23
24 private:
25  static Orxonox* singletonRef;
26  Orxonox ();
27  virtual ~Orxonox ();
28
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
36 
37  bool bQuitOrxonox;          //!< If Orxonox should Quit
38  bool pause;                 //!< Pause mode
39  Uint32 lastframe;           //!< Time of the last Frame
40 
41  void getConfigFile (int argc, char** argv);
42 
43  // main loop functions
44  //  void synchronize ();
45  //void handle_input ();
46  //void time_slice ();
47  //void collision ();
48  //void display ();
49 
50        // subsystem initialization
51  int initVideo ();
52  int initSound ();
53  int initInput ();
54  int initNetworking ();
55  int initResources ();
56  int initWorld ();
57 
58 public:
59  static Orxonox* getInstance ();
60  void start();
61  void quitGame();
62
63  void eventHandler (SDL_Event* event);
64  bool systemCommand (Command* cmd);
65
66  int init (int argc, char** argv);
67 
68  CommandNode* getLocalInput();
69  Camera* getCamera();
70  World* getWorld();
71  SDL_Surface* getScreen ();
72 
73  //void mainLoop();
74};
75
76#endif /* _ORXONOX_H */
77
Note: See TracBrowser for help on using the repository browser.