diff options
| author | Kahrl <kahrl@gmx.net> | 2011-11-29 17:15:18 +0200 |
|---|---|---|
| committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:58 +0200 |
| commit | d6b30dd3a5df4b84a287305f807442064f4cf68d (patch) | |
| tree | 73311c9e881cb691074d607e066f6745a981a79b /src/player.h | |
| parent | 1c19f959db117d48538b93b5494d87d97515fdfb (diff) | |
| download | dragonfireclient-d6b30dd3a5df4b84a287305f807442064f4cf68d.tar.xz | |
CraftItem rework and Lua interface
Diffstat (limited to 'src/player.h')
| -rw-r--r-- | src/player.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/player.h b/src/player.h index 9476a9be3..0f92ccc87 100644 --- a/src/player.h +++ b/src/player.h @@ -188,8 +188,7 @@ public: ServerRemotePlayer(ServerEnvironment *env, v3f pos_, u16 peer_id_, const char *name_); - virtual ~ServerRemotePlayer() - {} + virtual ~ServerRemotePlayer(); virtual bool isLocal() const { return false; } @@ -230,11 +229,15 @@ public: virtual void damageWieldedItem(u16 amount); // If all fits, eats item and returns true. Otherwise returns false. virtual bool addToInventory(InventoryItem *item); + virtual void addToInventoryLater(InventoryItem *item); + void clearAddToInventoryLater(); + void completeAddToInventoryLater(u16 preferred_index); virtual void setHP(s16 hp_); virtual s16 getHP(); v3f m_last_good_position; float m_last_good_position_age; + std::vector<InventoryItem*> m_additional_items; private: }; |
