From 1320d07068f25ff23ea27e120983c006f75bec24 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 12 Nov 2011 17:37:14 +0200 Subject: Scripting WIP: dynamic object stuff --- src/inventory.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/inventory.h') diff --git a/src/inventory.h b/src/inventory.h index 490cab73e..dc5b04ff7 100644 --- a/src/inventory.h +++ b/src/inventory.h @@ -36,7 +36,6 @@ with this program; if not, write to the Free Software Foundation, Inc., class ServerActiveObject; class ServerEnvironment; -class Player; class InventoryItem { @@ -117,7 +116,7 @@ public: // Called when item is right-clicked when lying on ground. // If returns true, item shall be deleted. virtual bool use(ServerEnvironment *env, - Player *player){return false;} + ServerActiveObject *user){return false;} protected: u16 m_count; @@ -263,7 +262,7 @@ public: bool isCookable() const; InventoryItem *createCookResult() const; - bool use(ServerEnvironment *env, Player *player); + bool use(ServerEnvironment *env, ServerActiveObject *user); /* Special methods -- cgit v1.2.3