Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 3448 was 3365, checked in by bensch, 20 years ago

orxonox/trunk: merged branches/parenting back to the.
merged with command:
svn merge branches/parenting trunk -r 3247:HEAD
resolved all conflicts in favor of parenting.

File size: 1.3 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  SDL_Surface* getScreen ();
71 
72  //void mainLoop();
73};
74
75#endif /* _ORXONOX_H */
76
Note: See TracBrowser for help on using the repository browser.