Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: moved protoclass to folder proto
added protosingleton
added resourceManager
modiefied some stuff to work better

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