Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/branches/chris: First snippet of the totally revamped base system… perhaps a bit confusing at the moment, but when finished theoretically you only have to subclass the worldentity and track classes to create the game content (even the menu will be a WorldEntity I suppose)

File size: 1.0 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        Camera* get_camera();
53        World* get_world();
54       
55  void mainLoop();
56};
57
58#endif
59
Note: See TracBrowser for help on using the repository browser.