Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 6, 2006, 2:05:33 AM (18 years ago)
Author:
patrick
Message:

cr: using a new damage structure for dealing damage. working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cr/src/world_entities/world_entity.h

    r8106 r8169  
    106106
    107107  /* --- 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; }
    108112  /** @returns the Energy of the entity */
    109113  float getHealth() const { return this->health; };
     
    142146private:
    143147  /// 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.
    144149  float                   health;             //!< The Energy of this Entity, if the Entity has any energy at all.
    145150  float                   healthMax;          //!< The Maximal energy this entity can take.
Note: See TracChangeset for help on using the changeset viewer.