Changeset 9667 for code/trunk/src/modules/objects
- Timestamp:
- Aug 25, 2013, 9:08:42 PM (11 years ago)
- Location:
- code/trunk
- Files:
-
- 51 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/Attacher.cc
r6417 r9667 34 34 namespace orxonox 35 35 { 36 CreateFactory(Attacher);36 RegisterClass(Attacher); 37 37 38 Attacher::Attacher( BaseObject* creator) : StaticEntity(creator)38 Attacher::Attacher(Context* context) : StaticEntity(context) 39 39 { 40 40 RegisterObject(Attacher); -
code/trunk/src/modules/objects/Attacher.h
r7601 r9667 48 48 { 49 49 public: 50 Attacher( BaseObject* creator);50 Attacher(Context* context); 51 51 virtual ~Attacher() {} 52 52 -
code/trunk/src/modules/objects/ForceField.cc
r8858 r9667 40 40 namespace orxonox 41 41 { 42 CreateFactory(ForceField);42 RegisterClass(ForceField); 43 43 44 44 /*static*/ const std::string ForceField::modeTube_s = "tube"; … … 53 53 Constructor. Registers the object and initializes some values. 54 54 */ 55 ForceField::ForceField( BaseObject* creator) : StaticEntity(creator)55 ForceField::ForceField(Context* context) : StaticEntity(context) 56 56 { 57 57 RegisterObject(ForceField); -
code/trunk/src/modules/objects/ForceField.h
r8397 r9667 86 86 { 87 87 public: 88 ForceField( BaseObject* creator);88 ForceField(Context* context); 89 89 virtual ~ForceField(); 90 90 -
code/trunk/src/modules/objects/Planet.cc
r8858 r9667 42 42 namespace orxonox 43 43 { 44 CreateFactory(Planet);44 RegisterClass(Planet); 45 45 46 46 /** 47 47 * @brief Constructor 48 48 */ 49 Planet::Planet( BaseObject* creator) : MovableEntity(creator)49 Planet::Planet(Context* context) : MovableEntity(context) 50 50 { 51 51 RegisterObject(Planet); -
code/trunk/src/modules/objects/Planet.h
r7601 r9667 48 48 { 49 49 public: 50 Planet( BaseObject* creator);50 Planet(Context* context); 51 51 52 52 virtual ~Planet(); -
code/trunk/src/modules/objects/Script.cc
r8858 r9667 46 46 namespace orxonox 47 47 { 48 CreateFactory(Script);48 RegisterClass(Script); 49 49 50 50 registerStaticNetworkFunction(Script::executeHelper); … … 61 61 The creator of this object. 62 62 */ 63 Script::Script( BaseObject* creator) : BaseObject(creator)63 Script::Script(Context* context) : BaseObject(context) 64 64 { 65 65 RegisterObject(Script); -
code/trunk/src/modules/objects/Script.h
r7601 r9667 95 95 { 96 96 public: 97 Script( BaseObject* creator);97 Script(Context* context); 98 98 virtual ~Script(); 99 99 -
code/trunk/src/modules/objects/SpaceBoundaries.cc
r8858 r9667 32 32 33 33 #include "core/CoreIncludes.h" 34 #include "core/ ObjectListIterator.h"34 #include "core/object/ObjectListIterator.h" 35 35 #include "core/XMLPort.h" 36 36 … … 42 42 namespace orxonox 43 43 { 44 CreateFactory(SpaceBoundaries);45 46 SpaceBoundaries::SpaceBoundaries( BaseObject* creator) : StaticEntity(creator)44 RegisterClass(SpaceBoundaries); 45 46 SpaceBoundaries::SpaceBoundaries(Context* context) : StaticEntity(context) 47 47 { 48 48 RegisterObject(SpaceBoundaries); … … 73 73 { 74 74 pawnsIn_.clear(); 75 for(ObjectList Iterator<Pawn>current = ObjectList<Pawn>::begin(); current != ObjectList<Pawn>::end(); ++current)75 for(ObjectList<Pawn>::iterator current = ObjectList<Pawn>::begin(); current != ObjectList<Pawn>::end(); ++current) 76 76 { 77 77 Pawn* currentPawn = *current; … … 104 104 if (current == this->billboards_.size()) 105 105 { 106 Billboard* billboard = new Billboard(this );106 Billboard* billboard = new Billboard(this->getContext()); 107 107 billboard->setPosition(position); 108 108 billboard->setSyncMode(ObjectDirection::None); -
code/trunk/src/modules/objects/SpaceBoundaries.h
r8767 r9667 36 36 #include <vector> 37 37 38 #include "core/CoreIncludes.h" 39 #include "core/WeakPtr.h" 38 #include "core/object/WeakPtr.h" 40 39 41 40 #include "tools/interfaces/Tickable.h" … … 76 75 { 77 76 public: 78 SpaceBoundaries( BaseObject* creator);77 SpaceBoundaries(Context* context); 79 78 ~SpaceBoundaries(); 80 79 -
code/trunk/src/modules/objects/Turret.cc
r9526 r9667 35 35 namespace orxonox 36 36 { 37 CreateFactory(Turret);37 RegisterClass(Turret); 38 38 39 39 /** 40 40 * @brief Constructor 41 41 */ 42 Turret::Turret( BaseObject* creator) : SpaceShip(creator)42 Turret::Turret(Context* context) : SpaceShip(context) 43 43 { 44 44 RegisterObject(Turret); 45 this->controller_ = new WaypointPatrolController(this );45 this->controller_ = new WaypointPatrolController(this->getContext()); 46 46 } 47 47 -
code/trunk/src/modules/objects/Turret.h
r9526 r9667 45 45 { 46 46 public: 47 Turret( BaseObject* creator);47 Turret(Context* context); 48 48 virtual ~Turret(); 49 49 -
code/trunk/src/modules/objects/collisionshapes/BoxCollisionShape.cc
r8858 r9667 42 42 namespace orxonox 43 43 { 44 CreateFactory(BoxCollisionShape);44 RegisterClass(BoxCollisionShape); 45 45 46 46 /** … … 48 48 Constructor. Registers and initializes the object. 49 49 */ 50 BoxCollisionShape::BoxCollisionShape( BaseObject* creator) : CollisionShape(creator)50 BoxCollisionShape::BoxCollisionShape(Context* context) : CollisionShape(context) 51 51 { 52 52 RegisterObject(BoxCollisionShape); -
code/trunk/src/modules/objects/collisionshapes/BoxCollisionShape.h
r8706 r9667 57 57 { 58 58 public: 59 BoxCollisionShape( BaseObject* creator);59 BoxCollisionShape(Context* context); 60 60 virtual ~BoxCollisionShape(); 61 61 -
code/trunk/src/modules/objects/collisionshapes/ConeCollisionShape.cc
r8858 r9667 42 42 namespace orxonox 43 43 { 44 CreateFactory(ConeCollisionShape);44 RegisterClass(ConeCollisionShape); 45 45 46 46 /** … … 48 48 Constructor. Registers and initializes the object. 49 49 */ 50 ConeCollisionShape::ConeCollisionShape( BaseObject* creator) : CollisionShape(creator)50 ConeCollisionShape::ConeCollisionShape(Context* context) : CollisionShape(context) 51 51 { 52 52 RegisterObject(ConeCollisionShape); -
code/trunk/src/modules/objects/collisionshapes/ConeCollisionShape.h
r8706 r9667 55 55 { 56 56 public: 57 ConeCollisionShape( BaseObject* creator);57 ConeCollisionShape(Context* context); 58 58 virtual ~ConeCollisionShape(); 59 59 -
code/trunk/src/modules/objects/collisionshapes/PlaneCollisionShape.cc
r8858 r9667 42 42 namespace orxonox 43 43 { 44 CreateFactory(PlaneCollisionShape);44 RegisterClass(PlaneCollisionShape); 45 45 46 46 /** … … 48 48 Constructor. Registers and initializes the object. 49 49 */ 50 PlaneCollisionShape::PlaneCollisionShape( BaseObject* creator) : CollisionShape(creator)50 PlaneCollisionShape::PlaneCollisionShape(Context* context) : CollisionShape(context) 51 51 { 52 52 RegisterObject(PlaneCollisionShape); -
code/trunk/src/modules/objects/collisionshapes/PlaneCollisionShape.h
r8706 r9667 57 57 { 58 58 public: 59 PlaneCollisionShape( BaseObject* creator);59 PlaneCollisionShape(Context* context); 60 60 virtual ~PlaneCollisionShape(); 61 61 -
code/trunk/src/modules/objects/collisionshapes/SphereCollisionShape.cc
r8858 r9667 42 42 namespace orxonox 43 43 { 44 CreateFactory(SphereCollisionShape);44 RegisterClass(SphereCollisionShape); 45 45 46 46 /** … … 48 48 Constructor. registers and initializes the object. 49 49 */ 50 SphereCollisionShape::SphereCollisionShape( BaseObject* creator) : CollisionShape(creator)50 SphereCollisionShape::SphereCollisionShape(Context* context) : CollisionShape(context) 51 51 { 52 52 RegisterObject(SphereCollisionShape); -
code/trunk/src/modules/objects/collisionshapes/SphereCollisionShape.h
r8706 r9667 55 55 { 56 56 public: 57 SphereCollisionShape( BaseObject* creator);57 SphereCollisionShape(Context* context); 58 58 virtual ~SphereCollisionShape(); 59 59 -
code/trunk/src/modules/objects/eventsystem/EventDispatcher.cc
r5929 r9667 35 35 namespace orxonox 36 36 { 37 CreateFactory(EventDispatcher);37 RegisterClass(EventDispatcher); 38 38 39 EventDispatcher::EventDispatcher( BaseObject* creator) : BaseObject(creator)39 EventDispatcher::EventDispatcher(Context* context) : BaseObject(context) 40 40 { 41 41 RegisterObject(EventDispatcher); -
code/trunk/src/modules/objects/eventsystem/EventDispatcher.h
r7601 r9667 46 46 { 47 47 public: 48 EventDispatcher( BaseObject* creator);48 EventDispatcher(Context* context); 49 49 virtual ~EventDispatcher(); 50 50 -
code/trunk/src/modules/objects/eventsystem/EventFilter.cc
r8858 r9667 36 36 namespace orxonox 37 37 { 38 CreateFactory(EventFilter);38 RegisterClass(EventFilter); 39 39 40 EventFilter::EventFilter( BaseObject* creator) : BaseObject(creator)40 EventFilter::EventFilter(Context* context) : BaseObject(context) 41 41 { 42 42 RegisterObject(EventFilter); -
code/trunk/src/modules/objects/eventsystem/EventFilter.h
r7601 r9667 46 46 { 47 47 public: 48 EventFilter( BaseObject* creator);48 EventFilter(Context* context); 49 49 virtual ~EventFilter(); 50 50 -
code/trunk/src/modules/objects/eventsystem/EventListener.cc
r8858 r9667 35 35 namespace orxonox 36 36 { 37 CreateFactory(EventListener);37 RegisterClass(EventListener); 38 38 39 EventListener::EventListener( BaseObject* creator) : BaseObject(creator)39 EventListener::EventListener(Context* context) : BaseObject(context) 40 40 { 41 41 RegisterObject(EventListener); -
code/trunk/src/modules/objects/eventsystem/EventListener.h
r7601 r9667 47 47 { 48 48 public: 49 EventListener( BaseObject* creator);49 EventListener(Context* context); 50 50 virtual ~EventListener(); 51 51 -
code/trunk/src/modules/objects/eventsystem/EventName.cc
r5929 r9667 32 32 namespace orxonox 33 33 { 34 CreateFactory(EventName);34 RegisterClass(EventName); 35 35 36 EventName::EventName( BaseObject* creator) : BaseObject(creator)36 EventName::EventName(Context* context) : BaseObject(context) 37 37 { 38 38 RegisterObject(EventName); -
code/trunk/src/modules/objects/eventsystem/EventName.h
r7601 r9667 45 45 { 46 46 public: 47 EventName( BaseObject* creator);47 EventName(Context* context); 48 48 virtual ~EventName() {} 49 49 }; -
code/trunk/src/modules/objects/eventsystem/EventTarget.cc
r8858 r9667 33 33 namespace orxonox 34 34 { 35 CreateFactory(EventTarget);35 RegisterClass(EventTarget); 36 36 37 EventTarget::EventTarget( BaseObject* creator) : BaseObject(creator)37 EventTarget::EventTarget(Context* context) : BaseObject(context) 38 38 { 39 39 RegisterObject(EventTarget); -
code/trunk/src/modules/objects/eventsystem/EventTarget.h
r7601 r9667 46 46 { 47 47 public: 48 EventTarget( BaseObject* creator);48 EventTarget(Context* context); 49 49 virtual ~EventTarget(); 50 50 -
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.