Changeset 9629 for code/branches/core6/src/modules/objects
- Timestamp:
- Aug 9, 2013, 9:26:46 PM (11 years ago)
- Location:
- code/branches/core6/src/modules/objects
- Files:
-
- 50 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core6/src/modules/objects/Attacher.cc
r6417 r9629 36 36 CreateFactory(Attacher); 37 37 38 Attacher::Attacher( BaseObject* creator) : StaticEntity(creator)38 Attacher::Attacher(Context* context) : StaticEntity(context) 39 39 { 40 40 RegisterObject(Attacher); -
code/branches/core6/src/modules/objects/Attacher.h
r7601 r9629 48 48 { 49 49 public: 50 Attacher( BaseObject* creator);50 Attacher(Context* context); 51 51 virtual ~Attacher() {} 52 52 -
code/branches/core6/src/modules/objects/ForceField.cc
r8858 r9629 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/branches/core6/src/modules/objects/ForceField.h
r8397 r9629 86 86 { 87 87 public: 88 ForceField( BaseObject* creator);88 ForceField(Context* context); 89 89 virtual ~ForceField(); 90 90 -
code/branches/core6/src/modules/objects/Planet.cc
r8858 r9629 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/branches/core6/src/modules/objects/Planet.h
r7601 r9629 48 48 { 49 49 public: 50 Planet( BaseObject* creator);50 Planet(Context* context); 51 51 52 52 virtual ~Planet(); -
code/branches/core6/src/modules/objects/Script.cc
r8858 r9629 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/branches/core6/src/modules/objects/Script.h
r7601 r9629 95 95 { 96 96 public: 97 Script( BaseObject* creator);97 Script(Context* context); 98 98 virtual ~Script(); 99 99 -
code/branches/core6/src/modules/objects/SpaceBoundaries.cc
r9600 r9629 44 44 CreateFactory(SpaceBoundaries); 45 45 46 SpaceBoundaries::SpaceBoundaries( BaseObject* creator) : StaticEntity(creator)46 SpaceBoundaries::SpaceBoundaries(Context* context) : StaticEntity(context) 47 47 { 48 48 RegisterObject(SpaceBoundaries); … … 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/branches/core6/src/modules/objects/SpaceBoundaries.h
r9579 r9629 75 75 { 76 76 public: 77 SpaceBoundaries( BaseObject* creator);77 SpaceBoundaries(Context* context); 78 78 ~SpaceBoundaries(); 79 79 -
code/branches/core6/src/modules/objects/Turret.cc
r9526 r9629 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/branches/core6/src/modules/objects/Turret.h
r9526 r9629 45 45 { 46 46 public: 47 Turret( BaseObject* creator);47 Turret(Context* context); 48 48 virtual ~Turret(); 49 49 -
code/branches/core6/src/modules/objects/collisionshapes/BoxCollisionShape.cc
r8858 r9629 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/branches/core6/src/modules/objects/collisionshapes/BoxCollisionShape.h
r8706 r9629 57 57 { 58 58 public: 59 BoxCollisionShape( BaseObject* creator);59 BoxCollisionShape(Context* context); 60 60 virtual ~BoxCollisionShape(); 61 61 -
code/branches/core6/src/modules/objects/collisionshapes/ConeCollisionShape.cc
r8858 r9629 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/branches/core6/src/modules/objects/collisionshapes/ConeCollisionShape.h
r8706 r9629 55 55 { 56 56 public: 57 ConeCollisionShape( BaseObject* creator);57 ConeCollisionShape(Context* context); 58 58 virtual ~ConeCollisionShape(); 59 59 -
code/branches/core6/src/modules/objects/collisionshapes/PlaneCollisionShape.cc
r8858 r9629 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/branches/core6/src/modules/objects/collisionshapes/PlaneCollisionShape.h
r8706 r9629 57 57 { 58 58 public: 59 PlaneCollisionShape( BaseObject* creator);59 PlaneCollisionShape(Context* context); 60 60 virtual ~PlaneCollisionShape(); 61 61 -
code/branches/core6/src/modules/objects/collisionshapes/SphereCollisionShape.cc
r8858 r9629 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/branches/core6/src/modules/objects/collisionshapes/SphereCollisionShape.h
r8706 r9629 55 55 { 56 56 public: 57 SphereCollisionShape( BaseObject* creator);57 SphereCollisionShape(Context* context); 58 58 virtual ~SphereCollisionShape(); 59 59 -
code/branches/core6/src/modules/objects/eventsystem/EventDispatcher.cc
r5929 r9629 37 37 CreateFactory(EventDispatcher); 38 38 39 EventDispatcher::EventDispatcher( BaseObject* creator) : BaseObject(creator)39 EventDispatcher::EventDispatcher(Context* context) : BaseObject(context) 40 40 { 41 41 RegisterObject(EventDispatcher); -
code/branches/core6/src/modules/objects/eventsystem/EventDispatcher.h
r7601 r9629 46 46 { 47 47 public: 48 EventDispatcher( BaseObject* creator);48 EventDispatcher(Context* context); 49 49 virtual ~EventDispatcher(); 50 50 -
code/branches/core6/src/modules/objects/eventsystem/EventFilter.cc
r8858 r9629 38 38 CreateFactory(EventFilter); 39 39 40 EventFilter::EventFilter( BaseObject* creator) : BaseObject(creator)40 EventFilter::EventFilter(Context* context) : BaseObject(context) 41 41 { 42 42 RegisterObject(EventFilter); -
code/branches/core6/src/modules/objects/eventsystem/EventFilter.h
r7601 r9629 46 46 { 47 47 public: 48 EventFilter( BaseObject* creator);48 EventFilter(Context* context); 49 49 virtual ~EventFilter(); 50 50 -
code/branches/core6/src/modules/objects/eventsystem/EventListener.cc
r8858 r9629 37 37 CreateFactory(EventListener); 38 38 39 EventListener::EventListener( BaseObject* creator) : BaseObject(creator)39 EventListener::EventListener(Context* context) : BaseObject(context) 40 40 { 41 41 RegisterObject(EventListener); -
code/branches/core6/src/modules/objects/eventsystem/EventListener.h
r7601 r9629 47 47 { 48 48 public: 49 EventListener( BaseObject* creator);49 EventListener(Context* context); 50 50 virtual ~EventListener(); 51 51 -
code/branches/core6/src/modules/objects/eventsystem/EventName.cc
r5929 r9629 34 34 CreateFactory(EventName); 35 35 36 EventName::EventName( BaseObject* creator) : BaseObject(creator)36 EventName::EventName(Context* context) : BaseObject(context) 37 37 { 38 38 RegisterObject(EventName); -
code/branches/core6/src/modules/objects/eventsystem/EventName.h
r7601 r9629 45 45 { 46 46 public: 47 EventName( BaseObject* creator);47 EventName(Context* context); 48 48 virtual ~EventName() {} 49 49 }; -
code/branches/core6/src/modules/objects/eventsystem/EventTarget.cc
r8858 r9629 35 35 CreateFactory(EventTarget); 36 36 37 EventTarget::EventTarget( BaseObject* creator) : BaseObject(creator)37 EventTarget::EventTarget(Context* context) : BaseObject(context) 38 38 { 39 39 RegisterObject(EventTarget); -
code/branches/core6/src/modules/objects/eventsystem/EventTarget.h
r7601 r9629 46 46 { 47 47 public: 48 EventTarget( BaseObject* creator);48 EventTarget(Context* context); 49 49 virtual ~EventTarget(); 50 50 -
code/branches/core6/src/modules/objects/triggers/CheckPoint.cc
r9348 r9629 44 44 CreateFactory(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/branches/core6/src/modules/objects/triggers/CheckPoint.h
r7601 r9629 55 55 { 56 56 public: 57 CheckPoint( BaseObject* creator);57 CheckPoint(Context* context); 58 58 virtual ~CheckPoint(); 59 59 -
code/branches/core6/src/modules/objects/triggers/DistanceMultiTrigger.cc
r8858 r9629 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/branches/core6/src/modules/objects/triggers/DistanceMultiTrigger.h
r9557 r9629 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/branches/core6/src/modules/objects/triggers/DistanceTrigger.cc
r8858 r9629 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/branches/core6/src/modules/objects/triggers/DistanceTrigger.h
r8706 r9629 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/branches/core6/src/modules/objects/triggers/DistanceTriggerBeacon.cc
r7601 r9629 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/branches/core6/src/modules/objects/triggers/DistanceTriggerBeacon.h
r7601 r9629 57 57 58 58 public: 59 DistanceTriggerBeacon( BaseObject* creator); //!< Constructor.59 DistanceTriggerBeacon(Context* context); //!< Constructor. 60 60 virtual ~DistanceTriggerBeacon() {} //!< Destructor. 61 61 -
code/branches/core6/src/modules/objects/triggers/EventMultiTrigger.cc
r7601 r9629 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/branches/core6/src/modules/objects/triggers/EventMultiTrigger.h
r8213 r9629 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/branches/core6/src/modules/objects/triggers/EventTrigger.cc
r8213 r9629 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/branches/core6/src/modules/objects/triggers/EventTrigger.h
r8706 r9629 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/branches/core6/src/modules/objects/triggers/MultiTrigger.cc
r8858 r9629 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/branches/core6/src/modules/objects/triggers/MultiTrigger.h
r9016 r9629 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/branches/core6/src/modules/objects/triggers/MultiTriggerContainer.cc
r8706 r9629 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/branches/core6/src/modules/objects/triggers/MultiTriggerContainer.h
r7601 r9629 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/branches/core6/src/modules/objects/triggers/Trigger.cc
r8706 r9629 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/branches/core6/src/modules/objects/triggers/Trigger.h
r8213 r9629 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/branches/core6/src/modules/objects/triggers/TriggerBase.cc
r8858 r9629 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/branches/core6/src/modules/objects/triggers/TriggerBase.h
r8706 r9629 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.