Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 26, 2013, 11:43:43 PM (11 years ago)
Author:
landauf
Message:

interfaces which are part of the framework and only rely on the object list for calling all instances may inherit from Listable

Location:
code/branches/core6/src/libraries/core
Files:
8 edited

Legend:

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

    r9578 r9589  
    4747#include "util/DestructionHelper.h"
    4848#include "util/Singleton.h"
    49 #include "class/OrxonoxClass.h"
     49#include "config/Configurable.h"
    5050
    5151namespace orxonox
    5252{
    5353    //! Informs about changes in the Development Mode.
    54     class DevModeListener : virtual public OrxonoxClass
     54    class DevModeListener : virtual public Listable
    5555    {
    5656    public:
  • code/branches/core6/src/libraries/core/ViewportEventListener.h

    r9563 r9589  
    3333
    3434#include "util/OgreForwardRefs.h"
    35 #include "class/OrxonoxClass.h"
     35#include "object/Listable.h"
    3636
    3737namespace orxonox
    3838{
    39     class _CoreExport ViewportEventListener : virtual public OrxonoxClass
     39    class _CoreExport ViewportEventListener : virtual public Listable
    4040    {
    4141        public:
  • code/branches/core6/src/libraries/core/WindowEventListener.h

    r9563 r9589  
    3636
    3737#include "CorePrereqs.h"
    38 #include "class/OrxonoxClass.h"
     38#include "object/Listable.h"
    3939
    4040namespace orxonox
    4141{
    4242    //! Interface for receiving window events like resize, moved and focusChanged
    43     class _CoreExport WindowEventListener : virtual public OrxonoxClass
     43    class _CoreExport WindowEventListener : virtual public Listable
    4444    {
    4545        friend class OgreWindowEventListener;
  • code/branches/core6/src/libraries/core/XMLNameListener.h

    r9563 r9589  
    3636
    3737#include "CorePrereqs.h"
    38 #include "class/OrxonoxClass.h"
     38#include "object/Listable.h"
    3939
    4040namespace orxonox
    4141{
    42     class _CoreExport XMLNameListener : virtual public OrxonoxClass
     42    class _CoreExport XMLNameListener : virtual public Listable
    4343    {
    4444        public:
  • code/branches/core6/src/libraries/core/command/IOConsolePOSIX.cc

    r9550 r9589  
    9999
    100100        resetTerminalMode();
    101         this->shell_->destroy();
     101        delete this->shell_;
    102102
    103103        // Restore this->cout_ redirection
  • code/branches/core6/src/libraries/core/command/IOConsoleWindows.cc

    r9550 r9589  
    113113
    114114        resetTerminalMode();
    115         this->shell_->destroy();
     115        delete this->shell_;
    116116    }
    117117
  • code/branches/core6/src/libraries/core/input/InputManager.cc

    r9578 r9589  
    642642        assert(state && this->activeStates_.find(state->getPriority()) == this->activeStates_.end());
    643643        statesByName_.erase(state->getName());
    644         state->destroy();
     644        delete state;
    645645    }
    646646
  • code/branches/core6/src/libraries/core/input/JoyStickQuantityListener.h

    r9563 r9589  
    3838
    3939#include <vector>
    40 #include "core/class/OrxonoxClass.h"
     40#include "core/object/Listable.h"
    4141
    4242namespace orxonox
    4343{
    4444    //! Derive from this class to get informed when joy sticks get added/removed
    45     class _CoreExport JoyStickQuantityListener : virtual public OrxonoxClass
     45    class _CoreExport JoyStickQuantityListener : virtual public Listable
    4646    {
    4747        friend class InputManager;
Note: See TracChangeset for help on using the changeset viewer.