示例#1
0
		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);
		}
示例#2
0
		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);
		}
示例#3
0
        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);
        }
示例#4
0
        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);
        }
示例#5
0
		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);
		}
示例#6
0
        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);
        }