From 0f9ec2061c4ad6157c3186f1cab9c4d8558980b5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 29 May 2015 14:30:20 +0300 Subject: Add strong typed int type BeingId. --- src/being/playerinfo.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/being/playerinfo.h') diff --git a/src/being/playerinfo.h b/src/being/playerinfo.h index 00421918b..ee963a5eb 100644 --- a/src/being/playerinfo.h +++ b/src/being/playerinfo.h @@ -27,6 +27,7 @@ #include "enums/guildpositionflags.h" #include "enums/state.h" +#include "enums/simpletypes/beingid.h" #include "enums/simpletypes/keep.h" #include "enums/simpletypes/notify.h" #include "enums/simpletypes/sfx.h" @@ -261,7 +262,7 @@ namespace PlayerInfo void setPetBeing(Being *const being); - int getPetBeingId(); + BeingId getPetBeingId(); HomunculusInfo *getHomunculus(); @@ -269,13 +270,14 @@ namespace PlayerInfo void setHomunculusBeing(Being *const being); - int getHomunculusId(); + BeingId getHomunculusId(); - int getMercenaryId(); + BeingId getMercenaryId(); void updateMoveAI(); - void updateAttackAi(const int targetId, const Keep keep); + void updateAttackAi(const BeingId targetId, + const Keep keep); std::string getRoomName(); -- cgit v1.2.3-60-g2f50