From 443f45eca17ad809ccdc42aaf8a82e0b84e11da0 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Thu, 29 Mar 2012 16:10:11 +0300 Subject: Add GenericCAO and player armor groups, but don't use them yet --- src/serverobject.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/serverobject.h') diff --git a/src/serverobject.h b/src/serverobject.h index 8719267d7..110f67f5b 100644 --- a/src/serverobject.h +++ b/src/serverobject.h @@ -24,6 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "activeobject.h" #include "utility.h" #include "inventorymanager.h" +#include "itemgroup.h" /* @@ -56,6 +57,9 @@ public: ServerActiveObject(ServerEnvironment *env, v3f pos); virtual ~ServerActiveObject(); + virtual u8 getSendType() const + { return getType(); } + // Called after id has been set and has been inserted in environment virtual void addedToEnvironment(){}; // Called before removing from environment @@ -146,6 +150,9 @@ public: virtual s16 getHP() const { return 0; } + virtual void setArmorGroups(const ItemGroupList &armor_groups) + {} + // Inventory and wielded item virtual Inventory* getInventory() { return NULL; } -- cgit v1.2.3