Changeset 6711 for code/trunk/src/orxonox/worldentities
- Timestamp:
- Apr 13, 2010, 10:16:10 AM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/pickup4 (added) merged: 6632,6669,6675,6679,6700-6701,6707
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/worldentities/pawns/Pawn.cc
r6540 r6711 78 78 else 79 79 this->weaponSystem_ = 0; 80 81 this->setCarrierName("Pawn"); 80 82 81 83 this->setRadarObjectColour(ColourValue::Red); -
code/trunk/src/orxonox/worldentities/pawns/Pawn.h
r6540 r6711 37 37 #include "worldentities/ControllableEntity.h" 38 38 39 namespace orxonox 40 { 41 class _OrxonoxExport Pawn : public ControllableEntity, public RadarViewable, public PickupCarrier 42 { 39 namespace orxonox // tolua_export 40 { // tolua_export 41 class _OrxonoxExport Pawn // tolua_export 42 : public ControllableEntity, public RadarViewable, public PickupCarrier 43 { // tolua_export 43 44 friend class WeaponSystem; 44 45 … … 132 133 bool bAlive_; 133 134 134 virtual std:: list<PickupCarrier*>* getCarrierChildren(void)135 { return new std:: list<PickupCarrier*>(); }135 virtual std::vector<PickupCarrier*>* getCarrierChildren(void) 136 { return new std::vector<PickupCarrier*>(); } 136 137 virtual PickupCarrier* getCarrierParent(void) 137 138 { return NULL; } … … 155 156 156 157 Vector3 aimPosition_; 157 }; 158 } 158 }; // tolua_export 159 } // tolua_export 159 160 160 161 #endif /* _Pawn_H__ */ -
code/trunk/src/orxonox/worldentities/pawns/SpaceShip.cc
r6709 r6711 221 221 } 222 222 223 std:: list<PickupCarrier*>* SpaceShip::getCarrierChildren(void)224 { 225 std:: list<PickupCarrier*>* list = new std::list<PickupCarrier*>();226 list->push_ front(this->engine_);223 std::vector<PickupCarrier*>* SpaceShip::getCarrierChildren(void) 224 { 225 std::vector<PickupCarrier*>* list = new std::vector<PickupCarrier*>(); 226 list->push_back(this->engine_); 227 227 return list; 228 228 } -
code/trunk/src/orxonox/worldentities/pawns/SpaceShip.h
r6709 r6711 86 86 87 87 protected: 88 virtual std:: list<PickupCarrier*>* getCarrierChildren(void);88 virtual std::vector<PickupCarrier*>* getCarrierChildren(void); 89 89 bool bInvertYAxis_; 90 90
Note: See TracChangeset
for help on using the changeset viewer.