X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=blobdiff_plain;f=Source%2FObjects%2FPerson.hpp;fp=Source%2FObjects%2FPerson.hpp;h=22c76eb17c4e82fd9038352c5e35ad2b022067b4;hp=89d5b40277022d92e445c55449f42e86a08cbf0a;hb=29b23632dbddbb74ca9c74e3229c5e4729fe3622;hpb=d320bd1b418c85ec4b1edf967b50426f0f553322 diff --git a/Source/Objects/Person.hpp b/Source/Objects/Person.hpp index 89d5b40..22c76eb 100644 --- a/Source/Objects/Person.hpp +++ b/Source/Objects/Person.hpp @@ -157,6 +157,7 @@ public: std::shared_ptr victim; bool hasvictim; + bool isplayerfriend; float updatedelay; float normalsupdatedelay; @@ -405,6 +406,7 @@ public: bool hasWeapon() { return (weaponactive != -1); } bool isPlayerControlled() { return (aitype == playercontrolled); } + bool isPlayerFriend() { return isplayerfriend; } }; const int maxplayers = 10;