summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-14 20:09:22 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-14 23:35:07 +0300
commit796f7e2c2ace55462acfa50e5085d4d048047e68 (patch)
tree878c6f36f001774047cc26fa7fb68f474920bbf0 /src/being.h
parent6b5c7e7a5ed32abfc98d9acdebacc50c68a91a1d (diff)
downloadmv-796f7e2c2ace55462acfa50e5085d4d048047e68.tar.gz
mv-796f7e2c2ace55462acfa50e5085d4d048047e68.tar.bz2
mv-796f7e2c2ace55462acfa50e5085d4d048047e68.tar.xz
mv-796f7e2c2ace55462acfa50e5085d4d048047e68.zip
add basic client side only support for pets.
now pets cant move and dont have any ai. pet can be only spawn at player position if equiped item with assigned pet.
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/being.h b/src/being.h
index 2f8b21cd4..d54c4fad1 100644
--- a/src/being.h
+++ b/src/being.h
@@ -863,6 +863,21 @@ class Being : public ActorSprite, public ConfigListener
void addEffect(const std::string &name);
+ void addPet(const int id);
+
+ void removePet();
+
+ void updatePets();
+
+ Being *getPet()
+ { return mPet; }
+
+ void setPet(Being *const pet)
+ { mPet = pet; }
+
+ void setOwner(Being *const owner)
+ { mOwner = owner; }
+
static uint8_t genderToInt(const Gender sex) A_WARN_UNUSED;
static Gender intToGender(uint8_t sex) A_WARN_UNUSED;
@@ -1023,6 +1038,9 @@ class Being : public ActorSprite, public ConfigListener
bool mInactive;
unsigned mNumber;
unsigned char mHairColor;
+ Being *mPet;
+ int mPetId;
+ Being *mOwner;
Particle *mSpecialParticle;
};