return 0;
}
-bool Person::isCrouch(){
- if(targetanimation==crouchanim||targetanimation==wolfcrouchanim)return 1;
- else return 0;
-}
-
-
-bool Person::wasCrouch(){
- if(currentanimation==crouchanim||currentanimation==wolfcrouchanim)return 1;
- else return 0;
-}
int Person::getCrouch(){
if(creature==rabbittype)return crouchanim;
if(creature==wolftype)return wolfcrouchanim;
{
return animation_bits[targetanimation] & ab_sleep;
}
-
- bool wasCrouch();
- bool isCrouch();
+
+ bool wasCrouch()
+ {
+ return animation_bits[currentanimation] & ab_crouch;
+ }
+ bool isCrouch()
+ {
+ return animation_bits[targetanimation] & ab_crouch;
+ }
int getCrouch();
bool wasStop();