Changeset 3582 in orxonox.OLD for orxonox/trunk/src/world_entities/character_attributes.h
- Timestamp:
- Mar 16, 2005, 6:54:34 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/character_attributes.h
r3581 r3582 22 22 /* health */ 23 23 void setHealth(int health); 24 voidaddHealth(int health);25 voidsubstractHealth(int health);24 int addHealth(int health); 25 bool substractHealth(int health); 26 26 int getHealth(); 27 27 … … 33 33 void setShieldStrength(int shieldStrength); 34 34 void addShieldStrength(int shiledStrength); 35 voidsubstractShieldStrength(int shieldStrength);35 int substractShieldStrength(int shieldStrength); 36 36 int getShieldStrength(); 37 37 … … 57 57 void setEnergy(int energy); 58 58 int addEnergy(int addEnergy); 59 voidsubstractEnergy(int subEnergy);59 bool substractEnergy(int subEnergy); 60 60 int getEnergy(); 61 62 void setEnergyConsumption(int energy); 63 int getEnergyConsumption(); 64 65 void setEnergyMax(int energy); 66 int getEnergyMax(); 61 67 62 68 … … 79 85 /* energy */ 80 86 int energyConsumption; //<! if the character defines an action, it will consume energy 87 int energy; //<! the current amount of energy saved in this part 81 88 int energyMax; //<! the maximal energy a character can handle 82 89 };
Note: See TracChangeset
for help on using the changeset viewer.