Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 2380 was 2190, checked in by bensch, 20 years ago

orxonox/trunk: merged and copied all files from branches/chris into trunk. it all seems to be in propper order.

File size: 1.2 KB
RevLine 
[2190]1/*!
2    \file orxonox.h
3    \brief Orxonox core functions
4*/ 
[1856]5
[1803]6#ifndef ORXONOX_H
7#define ORXONOX_H
8
[2190]9#include <SDL/SDL.h>
10
11#include "stdincl.h"
12
13class CommandNode;
14class WorldEntity;
15class DataTank;
[2036]16class World;
[2190]17class Camera;
[1850]18
[2190]19//! Orxonox core singleton class
20/**
21*/
[1803]22class Orxonox {
23
[1850]24 private:
[1872]25  static Orxonox* singleton_ref;
[1850]26  Orxonox ();
27  ~Orxonox ();
[2190]28 
29  char configfilename[256];
30  World* world;
31  DataTank* resources;
32  CommandNode* localinput;
33  Camera* localcamera;
34  SDL_Surface* screen;
35 
36  bool bQuitOrxonox;
37  bool pause;
38        Uint32 lastframe;
[1850]39
[2190]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 quitGame();
[1879]60
[2190]61  void event_handler (SDL_Event* event);
62  bool system_command (Command* cmd);
[1897]63
[2190]64  int init (int argc, char** argv);
65       
66        CommandNode* get_localinput();
67        Camera* get_camera();
68        World* get_world();
69       
70  void mainLoop();
[1803]71};
72
73#endif
[1850]74
Note: See TracBrowser for help on using the repository browser.