Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 16, 2005, 6:54:34 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: written character framework

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/character_attributes.h

    r3581 r3582  
    2222  /* health */
    2323  void setHealth(int health);
    24   void addHealth(int health);
    25   void substractHealth(int health);
     24  int addHealth(int health);
     25  bool substractHealth(int health);
    2626  int getHealth();
    2727
     
    3333  void setShieldStrength(int shieldStrength);
    3434  void addShieldStrength(int shiledStrength);
    35   void substractShieldStrength(int shieldStrength);
     35  int substractShieldStrength(int shieldStrength);
    3636  int getShieldStrength();
    3737
     
    5757  void setEnergy(int energy);
    5858  int addEnergy(int addEnergy);
    59   void substractEnergy(int subEnergy);
     59  bool substractEnergy(int subEnergy);
    6060  int getEnergy();
     61
     62  void setEnergyConsumption(int energy);
     63  int getEnergyConsumption();
     64
     65  void setEnergyMax(int energy);
     66  int getEnergyMax();
    6167 
    6268
     
    7985  /* energy */
    8086  int energyConsumption;             //<! if the character defines an action, it will consume energy
     87  int energy;                        //<! the current amount of energy saved in this part
    8188  int energyMax;                     //<! the maximal energy a character can handle
    8289};
Note: See TracChangeset for help on using the changeset viewer.