Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: made orxonox.cc a littel nicer.

File size: 1.4 KB
RevLine 
[2190]1/*!
2    \file orxonox.h
3    \brief Orxonox core functions
4*/ 
[1856]5
[3224]6#ifndef _ORXONOX_H
7#define _ORXONOX_H
[1803]8
[4408]9#include "event_listener.h"
[2190]10
11class WorldEntity;
[2636]12class GameLoader;
[3655]13class ResourceManager;
[4286]14class ObjectManager;
[4408]15class EventHandler;
16class Event;
[1850]17
[2190]18//! Orxonox core singleton class
19/**
20*/
[4408]21class Orxonox : public EventListener {
[1803]22
[4445]23 public:
24  static Orxonox* getInstance ();
25  virtual ~Orxonox ();
26  int init (int argc, char** argv);
27
28  void start();
29
30  void graphicsHandler (SDL_Event* event);
31  void process(const Event  &event);
32
[1850]33 private:
[4447]34  Orxonox ();
35
[4445]36  int initVideo ();
37  int initSound ();
38  int initInput ();
39  int initNetworking ();
40  int initResources ();
41
[4446]42  void getConfigFile (int argc, char** argv);
43
[4445]44 private:
[4447]45  static Orxonox*   singletonRef;            //!< singleton reference to orxonox
[3543]46
[4447]47  char              configfilename[256];     //!< Filename of the configuration-file.
48  GameLoader*       gameLoader;              //!< The gameLoader
49  ResourceManager*  resourceManager;         //!< The ResourceManager
50  ObjectManager*    objectManager;           //!< the object manager of the game
51  EventHandler*     eventHandler;            //!< the eventhandler of orxonox is created here
[2190]52 
[4447]53  unsigned int      argc;                    //!< Count of Arguments of orxonox
54  char**            argv;                    //!< Values of th Arguments of orxonox.
[1803]55};
56
[4447]57
58
59
[4132]60int startHelp(int argc, char** argv);
[3648]61int startOrxonox(int argc, char** argv);
62
[3224]63#endif /* _ORXONOX_H */
[1850]64
Note: See TracBrowser for help on using the repository browser.