Changeset 3073 for code/trunk/src/orxonox/objects/worldentities
- Timestamp:
- May 25, 2009, 8:30:15 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore
-
old new 1 1 build 2 2 codeblocks 3 dependencies
-
- Property svn:mergeinfo changed
/code/branches/pickups merged: 2828,2831,2864,2900 /code/branches/pickups2 merged: 2916-2917,2972,3001,3016,3040-3042,3046,3063
- Property svn:ignore
-
code/trunk/src/orxonox/objects/worldentities/ControllableEntity.h
r3053 r3073 85 85 virtual void boost() {} 86 86 virtual void greet() {} 87 virtual void use () {}87 virtual void useItem() {} 88 88 virtual void dropItems() {} 89 89 virtual void switchCamera(); -
code/trunk/src/orxonox/objects/worldentities/pawns/Pawn.cc
r3053 r3073 66 66 this->spawnparticleduration_ = 3.0f; 67 67 68 this->getPick Up().setPlayer(this);68 this->getPickups().setOwner(this); 69 69 70 70 if (GameMode::isMaster()) … … 214 214 this->setDestroyWhenPlayerLeft(false); 215 215 216 this->dropItems(); 217 216 218 if (this->getGametype()) 217 219 this->getGametype()->pawnKilled(this, this->lastHitOriginator_); … … 278 280 void Pawn::dropItems() 279 281 { 280 pickUp.eraseAll();282 this->getPickups().clear(); 281 283 } 282 284 -
code/trunk/src/orxonox/objects/worldentities/pawns/Pawn.h
r3053 r3073 31 31 32 32 #include "OrxonoxPrereqs.h" 33 #include "objects/pickup/ShipEquipment.h"34 33 #include "objects/worldentities/ControllableEntity.h" 35 34 #include "objects/RadarViewable.h" 35 #include "objects/pickup/PickupCollection.h" 36 36 37 37 namespace orxonox … … 106 106 { return this->numexplosionchunks_; } 107 107 108 inline ShipEquipment& getPickUp()109 {return this->pickUp;}110 111 108 virtual void dropItems(); 109 inline PickupCollection& getPickups() 110 { return this->pickups_; } 111 virtual void useItem() 112 { this->pickups_.useItem(); } 112 113 113 114 protected: … … 119 120 virtual void spawneffect(); 120 121 121 ShipEquipment pickUp;122 122 bool bAlive_; 123 123 124 PickupCollection pickups_; 124 125 125 126 float health_;
Note: See TracChangeset
for help on using the changeset viewer.