Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FICN/src/orxonox/orxonox.h @ 462

Last change on this file since 462 was 462, checked in by bknecht, 16 years ago

got my work to compile (it's all hacked together and I dunno if it runs)

  • orxonox.h we got now a real .h file for our main class
  • orxonox.cc this is the all hacked class. We/I have to strip that clean
  • orxonoxOld.cc "You did something wrong, the old implementation was SOO much better"
  • graphicsEngine we should have a wrapper around ogre so we have a real graphics module
  • main.cc created a main again doing all the platform depending stuff in there.. (hope this works)

think that's all…

File size: 1.6 KB
Line 
1/**
2 @file  orxonox.h
3 @brief Main Orxonox Class File
4 @author Benjamin Knecht <beni_at_orxonox.net>
5 */
6
7#ifndef ORXONOX_H
8#define ORXONOX_H
9
10//#include <OgreSingleton.h>
11#include <OgreSceneManager.h>
12
13#include <OIS/OIS.h>
14
15#include "graphicsEngine.h"
16#include "../loader/LevelLoader.h"
17#include "../audio/AudioManager.h"
18
19
20// TODO: Orxonox should maybe derive from BaseObject
21//! Orxonox singleton class
22namespace orxonox {
23
24  class OrxListener;
25
26  class Orxonox
27  {
28    public:
29      void init(int argc, char **argv, std::string path);
30      void start();
31      // not sure if this should be private
32      void die(/* some error code */);
33      static Orxonox* getSingleton();
34      inline SceneManager* getSceneManager() { return ogre_->getSceneManager(); };
35    private:
36      Orxonox();
37      virtual ~Orxonox();
38      void serverInit(std::string path);
39      void clientInit(std::string path);
40      void standalone(std::string path);
41      void createScene(void);
42      void setupScene();
43      void setupInputSystem();
44      void createFrameListener();
45      void startRenderLoop();
46    private:
47
48      //static Orxonox*       singletonRef_;
49      GraphicsEngine*       ogre_;      //!< our dearest graphics engine <3
50      std::string           dataPath_;  //!< path to data
51      loader::LevelLoader*  loader_;    //!< level loader builds the scene
52      audio::AudioManager*  auMan_;     //!< audio manager
53      static Orxonox*       singletonRef_;
54      OIS::Keyboard*        keyboard_;
55      OIS::Mouse*           mouse_;
56      OIS::InputManager*    inputManager_;
57      OrxListener*          frameListener_;
58  };
59}
60#endif /* ORXONOX_H */
Note: See TracBrowser for help on using the repository browser.