Changeset 8942 for code/branches/gamecontent/src/orxonox/worldentities
- Timestamp:
- Nov 18, 2011, 6:52:21 PM (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
r8904 r8942 60 60 this->bReload_ = false; 61 61 62 this->team_ = -1; 62 63 this->health_ = 0; 63 64 this->maxHealth_ = 0; … … 110 111 SUPER(Pawn, XMLPort, xmlelement, mode); 111 112 113 XMLPortParam(Pawn, "team", setTeam, getTeam, xmlelement, mode).defaultValues(-1); 114 112 115 XMLPortParam(Pawn, "health", setHealth, getHealth, xmlelement, mode).defaultValues(100); 113 116 XMLPortParam(Pawn, "maxhealth", setMaxHealth, getMaxHealth, xmlelement, mode).defaultValues(200); … … 129 132 XMLPortParam(Pawn, "reloadrate", setReloadRate, getReloadRate, xmlelement, mode).defaultValues(0); 130 133 XMLPortParam(Pawn, "reloadwaittime", setReloadWaitTime, getReloadWaitTime, xmlelement, mode).defaultValues(1.0f); 134 135 131 136 } 132 137 -
code/branches/gamecontent/src/orxonox/worldentities/pawns/Pawn.h
r8891 r8942 35 35 #include "interfaces/PickupCarrier.h" 36 36 #include "interfaces/RadarViewable.h" 37 #include "interfaces/PartyMember.h" 37 38 #include "worldentities/ControllableEntity.h" 38 39 … … 40 41 { // tolua_export 41 42 class _OrxonoxExport Pawn // tolua_export 42 : public ControllableEntity, public RadarViewable, public PickupCarrier 43 : public ControllableEntity, public RadarViewable, public PickupCarrier//, public PartyMember 43 44 { // tolua_export 44 45 friend class WeaponSystem; … … 53 54 inline bool isAlive() const 54 55 { return this->bAlive_; } 56 57 inline void setTeam(int team) 58 { this->team_ = team; } 59 inline float getTeam() const 60 { return this->team_; } 55 61 56 62 virtual void setHealth(float health); … … 194 200 { return NULL; } 195 201 202 int team_; 203 196 204 float health_; 197 205 float maxHealth_;
Note: See TracChangeset
for help on using the changeset viewer.