Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/chris/src/orxonox.h @ 2096

Last change on this file since 2096 was 2096, checked in by chris, 20 years ago

orxonox/branches/chris: Messed with the Player class, added stuff here and there, debug world now creates a player and bind IO to it. Added some doxygen tags.

File size: 1.1 KB
Line 
1
2#ifndef ORXONOX_H
3#define ORXONOX_H
4
5#include <SDL/SDL.h>
6
7class World;
8
9class Orxonox {
10
11 private:
12  static Orxonox* singleton_ref;
13  Orxonox ();
14  ~Orxonox ();
15 
16  static char configfilename[256];
17  static World* world;
18  static DataTank* resources;
19  static CommandNode* localinput;
20  static Camera* localcamera;
21  static SDL_Surface* screen;
22 
23  static bool bQuitOrxonox;
24  static bool pause;
25        static Uint32 lastframe;
26
27        static void get_config_file (int argc, char** argv);
28       
29                // main loop functions
30  static void synchronize ();
31  static void handle_input ();
32  static void time_slice ();
33  static void collision ();
34  static void display ();
35 
36        // subsystem initialization
37  int init_video ();
38  int init_sound ();
39  int init_input ();
40  int init_networking ();
41  int init_resources ();
42  int init_world ();
43
44  static void event_handler (SDL_Event* event);
45 
46 public:
47  static Orxonox* getInstance ();
48  static void quitGame();
49
50  int init (int argc, char** argv);
51       
52        CommandNode* get_localinput();
53        Camera* get_camera();
54        World* get_world();
55       
56  void mainLoop();
57};
58
59#endif
60
Note: See TracBrowser for help on using the repository browser.