Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 4442 was 4442, checked in by patrick, 19 years ago

orxonox/trunk: command node removed from source files

File size: 1.7 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 "comincl.h"
10#include "glincl.h"
11#include "event_listener.h"
12
13
14class WorldEntity;
15class World;
16class Camera;
17class GameLoader;
18class ResourceManager;
19class ObjectManager;
20class EventHandler;
21class Event;
22
23//! Orxonox core singleton class
24/**
25*/
26class Orxonox : public EventListener {
27
28 private:
29  static Orxonox* singletonRef;
30  Orxonox ();
31
32  char configfilename[256];   //!< Filename of the configuration-file.
33  World* world;               //!< Reference to the current running world.
34  SDL_Surface* screen;        //!< The current Screen
35  GameLoader* gameLoader;     //!< The gameLoader
36  ResourceManager* resourceManager; //!< The ResourceManager
37  ObjectManager* objectManager; //!< the object manager of the game
38  EventHandler* eventHandler;
39 
40  bool bQuitOrxonox;          //!< If Orxonox should Quit
41  bool pause;                 //!< Pause mode
42  Uint32 lastframe;           //!< Time of the last Frame
43 
44  unsigned int argc;          //!< Count of Arguments of orxonox
45  char** argv;                //!< Values of th Arguments of orxonox.
46 
47  void getConfigFile (int argc, char** argv);
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  virtual ~Orxonox ();
60
61  void start();
62  void quitGame();
63
64  void graphicsHandler (SDL_Event* event);
65  void process(const Event  &event);
66
67  int init (int argc, char** argv);
68 
69
70  World* getWorld();
71  SDL_Surface* getScreen ();
72 
73  //void mainLoop();
74};
75
76int startHelp(int argc, char** argv);
77int startOrxonox(int argc, char** argv);
78
79#endif /* _ORXONOX_H */
80
Note: See TracBrowser for help on using the repository browser.