Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 23, 2008, 3:37:29 PM (17 years ago)
Author:
rgrieder
Message:
  • changed the static interface of the InputManager to a member one with getInstance()
  • converted InputManager and InGameConsole to Ogre Singletons (c'tor and d'tor public, but assert in c'tor to prevent multiple instances at runtime)
  • added toluabind_orxonox files to tolua folder that contains a pimped version of tolua (I'll write a little cmake project soon to automate it; Currently that only works with msvc)
  • commented out Loader::unload() from Orxonox destructor because that deleted the ParticleSpawners, which were using a method of a sceneNode that belonged to a already destroyed SpaceShip. —> Results in a memory leak. Previously Loader::unload() was called for all BaseObjects (now calling unload(level_)). And since 'P' from ParticleSpawner comes before 'S' like SpaceShip, the order was correct.
  • Added factory feature for InputStates (can now be created by string if there is Factory entry for it)
  • Created factory entries for SimpleInputState and ExtendedInputState
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/orxonox/Orxonox.h

    r1638 r1642  
    8484
    8585    private:
    86       GraphicsEngine*       ogre_;          //!< our dearest graphics engine <3
    8786      Level*                startLevel_;    //!< current hard coded default level
    8887      Level*                hud_;           //!< 'level' object fo the HUD
    89       Radar*                radar_;         //!< represents the Radar (not the HUD part)
    9088      //audio::AudioManager*  auMan_;         //!< audio manager
    9189      Ogre::Timer*          timer_;         //!< Main loop timer
     
    10098      float                 debugRefreshTime_;
    10199
     100      // By Orxonox managed singleton pointers
     101      GraphicsEngine*       ogre_;          //!< our dearest graphics engine <3
     102      InputManager*         inputManager_;
     103      Radar*                radar_;         //!< represents the Radar (not the HUD part)
     104      InGameConsole*        console_;
     105
    102106      static Orxonox *singletonRef_s;
    103107  };
Note: See TracChangeset for help on using the changeset viewer.