Changeset 8169 in orxonox.OLD for branches/cr/src/world_entities/world_entity.h
- Timestamp:
- Jun 6, 2006, 2:05:33 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cr/src/world_entities/world_entity.h
r8106 r8169 106 106 107 107 /* --- Character Attribute Block --- */ 108 /** @returns the damage dealt by this world entity */ 109 float getDamage() const { return this->damage; } 110 /** sets the damage dealt to @param damage damage per second */ 111 void setDamage(float damage) { this->damage = damage; } 108 112 /** @returns the Energy of the entity */ 109 113 float getHealth() const { return this->health; }; … … 142 146 private: 143 147 /// TODO maybe we will move the following three entries and the corresponding functions to Playable AND NPC 148 float damage; //!< the damage dealt to other objects by colliding. 144 149 float health; //!< The Energy of this Entity, if the Entity has any energy at all. 145 150 float healthMax; //!< The Maximal energy this entity can take.
Note: See TracChangeset
for help on using the changeset viewer.