- Timestamp:
- Nov 26, 2011, 10:06:08 AM (13 years ago)
- Location:
- code/branches/gamecontent/src/orxonox/worldentities/pawns
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamecontent/src/orxonox/worldentities/pawns/Pawn.cc
r8942 r8951 60 60 this->bReload_ = false; 61 61 62 this->team_ = -1;63 62 this->health_ = 0; 64 63 this->maxHealth_ = 0; … … 110 109 { 111 110 SUPER(Pawn, XMLPort, xmlelement, mode); 112 113 XMLPortParam(Pawn, "team", setTeam, getTeam, xmlelement, mode).defaultValues(-1);114 111 115 112 XMLPortParam(Pawn, "health", setHealth, getHealth, xmlelement, mode).defaultValues(100); -
code/branches/gamecontent/src/orxonox/worldentities/pawns/Pawn.h
r8942 r8951 35 35 #include "interfaces/PickupCarrier.h" 36 36 #include "interfaces/RadarViewable.h" 37 #include "interfaces/PartyMember.h"38 37 #include "worldentities/ControllableEntity.h" 39 38 … … 41 40 { // tolua_export 42 41 class _OrxonoxExport Pawn // tolua_export 43 : public ControllableEntity, public RadarViewable, public PickupCarrier //, public PartyMember42 : public ControllableEntity, public RadarViewable, public PickupCarrier 44 43 { // tolua_export 45 44 friend class WeaponSystem; … … 55 54 { return this->bAlive_; } 56 55 57 inline void setTeam(int team)58 { this->team_ = team; }59 inline float getTeam() const60 { return this->team_; }61 56 62 57 virtual void setHealth(float health); … … 200 195 { return NULL; } 201 196 202 int team_;203 197 204 198 float health_;
Note: See TracChangeset
for help on using the changeset viewer.