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); }
public void TestFrozenState() { var creep = new Creep(CreepType.Cloth, Vector2D.Zero); var state = new CreepState(); state.Frozen = true; state.UpdateStateAndTimers(creep); Assert.IsTrue(state.Frozen); state.Unfreezable = true; state.UpdateStateAndTimers(creep); Assert.IsTrue(state.Unfreezable); }
public void TestMeltState() { var creep = new Creep(CreepType.Cloth, Vector2D.Zero); var state = new CreepState(); state.Melt = true; state.UpdateStateAndTimers(creep); Assert.IsTrue(state.Melt); }