]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Objects/Person.hpp
Added methods for hasWeapon and isPlayerControlled
[lugaru.git] / Source / Objects / Person.hpp
index 9492fb704f5ad59a714e7b545299f97e3b4eb2ed..89d5b40277022d92e445c55449f42e86a08cbf0a 100644 (file)
@@ -402,6 +402,9 @@ public:
     void doAI();
 
     bool catchKnife();
+
+    bool hasWeapon() { return (weaponactive != -1); }
+    bool isPlayerControlled() { return (aitype == playercontrolled); }
 };
 
 const int maxplayers = 10;