summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
Diffstat (limited to 'src/being')
-rw-r--r--src/being/playerinfo.cpp11
-rw-r--r--src/being/playerinfo.h5
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