#include "Sprite.h"
#include <cmath>
#include "Weapons.h"
+#include "Animation.h"
#define passivetype 0
#define guardtype 1
void DoBloodBig(float howmuch, int which);
bool DoBloodBigWhere(float howmuch, int which, XYZ where);
- bool wasIdle();
- bool isIdle();
+ bool wasIdle()
+ {
+ return animation_bits[currentanimation] & ab_idle;
+ }
+ bool isIdle()
+ {
+ return animation_bits[targetanimation] & ab_idle;
+ }
int getIdle();
- bool isSitting();
- bool isSleeping();
-
+ bool isSitting()
+ {
+ return animation_bits[targetanimation] & ab_sit;
+ }
+
+ bool isSleeping()
+ {
+ return animation_bits[targetanimation] & ab_sleep;
+ }
bool wasCrouch();
bool isCrouch();