X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FPerson.h;h=56d4f5490b87fe0562558594702b723037d25f97;hb=fe7e2a8681a5988af06f7cbd24b3c8cc447b0738;hp=28f21b559b6cc57250e7840010bec627b14528fb;hpb=797dc38c1623b98280500df2ab37edba4effabea;p=lugaru.git diff --git a/Source/Person.h b/Source/Person.h index 28f21b5..56d4f54 100644 --- a/Source/Person.h +++ b/Source/Person.h @@ -353,8 +353,14 @@ class Person } int getCrouch(); - bool wasStop(); - bool isStop(); + bool wasStop() + { + return animation_bits[currentanimation] & ab_stop; + } + bool isStop() + { + return animation_bits[targetanimation] & ab_stop; + } int getStop(); bool wasSneak(); @@ -370,9 +376,15 @@ class Person return animation_bits[targetanimation] & ab_run; } int getRun(); - - bool wasLanding(); - bool isLanding(); + + bool wasLanding() + { + return animation_bits[currentanimation] & ab_land; + } + bool isLanding() + { + return animation_bits[targetanimation] & ab_land; + } int getLanding(); bool wasLandhard();