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/libraries
Files:
8 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:
Note: See TracChangeset for help on using the changeset viewer.