diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-19 15:39:44 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-19 15:39:44 +0000 |
commit | 71b183077492e4f9e78bb09d1f1c55d98f60c416 (patch) | |
tree | 463115ac59c847d405abd27ee6f216a109df0b3c /src/game-server/being.hpp | |
parent | 82498f572e4c6c26f2dc9545d7bc4c06a3c9eb0f (diff) | |
download | manaserv-71b183077492e4f9e78bb09d1f1c55d98f60c416.tar.gz manaserv-71b183077492e4f9e78bb09d1f1c55d98f60c416.tar.bz2 manaserv-71b183077492e4f9e78bb09d1f1c55d98f60c416.tar.xz manaserv-71b183077492e4f9e78bb09d1f1c55d98f60c416.zip |
Implemented use of items, e.g. food.
Diffstat (limited to 'src/game-server/being.hpp')
-rw-r--r-- | src/game-server/being.hpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/game-server/being.hpp b/src/game-server/being.hpp index 6c5b2669..a390a4bf 100644 --- a/src/game-server/being.hpp +++ b/src/game-server/being.hpp @@ -197,13 +197,12 @@ class Being : public MovingObject /** * Adds a modifier to one attribute. + * @param duration If non-zero, creates a temporary modifier that + * expires after \p duration ticks. + * @param lvl If non-zero, indicates that a temporary modifier can be + * dispelled prematuraly by a spell of given level. */ - void addModifier(AttributeModifier const &); - - /** - * Removes a modifier due to an equipment. - */ - void removeEquipmentModifier(int attr, int value); + void applyModifier(int attr, int value, int duration = 0, int lvl = 0); /** * Removes all the modifiers with a level low enough. |