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
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core6/src/libraries/core/Core.h

    r9563 r9578  
    6666        You should only create this singleton once because it destroys the identifiers!
    6767    */
    68     class _CoreExport Core : public Singleton<Core>, public OrxonoxClass
     68    class _CoreExport Core : public Singleton<Core>, public Configurable
    6969    {
    7070        friend class Singleton<Core>;
  • code/branches/core6/src/libraries/core/Game.h

    r9563 r9578  
    5050#include "util/DestructionHelper.h"
    5151#include "util/Singleton.h"
    52 #include "class/OrxonoxClass.h"
     52#include "config/Configurable.h"
    5353
    5454/**
     
    8282    class _CoreExport Game
    8383// tolua_end
    84         : public Singleton<Game>, public OrxonoxClass
     84        : public Singleton<Game>, public Configurable
    8585    { // tolua_export
    8686        friend class Singleton<Game>;
  • code/branches/core6/src/libraries/core/GraphicsManager.h

    r9563 r9578  
    5252#include "util/DestructionHelper.h"
    5353#include "util/Singleton.h"
    54 #include "class/OrxonoxClass.h"
     54#include "config/Configurable.h"
    5555
    5656// tolua_begin
     
    6363    class _CoreExport GraphicsManager
    6464// tolua_end
    65         : public Singleton<GraphicsManager>, public OrxonoxClass, public Ogre::LogListener
     65        : public Singleton<GraphicsManager>, public Configurable, public Ogre::LogListener
    6666    { // tolua_export
    6767        friend class Singleton<GraphicsManager>;
  • code/branches/core6/src/libraries/core/command/Shell.cc

    r9558 r9578  
    9696    Shell::~Shell()
    9797    {
    98         this->inputBuffer_->destroy();
     98        delete this->inputBuffer_;
    9999
    100100        OutputManager::getInstance().unregisterListener(this);
  • code/branches/core6/src/libraries/core/input/InputBuffer.h

    r9563 r9578  
    3434#include <list>
    3535#include <string>
    36 #include "core/class/OrxonoxClass.h"
     36#include "core/config/Configurable.h"
    3737#include "InputHandler.h"
    3838
     
    7474    };
    7575
    76     class _CoreExport InputBuffer : public InputHandler, public OrxonoxClass
     76    class _CoreExport InputBuffer : public InputHandler, public Configurable
    7777    {
    7878        public:
  • code/branches/core6/src/libraries/core/input/InputManager.cc

    r9560 r9578  
    280280        this->destroyState("calibrator");
    281281        // Destroy KeyDetector and state
    282         calibratorCallbackHandler_->destroy();
     282        delete calibratorCallbackHandler_;
    283283        // Destroy the empty InputState
    284284        this->destroyStateInternal(this->emptyState_);
  • code/branches/core6/src/libraries/core/input/KeyBinderManager.h

    r9563 r9578  
    3636
    3737#include "util/Singleton.h"
    38 #include "core/class/OrxonoxClass.h"
     38#include "core/config/Configurable.h"
    3939
    4040namespace orxonox //tolua_export
     
    5353    */
    5454    class _CoreExport KeyBinderManager //tolua_export
    55         : public Singleton<KeyBinderManager>, public OrxonoxClass
     55        : public Singleton<KeyBinderManager>, public Configurable
    5656    { //tolua_export
    5757        friend class Singleton<KeyBinderManager>;
  • code/branches/core6/src/libraries/network/WANDiscovery.h

    r9563 r9578  
    3232#include "packet/ServerInformation.h"
    3333#include "core/CoreIncludes.h"
    34 #include "core/class/OrxonoxClass.h"
     34#include "core/config/Configurable.h"
    3535#include "core/config/ConfigValueIncludes.h"
    3636#include "MasterServerComm.h"
     
    4747  class _NetworkExport WANDiscovery
    4848// tolua_end
    49     : public OrxonoxClass
     49    : public Configurable
    5050  { // tolua_export
    5151    public:
  • code/branches/core6/src/modules/designtools/ScreenshotManager.h

    r9563 r9578  
    4444
    4545#include "util/Singleton.h"
    46 #include "core/class/OrxonoxClass.h"
     46#include "core/config/Configurable.h"
    4747
    4848namespace orxonox
     
    6161    @ingroup Designtools
    6262    */
    63     class ScreenshotManager : public OrxonoxClass, public Singleton<ScreenshotManager>
     63    class ScreenshotManager : public Configurable, public Singleton<ScreenshotManager>
    6464    {
    6565        friend class Singleton<ScreenshotManager>;
  • code/branches/core6/src/modules/designtools/SkyboxGenerator.h

    r9563 r9578  
    3636#define __SkyboxGenerator_h__
    3737
    38 #include "core/class/OrxonoxClass.h"
     38#include "core/config/Configurable.h"
    3939#include "util/Singleton.h"
    4040#include "tools/interfaces/Tickable.h"
     
    5858    @ingroup Designtools
    5959    */
    60     class SkyboxGenerator : public virtual OrxonoxClass, public Singleton<SkyboxGenerator>, public Tickable
     60    class SkyboxGenerator : public virtual Configurable, public Singleton<SkyboxGenerator>, public Tickable
    6161    {
    6262        friend class Singleton<SkyboxGenerator>;
  • code/branches/core6/src/modules/questsystem/QuestManager.cc

    r8952 r9578  
    3838#include "util/ScopedSingletonManager.h"
    3939#include "core/command/ConsoleCommand.h"
    40 #include "core/CoreIncludes.h"
    4140#include "core/GUIManager.h"
    4241#include "core/LuaState.h"
     
    6059    QuestManager::QuestManager()
    6160    {
    62         RegisterRootObject(QuestManager);
    6361        orxout(internal_info, context::quests) << "QuestManager created." << endl;
    6462    }
  • code/branches/core6/src/modules/questsystem/QuestManager.h

    r9563 r9578  
    4343
    4444#include "util/Singleton.h"
    45 #include "core/class/OrxonoxClass.h"
    4645
    4746namespace orxonox  // tolua_export
     
    5958    */
    6059    class _QuestsystemExport QuestManager  // tolua_export
    61         : public Singleton<QuestManager>, public orxonox::OrxonoxClass
     60        : public Singleton<QuestManager>
    6261    { // tolua_export
    6362
  • 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.