X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FPerson.h;h=10f6ab2808d96779aac7119e180fc870109957b0;hb=fedce5619a42a2ac4f55c6dab16470970ce36cbb;hp=27666e4bf904fe99cd04b1d1c0b1d3e50710a665;hpb=4e2058b0ad83f1320008f980fac2234e579d3d99;p=lugaru.git diff --git a/Source/Person.h b/Source/Person.h index 27666e4..10f6ab2 100644 --- a/Source/Person.h +++ b/Source/Person.h @@ -33,6 +33,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "Sprite.h" #include #include "Weapons.h" +#include "Animation.h" #define passivetype 0 #define guardtype 1 @@ -322,8 +323,14 @@ class Person void DoBloodBig(float howmuch, int which); bool DoBloodBigWhere(float howmuch, int which, XYZ where); - bool wasIdle(); - bool isIdle(); + bool wasIdle() + { + return animation_bits[currentanimation] & ab_idle; + } + bool isIdle() + { + return animation_bits[targetanimation] & ab_idle; + } int getIdle(); bool isSitting(); @@ -373,4 +380,5 @@ class Person void RagDoll(bool checkcollision); }; +extern Person player[maxplayers]; #endif