Changeset 9667 for code/trunk/src/modules/objects/triggers
- Timestamp:
- Aug 25, 2013, 9:08:42 PM (11 years ago)
- Location:
- code/trunk
- Files:
-
- 21 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/modules/objects/triggers/CheckPoint.cc
r9348 r9667 42 42 namespace orxonox 43 43 { 44 CreateFactory(CheckPoint);44 RegisterClass(CheckPoint); 45 45 46 CheckPoint::CheckPoint( BaseObject* creator)47 : DistanceTrigger(c reator)48 , RadarViewable( creator, static_cast<WorldEntity*>(this))46 CheckPoint::CheckPoint(Context* context) 47 : DistanceTrigger(context) 48 , RadarViewable(this, static_cast<WorldEntity*>(this)) 49 49 { 50 50 RegisterObject(CheckPoint); -
code/trunk/src/modules/objects/triggers/CheckPoint.h
r7601 r9667 55 55 { 56 56 public: 57 CheckPoint( BaseObject* creator);57 CheckPoint(Context* context); 58 58 virtual ~CheckPoint(); 59 59 -
code/trunk/src/modules/objects/triggers/DistanceMultiTrigger.cc
r8858 r9667 47 47 /*static*/ const std::string DistanceMultiTrigger::beaconModeExlcude_s = "exclude"; 48 48 49 CreateFactory(DistanceMultiTrigger);49 RegisterClass(DistanceMultiTrigger); 50 50 51 51 /** … … 53 53 Default Constructor. Registers the object and initializes default values. 54 54 */ 55 DistanceMultiTrigger::DistanceMultiTrigger( BaseObject* creator) : MultiTrigger(creator)55 DistanceMultiTrigger::DistanceMultiTrigger(Context* context) : MultiTrigger(context) 56 56 { 57 57 RegisterObject(DistanceMultiTrigger); -
code/trunk/src/modules/objects/triggers/DistanceMultiTrigger.h
r9016 r9667 40 40 #include <map> 41 41 42 #include "core/ WeakPtr.h"42 #include "core/object/WeakPtr.h" 43 43 44 44 #include "worldentities/WorldEntity.h" … … 95 95 96 96 public: 97 DistanceMultiTrigger( BaseObject* creator); // Default Constructor. Registers the object and initializes default values.97 DistanceMultiTrigger(Context* context); // Default Constructor. Registers the object and initializes default values. 98 98 virtual ~DistanceMultiTrigger(); // Destructor. 99 99 -
code/trunk/src/modules/objects/triggers/DistanceTrigger.cc
r8858 r9667 49 49 /*static*/ const std::string DistanceTrigger::beaconModeExlcude_s = "exclude"; 50 50 51 CreateFactory(DistanceTrigger);51 RegisterClass(DistanceTrigger); 52 52 53 53 /** … … 57 57 The creator of this trigger. 58 58 */ 59 DistanceTrigger::DistanceTrigger( BaseObject* creator) : Trigger(creator)59 DistanceTrigger::DistanceTrigger(Context* context) : Trigger(context) 60 60 { 61 61 RegisterObject(DistanceTrigger); -
code/trunk/src/modules/objects/triggers/DistanceTrigger.h
r8706 r9667 97 97 { 98 98 public: 99 DistanceTrigger( BaseObject* creator); // Constructor. Registers and initializes the object.99 DistanceTrigger(Context* context); // Constructor. Registers and initializes the object. 100 100 virtual ~DistanceTrigger(); 101 101 -
code/trunk/src/modules/objects/triggers/DistanceTriggerBeacon.cc
r7601 r9667 40 40 { 41 41 42 CreateFactory(DistanceTriggerBeacon);42 RegisterClass(DistanceTriggerBeacon); 43 43 44 44 /** … … 48 48 The creator of this object. 49 49 */ 50 DistanceTriggerBeacon::DistanceTriggerBeacon( BaseObject* creator) : StaticEntity(creator)50 DistanceTriggerBeacon::DistanceTriggerBeacon(Context* context) : StaticEntity(context) 51 51 { 52 52 RegisterObject(DistanceTriggerBeacon); -
code/trunk/src/modules/objects/triggers/DistanceTriggerBeacon.h
r7601 r9667 57 57 58 58 public: 59 DistanceTriggerBeacon( BaseObject* creator); //!< Constructor.59 DistanceTriggerBeacon(Context* context); //!< Constructor. 60 60 virtual ~DistanceTriggerBeacon() {} //!< Destructor. 61 61 -
code/trunk/src/modules/objects/triggers/EventMultiTrigger.cc
r7601 r9667 43 43 { 44 44 45 CreateFactory(EventMultiTrigger);45 RegisterClass(EventMultiTrigger); 46 46 47 47 /** … … 49 49 Constructor. Registers the object. 50 50 */ 51 EventMultiTrigger::EventMultiTrigger( BaseObject* creator) : MultiTrigger(creator)51 EventMultiTrigger::EventMultiTrigger(Context* context) : MultiTrigger(context) 52 52 { 53 53 RegisterObject(EventMultiTrigger); -
code/trunk/src/modules/objects/triggers/EventMultiTrigger.h
r8213 r9667 73 73 74 74 public: 75 EventMultiTrigger( BaseObject* creator); //!< Constructor. Registers the object.75 EventMultiTrigger(Context* context); //!< Constructor. Registers the object. 76 76 virtual ~EventMultiTrigger(); //!< Destructor. 77 77 -
code/trunk/src/modules/objects/triggers/EventTrigger.cc
r8213 r9667 40 40 namespace orxonox 41 41 { 42 CreateFactory(EventTrigger);42 RegisterClass(EventTrigger); 43 43 44 44 /** … … 48 48 The creator of the EventTrigger. 49 49 */ 50 EventTrigger::EventTrigger( BaseObject* creator) : Trigger(creator)50 EventTrigger::EventTrigger(Context* context) : Trigger(context) 51 51 { 52 52 RegisterObject(EventTrigger); -
code/trunk/src/modules/objects/triggers/EventTrigger.h
r8706 r9667 70 70 { 71 71 public: 72 EventTrigger( BaseObject* creator); // Constructor. Registers and initializes the object.72 EventTrigger(Context* context); // Constructor. Registers and initializes the object. 73 73 virtual ~EventTrigger(); 74 74 -
code/trunk/src/modules/objects/triggers/MultiTrigger.cc
r8858 r9667 43 43 { 44 44 45 CreateFactory(MultiTrigger);45 RegisterClass(MultiTrigger); 46 46 47 47 /** … … 51 51 The creator. 52 52 */ 53 MultiTrigger::MultiTrigger( BaseObject* creator) : TriggerBase(creator)53 MultiTrigger::MultiTrigger(Context* context) : TriggerBase(context) 54 54 { 55 55 RegisterObject(MultiTrigger); … … 451 451 } 452 452 453 MultiTriggerContainer* container = new MultiTriggerContainer(this , this, originator);453 MultiTriggerContainer* container = new MultiTriggerContainer(this->getContext(), this, originator); 454 454 this->fireEvent(status, container); 455 455 orxout(verbose, context::triggers) << "MultiTrigger '" << this->getName() << "' (&" << this << "): Fired event. originator: " << originator->getIdentifier()->getName() << " (&" << originator << "), status: " << status << "." << endl; -
code/trunk/src/modules/objects/triggers/MultiTrigger.h
r9016 r9667 99 99 { 100 100 public: 101 MultiTrigger( BaseObject* creator); //!< Constructor. Registers the objects and initializes default values.101 MultiTrigger(Context* context); //!< Constructor. Registers the objects and initializes default values. 102 102 virtual ~MultiTrigger(); //!< Destructor. 103 103 -
code/trunk/src/modules/objects/triggers/MultiTriggerContainer.cc
r8706 r9667 42 42 { 43 43 44 CreateUnloadableFactory(MultiTriggerContainer);44 RegisterUnloadableClass(MultiTriggerContainer); 45 45 46 46 /** … … 50 50 The creator. 51 51 */ 52 MultiTriggerContainer::MultiTriggerContainer( BaseObject* creator) : BaseObject(creator), originator_(NULL), data_(NULL)52 MultiTriggerContainer::MultiTriggerContainer(Context* context) : BaseObject(context), originator_(NULL), data_(NULL) 53 53 { 54 54 RegisterObject(MultiTriggerContainer); … … 65 65 A pointer to the data that should be sent with the container. 66 66 */ 67 MultiTriggerContainer::MultiTriggerContainer( BaseObject* creator, MultiTrigger* originator, BaseObject* data) : BaseObject(creator), originator_(originator), data_(data)67 MultiTriggerContainer::MultiTriggerContainer(Context* context, MultiTrigger* originator, BaseObject* data) : BaseObject(context), originator_(originator), data_(data) 68 68 { 69 69 RegisterObject(MultiTriggerContainer); -
code/trunk/src/modules/objects/triggers/MultiTriggerContainer.h
r7601 r9667 58 58 59 59 public: 60 MultiTriggerContainer( BaseObject* creator); //!< Default constructor. Registers the object and creates an empty container.61 MultiTriggerContainer( BaseObject* creator, MultiTrigger* originator, BaseObject* data); //!< Constructor. Registers the object and sets the input values.60 MultiTriggerContainer(Context* context); //!< Default constructor. Registers the object and creates an empty container. 61 MultiTriggerContainer(Context* context, MultiTrigger* originator, BaseObject* data); //!< Constructor. Registers the object and sets the input values. 62 62 virtual ~MultiTriggerContainer(); //!< Destructor. 63 63 -
code/trunk/src/modules/objects/triggers/Trigger.cc
r8706 r9667 47 47 SetConsoleCommand("Trigger", "debugFlares", &Trigger::debugFlares).defaultValues(false); 48 48 49 CreateFactory(Trigger);49 RegisterClass(Trigger); 50 50 51 51 /** … … 55 55 The creator of the Trigger. 56 56 */ 57 Trigger::Trigger( BaseObject* creator) : TriggerBase(creator)57 Trigger::Trigger(Context* context) : TriggerBase(context) 58 58 { 59 59 RegisterObject(Trigger); -
code/trunk/src/modules/objects/triggers/Trigger.h
r8213 r9667 80 80 { 81 81 public: 82 Trigger( BaseObject* creator); // Constructor. Registers and initializes the object.82 Trigger(Context* context); // Constructor. Registers and initializes the object. 83 83 virtual ~Trigger(); 84 84 -
code/trunk/src/modules/objects/triggers/TriggerBase.cc
r8858 r9667 46 46 /*static*/ const std::string TriggerBase::xor_s = "xor"; 47 47 48 CreateFactory(TriggerBase);48 RegisterClass(TriggerBase); 49 49 50 50 /** … … 52 52 Constructor. Registers the object and initializes some values. 53 53 */ 54 TriggerBase::TriggerBase( BaseObject* creator) : StaticEntity(creator)54 TriggerBase::TriggerBase(Context* context) : StaticEntity(context) 55 55 { 56 56 RegisterObject(TriggerBase); -
code/trunk/src/modules/objects/triggers/TriggerBase.h
r8706 r9667 74 74 { 75 75 public: 76 TriggerBase( BaseObject* creator);76 TriggerBase(Context* context); 77 77 virtual ~TriggerBase(); 78 78
Note: See TracChangeset
for help on using the changeset viewer.