Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: taken camera out of orxonox.cc/h because, it just does not belong there

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  SDL_Surface* screen;        //!< The current Screen
34  GameLoader* gameLoader;     //!< The gameLoader
35 
36  bool bQuitOrxonox;          //!< If Orxonox should Quit
37  bool pause;                 //!< Pause mode
38  Uint32 lastframe;           //!< Time of the last Frame
39 
40  void getConfigFile (int argc, char** argv);
41 
42  // main loop functions
43  //  void synchronize ();
44  //void handle_input ();
45  //void time_slice ();
46  //void collision ();
47  //void display ();
48 
49        // subsystem initialization
50  int initVideo ();
51  int initSound ();
52  int initInput ();
53  int initNetworking ();
54  int initResources ();
55  int initWorld ();
56 
57 public:
58  static Orxonox* getInstance ();
59  void start();
60  void quitGame();
61
62  void eventHandler (SDL_Event* event);
63  bool systemCommand (Command* cmd);
64
65  int init (int argc, char** argv);
66 
67  CommandNode* getLocalInput();
68  World* getWorld();
69  SDL_Surface* getScreen ();
70 
71  //void mainLoop();
72};
73
74#endif /* _ORXONOX_H */
75
Note: See TracBrowser for help on using the repository browser.