X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FPerson.h;h=28f21b559b6cc57250e7840010bec627b14528fb;hb=797dc38c1623b98280500df2ab37edba4effabea;hp=10f6ab2808d96779aac7119e180fc870109957b0;hpb=fedce5619a42a2ac4f55c6dab16470970ce36cbb;p=lugaru.git diff --git a/Source/Person.h b/Source/Person.h index 10f6ab2..28f21b5 100644 --- a/Source/Person.h +++ b/Source/Person.h @@ -333,12 +333,24 @@ class Person } int getIdle(); - bool isSitting(); - bool isSleeping(); - - - bool wasCrouch(); - bool isCrouch(); + bool isSitting() + { + return animation_bits[targetanimation] & ab_sit; + } + + bool isSleeping() + { + return animation_bits[targetanimation] & ab_sleep; + } + + bool wasCrouch() + { + return animation_bits[currentanimation] & ab_crouch; + } + bool isCrouch() + { + return animation_bits[targetanimation] & ab_crouch; + } int getCrouch(); bool wasStop(); @@ -349,8 +361,14 @@ class Person bool isSneak(); int getSneak(); - bool wasRun(); - bool isRun(); + bool wasRun() + { + return animation_bits[currentanimation] & ab_run; + } + bool isRun() + { + return animation_bits[targetanimation] & ab_run; + } int getRun(); bool wasLanding();