X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=blobdiff_plain;f=Source%2FObjects%2FPerson.hpp;fp=Source%2FObjects%2FPerson.hpp;h=89d5b40277022d92e445c55449f42e86a08cbf0a;hp=9492fb704f5ad59a714e7b545299f97e3b4eb2ed;hb=be5fc624393b132863a7d9a97c811bc695b86e5b;hpb=7aa870825c0e851e69703d9730e20db6eb94a675 diff --git a/Source/Objects/Person.hpp b/Source/Objects/Person.hpp index 9492fb7..89d5b40 100644 --- a/Source/Objects/Person.hpp +++ b/Source/Objects/Person.hpp @@ -402,6 +402,9 @@ public: void doAI(); bool catchKnife(); + + bool hasWeapon() { return (weaponactive != -1); } + bool isPlayerControlled() { return (aitype == playercontrolled); } }; const int maxplayers = 10;