diff options
Diffstat (limited to 'src/game-server/being.h')
-rw-r--r-- | src/game-server/being.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/game-server/being.h b/src/game-server/being.h index eee8147..0083be1 100644 --- a/src/game-server/being.h +++ b/src/game-server/being.h @@ -36,7 +36,7 @@ class Being; class MapComposite; class StatusEffect; -typedef std::map< unsigned int, Attribute > AttributeMap; +typedef std::map< unsigned, Attribute > AttributeMap; struct Status { @@ -49,7 +49,7 @@ typedef std::map< int, Status > StatusEffects; /** * Type definition for a list of hits */ -typedef std::vector<unsigned int> Hits; +typedef std::vector<unsigned> Hits; /** * Generic being (living actor). Keeps direction, destination and a few other @@ -192,31 +192,31 @@ class Being : public Actor /** * Sets an attribute. */ - void setAttribute(unsigned int id, double value); + void setAttribute(unsigned id, double value); /** * Gets an attribute. */ - double getAttribute(unsigned int id) const; + double getAttribute(unsigned id) const; /** * Gets an attribute after applying modifiers. */ - double getModifiedAttribute(unsigned int id) const; + double getModifiedAttribute(unsigned id) const; /** * No-op to satisfy shared structure. * @note The game server calculates this manually, so nothing happens * here. */ - void setModAttribute(unsigned int, double); + void setModAttribute(unsigned, double); /** * Checks whether or not an attribute exists in this being. * @returns True if the attribute is present in the being, false otherwise. */ - bool checkAttributeExists(unsigned int id) const + bool checkAttributeExists(unsigned id) const { return mAttributes.count(id); } /** @@ -226,11 +226,11 @@ class Being : public Actor * @param lvl If non-zero, indicates that a temporary modifier can be * dispelled prematuraly by a spell of given level. */ - void applyModifier(unsigned int attr, double value, unsigned int layer, - unsigned int duration = 0, unsigned int id = 0); + void applyModifier(unsigned attr, double value, unsigned layer, + unsigned duration = 0, unsigned id = 0); - bool removeModifier(unsigned int attr, double value, unsigned int layer, - unsigned int id = 0, bool fullcheck = false); + bool removeModifier(unsigned attr, double value, unsigned layer, + unsigned id = 0, bool fullcheck = false); /** * Called when an attribute modifier is changed. @@ -238,14 +238,14 @@ class Being : public Actor * attributes if it has changed. * @returns Whether it was changed. */ - virtual bool recalculateBaseAttribute(unsigned int); + virtual bool recalculateBaseAttribute(unsigned); /** * Attribute has changed, recalculate base value of dependant * attributes (and handle other actions for the modified * attribute) */ - virtual void updateDerivedAttributes(unsigned int); + virtual void updateDerivedAttributes(unsigned); /** * Sets a statuseffect on this being |