X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FObjects%2FPerson.hpp;h=89d5b40277022d92e445c55449f42e86a08cbf0a;hb=d320bd1b418c85ec4b1edf967b50426f0f553322;hp=2ead16e9a87922d662cbf65b5bc922175afe6a74;hpb=6a8cb464330e92163c8feaf101b8b5837c973bba;p=lugaru.git diff --git a/Source/Objects/Person.hpp b/Source/Objects/Person.hpp index 2ead16e..89d5b40 100644 --- a/Source/Objects/Person.hpp +++ b/Source/Objects/Person.hpp @@ -318,7 +318,7 @@ public: Person(); Person(FILE*, int, unsigned); - void skeletonLoad(bool clothes = false); + void skeletonLoad(); // convenience functions inline Joint& joint(int bodypart) { return skeleton.joints[skeleton.jointlabels[bodypart]]; } @@ -331,6 +331,8 @@ public: float getProportion(int part) const; XYZ getProportionXYZ(int part) const; + void changeCreatureType(person_type type); + void CheckKick(); void CatchFire(); void DoBlood(float howmuch, int which); @@ -398,6 +400,11 @@ public: void addClothes(); void doAI(); + + bool catchKnife(); + + bool hasWeapon() { return (weaponactive != -1); } + bool isPlayerControlled() { return (aitype == playercontrolled); } }; const int maxplayers = 10;