CreepStateTests TestSlowImmuneState 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 TestSlowImmuneState()
Examples

[Test]
public void TestSlowImmuneState()
{
    var creep = new Creep(CreepType.Cloth, Vector2D.Zero);
    var state = new CreepState();
    state.Slow = true;
    state.UpdateStateAndTimers(creep);
    Assert.IsTrue(state.Slow);
    state.SlowImmune = true;
    state.UpdateStateAndTimers(creep);
    Assert.IsTrue(state.SlowImmune);
}
See Also