diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-06 21:24:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-06 23:40:01 +0300 |
commit | c623250fbc8524a1ab78791595bf1fc4344fec49 (patch) | |
tree | a0a0fb07bf5de4e494d50b214418b1ec99787dce /src/being | |
parent | ff516ba3e0459cce11d6b43d4686a1c3c43a6605 (diff) | |
download | plus-c623250fbc8524a1ab78791595bf1fc4344fec49.tar.gz plus-c623250fbc8524a1ab78791595bf1fc4344fec49.tar.bz2 plus-c623250fbc8524a1ab78791595bf1fc4344fec49.tar.xz plus-c623250fbc8524a1ab78791595bf1fc4344fec49.zip |
read guild position flags.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/playerinfo.cpp | 11 | ||||
-rw-r--r-- | src/being/playerinfo.h | 5 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/being/playerinfo.cpp b/src/being/playerinfo.cpp index 4f7b714cf..0000825fe 100644 --- a/src/being/playerinfo.cpp +++ b/src/being/playerinfo.cpp @@ -61,6 +61,7 @@ Equipment *mEquipment = nullptr; MercenaryInfo *mMercenary = nullptr; HomunculusInfo *mHomunculus = nullptr; PetInfo *mPet = nullptr; +GuildPositionFlags::Type mGuildPositionFlags = GuildPositionFlags::None; bool mTrading = false; int mLevelProgress = 0; @@ -556,4 +557,14 @@ void updateAttackAi(const int targetId, const bool keep) homunculusHandler->attack(targetId, keep); } +void setGuildPositionFlags(const GuildPositionFlags::Type pos) +{ + mGuildPositionFlags = pos; +} + +GuildPositionFlags::Type getGuildPositionFlags() +{ + return mGuildPositionFlags; +} + } // namespace PlayerInfo diff --git a/src/being/playerinfo.h b/src/being/playerinfo.h index c4ccfd4be..e3b156d9e 100644 --- a/src/being/playerinfo.h +++ b/src/being/playerinfo.h @@ -23,6 +23,7 @@ #define BEING_PLAYERINFO_H #include "equipment.h" +#include "guildpositionflags.h" #include "state.h" #include <map> @@ -264,6 +265,10 @@ namespace PlayerInfo void updateMoveAI(); void updateAttackAi(const int targetId, const bool keep); + + void setGuildPositionFlags(const GuildPositionFlags::Type pos); + + GuildPositionFlags::Type getGuildPositionFlags(); } // namespace PlayerInfo #endif // BEING_PLAYERINFO_H |