Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 25, 2013, 11:05:13 PM (12 years ago)
Author:
landauf
Message:

made some classes (mostly singletons) inherit from Configurable instead of OrxonoxClass when they only need the config value facilities

Location:
code/branches/core6/src/orxonox
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core6/src/orxonox/CameraManager.cc

    r9557 r9578  
    4848    CameraManager::CameraManager()
    4949    {
    50         RegisterRootObject(CameraManager);
    51 
    5250        assert(GameMode::showsGraphics());
    5351    }
  • code/branches/core6/src/orxonox/CameraManager.h

    r9563 r9578  
    4141#include "util/OgreForwardRefs.h"
    4242#include "util/Singleton.h"
    43 #include "core/class/OrxonoxClass.h"
    4443
    4544namespace orxonox
    4645{
    47     class _OrxonoxExport CameraManager : public Singleton<CameraManager>, public OrxonoxClass
     46    class _OrxonoxExport CameraManager : public Singleton<CameraManager>
    4847    {
    4948            friend class Singleton<CameraManager>;
  • code/branches/core6/src/orxonox/LevelManager.h

    r9563 r9578  
    4646
    4747#include "util/Singleton.h"
    48 #include "core/class/OrxonoxClass.h"
     48#include "core/config/Configurable.h"
    4949
    5050// tolua_begin
     
    6767    class _OrxonoxExport LevelManager
    6868    // tolua_end
    69         : public Singleton<LevelManager>, public OrxonoxClass
     69        : public Singleton<LevelManager>, public Configurable
    7070    { // tolua_export
    7171            friend class Singleton<LevelManager>;
  • code/branches/core6/src/orxonox/MoodManager.h

    r9563 r9578  
    3434#include <string>
    3535#include "util/Singleton.h"
    36 #include "core/class/OrxonoxClass.h"
     36#include "core/config/Configurable.h"
    3737
    3838namespace orxonox
     
    6060        The MoodManager class serves to allow for different musical themes in the game.
    6161    */
    62     class _OrxonoxExport MoodManager : public Singleton<MoodManager>, public OrxonoxClass
     62    class _OrxonoxExport MoodManager : public Singleton<MoodManager>, public Configurable
    6363    {
    6464            friend class Singleton<MoodManager>;
     
    7474
    7575        private:
    76             ~MoodManager() {}
    7776            void checkMoodValidity();
    7877
  • code/branches/core6/src/orxonox/gamestates/GSMainMenu.h

    r9563 r9578  
    3434#include "util/OgreForwardRefs.h"
    3535#include "core/GameState.h"
    36 #include "core/class/OrxonoxClass.h"
     36#include "core/config/Configurable.h"
    3737
    3838namespace orxonox
    3939{
    40     class _OrxonoxExport GSMainMenu : public GameState, public OrxonoxClass
     40    class _OrxonoxExport GSMainMenu : public GameState, public Configurable
    4141    {
    4242    public:
  • code/branches/core6/src/orxonox/sound/SoundManager.h

    r9563 r9578  
    3939
    4040#include "util/Singleton.h"
    41 #include "core/class/OrxonoxClass.h"
     41#include "core/config/Configurable.h"
    4242#include "core/object/SmartPtr.h"
    4343
     
    5959    class _OrxonoxExport SoundManager
    6060    // tolua_end
    61         : public Singleton<SoundManager>, public OrxonoxClass
     61        : public Singleton<SoundManager>, public Configurable
    6262    { // tolua_export
    6363        friend class Singleton<SoundManager>;
Note: See TracChangeset for help on using the changeset viewer.