Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/branches/chris: Port to SDL complete. Everything compiles and the generated executable runs without crashing. Keyboard and mouse handling works. Drawing is messed up, possibly because of my incompetent Rotation class. Hence all you see at them moment is a pitch black screen. I added the makefile I used to compile it since bensch hasn't yet included SDL into the configure script.

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