]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Person.h
Simplify land animations
[lugaru.git] / Source / Person.h
index 28f21b559b6cc57250e7840010bec627b14528fb..56d4f5490b87fe0562558594702b723037d25f97 100644 (file)
@@ -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();