Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/nico/src/orxonox.h @ 3382

Last change on this file since 3382 was 3238, checked in by bensch, 20 years ago

orxonox/branches: updated branches: buerli, nico, sound. And moved bezierTrack to old.bezierTrack. Conflicts resolved in a usefull order.
Conflics mostly resolved in favor of trunk
merge.

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* singletonRef;
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 getConfigFile (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 initVideo ();
51  int initSound ();
52  int initInput ();
53  int initNetworking ();
54  int initResources ();
55  int initWorld ();
56 
57 public:
58  static Orxonox* getInstance ();
59  void start();
60  void quitGame();
61
62  void eventHandler (SDL_Event* event);
63  bool systemCommand (Command* cmd);
64
65  int init (int argc, char** argv);
66 
67  CommandNode* getLocalInput();
68  Camera* getCamera();
69  World* getWorld();
70 
71  //void mainLoop();
72};
73
74#endif /* _ORXONOX_H */
75
Note: See TracBrowser for help on using the repository browser.