diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-04 00:32:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-04 00:32:09 +0300 |
commit | 109f2df166a15261e2a43f1a73c7f4aeeb13b681 (patch) | |
tree | 78dc01b9e04b77948315bea3df618cff330aa29a /src/being | |
parent | 7fec02806b7aece2504b1f9920b6252788067d86 (diff) | |
download | mv-109f2df166a15261e2a43f1a73c7f4aeeb13b681.tar.gz mv-109f2df166a15261e2a43f1a73c7f4aeeb13b681.tar.bz2 mv-109f2df166a15261e2a43f1a73c7f4aeeb13b681.tar.xz mv-109f2df166a15261e2a43f1a73c7f4aeeb13b681.zip |
Remember id of own elemental.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/playerinfo.cpp | 11 | ||||
-rw-r--r-- | src/being/playerinfo.h | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/being/playerinfo.cpp b/src/being/playerinfo.cpp index ff69a0d34..ea1ee8388 100644 --- a/src/being/playerinfo.cpp +++ b/src/being/playerinfo.cpp @@ -59,6 +59,7 @@ std::string mRoomName; Equipment *mEquipment = nullptr; BeingId mPetBeingId = BeingId_zero; GuildPositionFlags::Type mGuildPositionFlags = GuildPositionFlags::None; +BeingId mElementalId = BeingId_zero; Trading mTrading = Trading_false; bool mVending = false; @@ -521,6 +522,16 @@ void setMercenaryBeing(Being *const being) being->setAttackRange(mMercenary->range); } +void setElemental(const BeingId id) +{ + mElementalId = id; +} + +BeingId getElementalId() +{ + return mElementalId; +} + MercenaryInfo *getMercenary() { return mMercenary; diff --git a/src/being/playerinfo.h b/src/being/playerinfo.h index d7c1be8fa..2991d0adc 100644 --- a/src/being/playerinfo.h +++ b/src/being/playerinfo.h @@ -269,10 +269,14 @@ namespace PlayerInfo void setHomunculusBeing(Being *const being); + void setElemental(const BeingId id); + BeingId getHomunculusId(); BeingId getMercenaryId(); + BeingId getElementalId(); + void updateMoveAI(); void updateAttackAi(const BeingId targetId, |