CreepTests CheckStateBurst Method Delta Engine Documentation

Namespace: CreepyTowers.Tests.Creeps
Assembly: CreepyTowers.Tests (in CreepyTowers.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void CheckStateBurst()
Examples

[Test, CloseAfterFirstFrame, Ignore]
public void CheckStateBurst()
{
    var creep = new Creep(CreepType.Paper, Vector2D.Zero);
    creep.ReceiveAttack(TowerType.Fire, 10.0f);
    AdvanceTimeAndUpdateEntities(1.0f);
    creep.Update();
    creep.ReceiveAttack(TowerType.Fire, 10.0f);
    AdvanceTimeAndUpdateEntities(2.1f);
    creep.Update();
    Assert.Less(creep.GetStatValue("Hp"), 90.0f);
}
See Also