Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/old.bezierTrack/src/orxonox.h @ 3256

Last change on this file since 3256 was 2995, checked in by bensch, 20 years ago

orxonox/trunk: merged branches/osX back into the Trunk.
Conflicts resolved in Favor of trunk in all the Makefiles, and fixed many strange entries in configure.ac
merged with command: svn merge branches/osX/ trunk/ -r 2887:HEAD
AND most Important of all: change back to AUTOMAKE-1.7

File size: 1.2 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 "stdincl.h"
10
11class CommandNode;
12class WorldEntity;
13class DataTank;
14class World;
15class Camera;
16class GameLoader;
17
18//! Orxonox core singleton class
19/**
20*/
21class Orxonox {
22
23 private:
24  static Orxonox* singleton_ref;
25  Orxonox ();
26  ~Orxonox ();
27 
28  char configfilename[256];
29  World* world;
30  DataTank* resources;
31  CommandNode* localinput;
32  Camera* localcamera;
33  SDL_Surface* screen;
34  GameLoader* gameLoader;
35 
36  bool bQuitOrxonox;
37  bool pause;
38  Uint32 lastframe;
39 
40  void get_config_file (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 init_video ();
51  int init_sound ();
52  int init_input ();
53  int init_networking ();
54  int init_resources ();
55  int init_world ();
56 
57 public:
58  static Orxonox* getInstance ();
59  void start();
60  void quitGame();
61
62  void event_handler (SDL_Event* event);
63  bool system_command (Command* cmd);
64
65  int init (int argc, char** argv);
66 
67  CommandNode* get_localinput();
68  Camera* get_camera();
69  World* get_world();
70 
71  void mainLoop();
72};
73
74#endif
75
Note: See TracBrowser for help on using the repository browser.