X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FPerson.h;h=a4eeae9bc457c6119ad6c47e645cc12bbd2c5217;hb=6f3fa5a970fa12cf6529c56a1f859b2668a8a232;hp=28f21b559b6cc57250e7840010bec627b14528fb;hpb=797dc38c1623b98280500df2ab37edba4effabea;p=lugaru.git diff --git a/Source/Person.h b/Source/Person.h index 28f21b5..a4eeae9 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,18 +376,36 @@ 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(); - bool isLandhard(); + + bool wasLandhard() + { + return animation_bits[currentanimation] & ab_landhard; + } + bool isLandhard() + { + return animation_bits[targetanimation] & ab_landhard; + } int getLandhard(); - - bool isFlip(); - bool wasFlip(); - + + bool wasFlip() + { + return animation_bits[currentanimation] & ab_flip; + } + bool isFlip() + { + return animation_bits[targetanimation] & ab_flip;; + } + bool jumpclimb; bool isWallJump();