summaryrefslogtreecommitdiff
path: root/src/game-server/item.hpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-08-19 15:39:44 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-08-19 15:39:44 +0000
commit71b183077492e4f9e78bb09d1f1c55d98f60c416 (patch)
tree463115ac59c847d405abd27ee6f216a109df0b3c /src/game-server/item.hpp
parent82498f572e4c6c26f2dc9545d7bc4c06a3c9eb0f (diff)
downloadmanaserv-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/item.hpp')
-rw-r--r--src/game-server/item.hpp17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/game-server/item.hpp b/src/game-server/item.hpp
index b2bbd303..84695429 100644
--- a/src/game-server/item.hpp
+++ b/src/game-server/item.hpp
@@ -24,7 +24,6 @@
#ifndef _TMWSERV_ITEM
#define _TMWSERV_ITEM
-#include <string>
#include <vector>
#include "game-server/object.hpp"
@@ -178,8 +177,8 @@ class ItemClass
{}
/**
- * The function called to use an item applying
- * only the modifiers (for simple items...)
+ * Applies the modifiers of an item to a given user.
+ * @return true if the item was sucessfully used and should be removed.
*/
bool use(Being *itemUser);
@@ -238,12 +237,6 @@ class ItemClass
{ mModifiers = modifiers; }
/**
- * Sets associated script name.
- */
- void setScriptName(std::string const &name)
- { mScriptName = name; }
-
- /**
* Gets database ID.
*/
int getDatabaseID()
@@ -263,11 +256,6 @@ class ItemClass
private:
- /**
- * Runs the associated script when using the item, if any.
- */
- bool runScript(Being *itemUser);
-
// Item reference information
unsigned short mDatabaseID;
unsigned short mSpriteID; /**< The sprite that should be shown to the character */
@@ -275,7 +263,6 @@ class ItemClass
unsigned short mWeight; /**< Weight of the item. */
unsigned short mCost; /**< Unit cost the item. */
unsigned short mMaxPerSlot; /**< Max item amount per slot in inventory. */
- std::string mScriptName; /**< Item script. */
ItemModifiers mModifiers; /**< Item modifiers. */
};