Align AVA2 Windows behavior and improve mobile touch interactions
This commit is contained in:
@@ -171,6 +171,23 @@ void TestComboStateMachine(const char* model) {
|
||||
fast.Update(0.1f);
|
||||
assert(Near(fast.GetAttackingElapsedTime(), 0.15f, 1e-3f));
|
||||
|
||||
// SetAttackSpeed stores zero but does not retime the already bound attack.
|
||||
fast.SetAttackSpeed(0);
|
||||
fast.Update(0.1f);
|
||||
assert(Near(fast.GetAttackingElapsedTime(), 0.30f, 1e-3f));
|
||||
assert(fast.RunComboAttack(0, RaceData::NAME_COMBO_ATTACK_1));
|
||||
fast.Update(0.1f);
|
||||
assert(Near(fast.GetAttackingElapsedTime(), 0));
|
||||
assert(!fast.IsMotionFinished());
|
||||
fast.SetAttackSpeed(2);
|
||||
fast.Update(0.1f);
|
||||
assert(Near(fast.GetAttackingElapsedTime(), 0));
|
||||
assert(fast.RunComboAttack(0, RaceData::NAME_COMBO_ATTACK_1));
|
||||
fast.Update(0.1f);
|
||||
assert(Near(fast.GetAttackingElapsedTime(), 0.2f, 1e-3f));
|
||||
fast.SetAttackSpeed(-1);
|
||||
assert(Near(fast.GetAttackSpeed(), 2));
|
||||
|
||||
// Without SetReportAttacks nothing is queued (remote actors).
|
||||
ava2::ActorInstance remote;
|
||||
assert(remote.SetRace(0) && remote.SetModel(model));
|
||||
|
||||
Reference in New Issue
Block a user