Changeset 9667 for code/trunk/src/orxonox/interfaces
- Timestamp:
- Aug 25, 2013, 9:08:42 PM (11 years ago)
- Location:
- code/trunk
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core6 merged: 9552-9554,9556-9574,9577-9579,9585-9593,9596-9612,9626-9662
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/interfaces/GametypeMessageListener.h
r7163 r9667 31 31 32 32 #include "OrxonoxPrereqs.h" 33 #include "core/ OrxonoxClass.h"33 #include "core/class/OrxonoxInterface.h" 34 34 35 35 namespace orxonox 36 36 { 37 class _OrxonoxExport GametypeMessageListener : virtual public Orxonox Class37 class _OrxonoxExport GametypeMessageListener : virtual public OrxonoxInterface 38 38 { 39 39 public: -
code/trunk/src/orxonox/interfaces/InterfaceCompilation.cc
r8706 r9667 50 50 // GametypeMessageListener 51 51 //---------------------------- 52 RegisterAbstractClass(GametypeMessageListener).inheritsFrom(Class(OrxonoxInterface)); 53 52 54 GametypeMessageListener::GametypeMessageListener() 53 55 { 54 Register RootObject(GametypeMessageListener);56 RegisterObject(GametypeMessageListener); 55 57 } 56 58 … … 58 60 // PlayerTrigger 59 61 //---------------------------- 62 RegisterAbstractClass(PlayerTrigger).inheritsFrom(Class(OrxonoxInterface)); 63 60 64 PlayerTrigger::PlayerTrigger() 61 65 { 62 Register RootObject(PlayerTrigger);66 RegisterObject(PlayerTrigger); 63 67 64 68 this->isForPlayer_ = false; … … 76 80 // RadarListener 77 81 //---------------------------- 82 RegisterAbstractClass(RadarListener).inheritsFrom(Class(OrxonoxInterface)); 83 78 84 RadarListener::RadarListener() 79 85 { 80 Register RootObject(RadarListener);86 RegisterObject(RadarListener); 81 87 } 82 88 … … 84 90 // TeamColourable 85 91 //---------------------------- 92 RegisterAbstractClass(TeamColourable).inheritsFrom(Class(OrxonoxInterface)); 93 86 94 TeamColourable::TeamColourable() 87 95 { 88 Register RootObject(TeamColourable);96 RegisterObject(TeamColourable); 89 97 } 90 98 … … 92 100 // Rewardable 93 101 //---------------------------- 102 RegisterAbstractClass(Rewardable).inheritsFrom(Class(OrxonoxInterface)); 103 94 104 Rewardable::Rewardable() 95 105 { 96 Register RootObject(Rewardable);106 RegisterObject(Rewardable); 97 107 } 98 108 } -
code/trunk/src/orxonox/interfaces/NotificationListener.cc
r8706 r9667 53 53 NotificationListener::NotificationListener() 54 54 { 55 Register RootObject(NotificationListener);55 RegisterObject(NotificationListener); 56 56 } 57 57 -
code/trunk/src/orxonox/interfaces/NotificationListener.h
r8706 r9667 44 44 #include "util/StringUtils.h" 45 45 46 #include "core/ OrxonoxClass.h"46 #include "core/class/OrxonoxInterface.h" 47 47 48 48 namespace orxonox … … 90 90 @todo Consistent terminology between message, notification and command. 91 91 */ 92 class _OrxonoxExport NotificationListener : virtual public Orxonox Class92 class _OrxonoxExport NotificationListener : virtual public OrxonoxInterface 93 93 { 94 94 public: -
code/trunk/src/orxonox/interfaces/PickupCarrier.cc
r8858 r9667 35 35 36 36 #include "core/CoreIncludes.h" 37 #include "core/ Identifier.h"37 #include "core/class/Identifier.h" 38 38 39 39 #include "Pickupable.h" 40 40 41 namespace orxonox { 41 namespace orxonox 42 { 43 RegisterAbstractClass(PickupCarrier).inheritsFrom(Class(OrxonoxInterface)); 42 44 43 45 /** … … 47 49 PickupCarrier::PickupCarrier() 48 50 { 49 Register RootObject(PickupCarrier);51 RegisterObject(PickupCarrier); 50 52 } 51 53 -
code/trunk/src/orxonox/interfaces/PickupCarrier.h
r7552 r9667 41 41 #include <vector> 42 42 43 #include "core/ OrxonoxClass.h"43 #include "core/class/OrxonoxInterface.h" 44 44 45 45 namespace orxonox … … 66 66 @ingroup Pickup 67 67 */ 68 class _OrxonoxExport PickupCarrier : virtual public Orxonox Class68 class _OrxonoxExport PickupCarrier : virtual public OrxonoxInterface 69 69 { 70 70 // So that the different Pickupables have full access to their PickupCarrier. -
code/trunk/src/orxonox/interfaces/PickupListener.cc
r8351 r9667 47 47 PickupListener::PickupListener() 48 48 { 49 Register RootObject(PickupListener);49 RegisterObject(PickupListener); 50 50 } 51 51 -
code/trunk/src/orxonox/interfaces/PickupListener.h
r8351 r9667 39 39 #include "Pickupable.h" 40 40 41 #include "core/ OrxonoxClass.h"41 #include "core/class/OrxonoxInterface.h" 42 42 43 43 namespace orxonox … … 55 55 @ingroup Pickup 56 56 */ 57 class _OrxonoxExport PickupListener : virtual public Orxonox Class57 class _OrxonoxExport PickupListener : virtual public OrxonoxInterface 58 58 { 59 59 public: -
code/trunk/src/orxonox/interfaces/Pickupable.cc
r9348 r9667 34 34 #include "Pickupable.h" 35 35 36 #include "core/ Identifier.h"36 #include "core/class/Identifier.h" 37 37 #include "core/CoreIncludes.h" 38 38 #include "util/Convert.h" … … 46 46 namespace orxonox 47 47 { 48 RegisterAbstractClass(Pickupable).inheritsFrom(Class(OrxonoxInterface)).inheritsFrom(Class(Rewardable)); 48 49 49 50 /** … … 53 54 Pickupable::Pickupable() : used_(false), pickedUp_(false) 54 55 { 55 Register RootObject(Pickupable);56 RegisterObject(Pickupable); 56 57 57 58 this->carrier_ = NULL; … … 71 72 /** 72 73 @brief 73 A method that is called by OrxonoxClass::destroy() before the object is actually destroyed.74 A method that is called by Destroyable::destroy() before the object is actually destroyed. 74 75 */ 75 76 void Pickupable::preDestroy(void) … … 98 99 { 99 100 if(!this->isBeingDestroyed()) 100 this-> OrxonoxClass::destroy();101 this->Destroyable::destroy(); 101 102 else 102 103 orxout(internal_warning, context::pickups) << this->getIdentifier()->getName() << " may be unsafe. " << endl; -
code/trunk/src/orxonox/interfaces/Pickupable.h
r9348 r9667 39 39 40 40 #include <list> 41 #include "core/ Super.h"41 #include "core/class/Super.h" 42 42 43 #include "core/ OrxonoxClass.h"43 #include "core/class/OrxonoxInterface.h" 44 44 #include "Rewardable.h" 45 45 … … 58 58 @ingroup Pickup 59 59 */ 60 class _OrxonoxExport Pickupable : virtual public Orxonox Class, public Rewardable60 class _OrxonoxExport Pickupable : virtual public OrxonoxInterface, public Rewardable 61 61 { 62 62 friend class PickupCarrier; … … 144 144 145 145 protected: 146 virtual void preDestroy(void); //!< A method that is called by OrxonoxClass::destroy() before the object is actually destroyed.146 virtual void preDestroy(void); //!< A method that is called by Destroyable::destroy() before the object is actually destroyed. 147 147 virtual void destroyPickup(void); //!< Destroys a Pickupable. 148 148 virtual void carrierDestroyed(void); //!< Is called by the PickupCarrier when it is being destroyed. -
code/trunk/src/orxonox/interfaces/PlayerTrigger.h
r8706 r9667 38 38 #include "OrxonoxPrereqs.h" 39 39 40 #include "core/ OrxonoxClass.h"41 #include "core/ WeakPtr.h"40 #include "core/class/OrxonoxInterface.h" 41 #include "core/object/WeakPtr.h" 42 42 43 43 namespace orxonox … … 52 52 @ingroup Triggers 53 53 */ 54 class _OrxonoxExport PlayerTrigger : virtual public Orxonox Class54 class _OrxonoxExport PlayerTrigger : virtual public OrxonoxInterface 55 55 { 56 56 public: -
code/trunk/src/orxonox/interfaces/RadarListener.h
r7163 r9667 31 31 32 32 #include "OrxonoxPrereqs.h" 33 #include "core/ OrxonoxClass.h"33 #include "core/class/OrxonoxInterface.h" 34 34 35 35 namespace orxonox 36 36 { 37 class _OrxonoxExport RadarListener : virtual public Orxonox Class37 class _OrxonoxExport RadarListener : virtual public OrxonoxInterface 38 38 { 39 39 public: -
code/trunk/src/orxonox/interfaces/RadarViewable.cc
r9526 r9667 38 38 namespace orxonox 39 39 { 40 RegisterAbstractClass(RadarViewable).inheritsFrom(Class(OrxonoxInterface)); 41 40 42 /** 41 43 @brief Constructor. … … 45 47 , bVisibility_(true) 46 48 , bInitialized_(false) 47 , creator_(creator)48 49 , wePtr_(wePtr) 49 50 , radarObjectCamouflage_(0.0f) … … 52 53 , scale_(1.0f) 53 54 { 54 Register RootObject(RadarViewable);55 RegisterObject(RadarViewable); 55 56 56 57 this->uniqueId_=getUniqueNumberString(); 57 58 if( GameMode::showsGraphics() ) 58 59 { 59 this->radar_ = this->creator_->getScene()->getRadar();60 this->radar_ = creator->getScene()->getRadar(); 60 61 this->radar_->addRadarObject(this); 61 62 } -
code/trunk/src/orxonox/interfaces/RadarViewable.h
r9526 r9667 36 36 37 37 #include "util/Math.h" 38 #include "core/ OrxonoxClass.h"39 #include "core/ SmartPtr.h"38 #include "core/class/OrxonoxInterface.h" 39 #include "core/object/SmartPtr.h" 40 40 41 41 namespace orxonox … … 46 46 @brief Interface for receiving window events. 47 47 */ 48 class _OrxonoxExport RadarViewable : virtual public Orxonox Class48 class _OrxonoxExport RadarViewable : virtual public OrxonoxInterface 49 49 { 50 50 public: … … 153 153 //Map 154 154 std::string uniqueId_; 155 BaseObject* creator_;156 155 157 156 -
code/trunk/src/orxonox/interfaces/Rewardable.h
r7163 r9667 36 36 37 37 #include "OrxonoxPrereqs.h" 38 #include "core/ OrxonoxClass.h"38 #include "core/class/OrxonoxInterface.h" 39 39 40 40 namespace orxonox … … 48 48 Damian 'Mozork' Frick 49 49 */ 50 class _OrxonoxExport Rewardable : virtual public Orxonox Class50 class _OrxonoxExport Rewardable : virtual public OrxonoxInterface 51 51 { 52 52 public: -
code/trunk/src/orxonox/interfaces/TeamColourable.h
r5781 r9667 33 33 34 34 #include "util/UtilPrereqs.h" 35 #include "core/ OrxonoxClass.h"35 #include "core/class/OrxonoxInterface.h" 36 36 37 37 namespace orxonox 38 38 { 39 class _OrxonoxExport TeamColourable : virtual public Orxonox Class39 class _OrxonoxExport TeamColourable : virtual public OrxonoxInterface 40 40 { 41 41 public:
Note: See TracChangeset
for help on using the changeset viewer.