Changeset 6524 for code/trunk/src/orxonox/worldentities/pawns
- Timestamp:
- Mar 15, 2010, 3:27:09 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/worldentities/pawns/Pawn.cc
r6417 r6524 71 71 this->aimPosition_ = Vector3::ZERO; 72 72 73 this->getPickups().setOwner(this); 73 //TODO: Remove. 74 //this->getPickups().setOwner(this); 74 75 75 76 if (GameMode::isMaster()) … … 296 297 } 297 298 298 void Pawn::dropItems() 299 { 300 this->getPickups().clear(); 301 } 299 //TODO: Remove. 300 // void Pawn::dropItems() 301 // { 302 // this->getPickups().clear(); 303 // } 302 304 303 305 -
code/trunk/src/orxonox/worldentities/pawns/Pawn.h
r6417 r6524 33 33 34 34 #include <string> 35 #include "interfaces/PickupCarrier.h" 35 36 #include "interfaces/RadarViewable.h" 36 37 #include "worldentities/ControllableEntity.h" 37 #include "pickup/PickupCollection.h"38 38 39 39 namespace orxonox 40 40 { 41 class _OrxonoxExport Pawn : public ControllableEntity, public RadarViewable 41 class _OrxonoxExport Pawn : public ControllableEntity, public RadarViewable, public PickupCarrier 42 42 { 43 43 friend class WeaponSystem; … … 109 109 { return this->numexplosionchunks_; } 110 110 111 virtual void dropItems(); 112 inline PickupCollection& getPickups() 113 { return this->pickups_; } 114 virtual void useItem() 115 { this->pickups_.useItem(); } 111 //TODO: Remove. 112 // virtual void dropItems(); 113 // inline PickupCollection& getPickups() 114 // { return this->pickups_; } 115 // virtual void useItem() 116 // { this->pickups_.useItem(); } 116 117 117 118 virtual void startLocalHumanControl(); … … 135 136 bool bAlive_; 136 137 137 PickupCollection pickups_; 138 //TODO: Remove. 139 //PickupCollection pickups_; 140 virtual std::list<PickupCarrier*>* getCarrierChildren(void) 141 { return new std::list<PickupCarrier*>(); } 142 virtual PickupCarrier* getCarrierParent(void) 143 { return NULL; } 144 virtual const Vector3& getCarrierPosition(void) 145 { return this->getWorldPosition(); }; 138 146 139 147 float health_;
Note: See TracChangeset
for help on using the changeset viewer.