|
|
|
@ -17,7 +17,7 @@ namespace MWMechanics
|
|
|
|
|
mAttacked (false), mHostile (false),
|
|
|
|
|
mAttackingOrSpell(false),
|
|
|
|
|
mIsWerewolf(false),
|
|
|
|
|
mFallHeight(0), mRecalcDynamicStats(false), mKnockdown(false), mHitRecovery(false), mBlock(false),
|
|
|
|
|
mFallHeight(0), mRecalcDynamicStats(false), mKnockdown(false), mKnockdownOneFrame(false), mKnockdownOverOneFrame(false), mHitRecovery(false), mBlock(false),
|
|
|
|
|
mMovementFlags(0), mDrawState (DrawState_Nothing), mAttackStrength(0.f)
|
|
|
|
|
{
|
|
|
|
|
for (int i=0; i<4; ++i)
|
|
|
|
@ -387,6 +387,8 @@ namespace MWMechanics
|
|
|
|
|
void CreatureStats::setKnockedDown(bool value)
|
|
|
|
|
{
|
|
|
|
|
mKnockdown = value;
|
|
|
|
|
if(!value) //Resets the "OverOneFrame" flag
|
|
|
|
|
setKnockedDownOverOneFrame(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool CreatureStats::getKnockedDown() const
|
|
|
|
@ -394,6 +396,23 @@ namespace MWMechanics
|
|
|
|
|
return mKnockdown;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CreatureStats::setKnockedDownOneFrame(bool value)
|
|
|
|
|
{
|
|
|
|
|
mKnockdownOneFrame = value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool CreatureStats::getKnockedDownOneFrame() const
|
|
|
|
|
{
|
|
|
|
|
return mKnockdownOneFrame;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CreatureStats::setKnockedDownOverOneFrame(bool value) {
|
|
|
|
|
mKnockdownOverOneFrame = value;
|
|
|
|
|
}
|
|
|
|
|
bool CreatureStats::getKnockedDownOverOneFrame() const {
|
|
|
|
|
return mKnockdownOverOneFrame;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CreatureStats::setHitRecovery(bool value)
|
|
|
|
|
{
|
|
|
|
|
mHitRecovery = value;
|
|
|
|
|