summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/being.h b/src/being.h
index 199cb4dc2..91cafa69a 100644
--- a/src/being.h
+++ b/src/being.h
@@ -31,6 +31,7 @@
#include "actorsprite.h"
#include "configlistener.h"
+#include "equipment.h"
#include "map.h"
#include "particlecontainer.h"
#include "position.h"
@@ -53,9 +54,11 @@
class AnimatedSprite;
class BeingCacheEntry;
+class Being;
class BeingInfo;
class FlashText;
class Guild;
+class Inventory;
class ItemInfo;
class Item;
class Particle;
@@ -74,9 +77,29 @@ enum Gender
GENDER_UNSPECIFIED = 2
};
+class BeingEquipBackend : public Equipment::Backend
+{
+ public:
+ BeingEquipBackend(Being *being);
+
+ virtual ~BeingEquipBackend();
+
+ Item *getEquipment(int index) const;
+
+ void clear();
+
+ void setEquipment(int index, Item *item);
+
+ private:
+ Item *mEquipment[EQUIPMENT_SIZE];
+ Being *mBeing;
+};
+
class Being : public ActorSprite, public ConfigListener
{
public:
+ friend class BeingEquipBackend;
+
/**
* Action the being is currently performing
* WARNING: Has to be in sync with the same enum in the Being class
@@ -687,6 +710,10 @@ class Being : public ActorSprite, public ConfigListener
void updateHit(int amount);
+ Equipment *getEquipment();
+
+ void undressItemById(int id);
+
protected:
/**
* Sets the new path for this being.
@@ -747,6 +774,7 @@ class Being : public ActorSprite, public ConfigListener
std::vector<int> mSpriteIDs;
std::vector<std::string> mSpriteColors;
+ std::vector<int> mSpriteColorsIds;
Gender mGender;
// Character guild information