Ejemplo n.º 1
0
 public static void CheckCreepState(TowerType type, Creep creep)
 {
     if (creep.Type == CreepType.Cloth)
     {
         ClothCreepStateChanger.ChangeStatesIfClothCreep(type, creep);
     }
     else if (creep.Type == CreepType.Sand)
     {
         SandCreepStateChanger.ChangeStatesIfSandCreep(type, creep);
     }
     else if (creep.Type == CreepType.Glass)
     {
         GlassCreepStateChanger.ChangeStatesIfGlassCreep(type, creep);
     }
     else if (creep.Type == CreepType.Wood)
     {
         WoodCreepStateChanger.ChangeStatesIfWoodCreep(type, creep);
     }
     else if (creep.Type == CreepType.Plastic)
     {
         PlasticCreepStateChanger.ChangeStatesIfPlasticCreep(type, creep);
     }
     else if (creep.Type == CreepType.Iron)
     {
         IronCreepStateChanger.ChangeStatesIfIronCreep(type, creep);
     }
     else if (creep.Type == CreepType.Paper)
     {
         PaperCreepStateChanger.ChangeStatesIfPaperCreep(type, creep);
     }
 }
 public void ApplyWaterThenIceThenImpactToPaperCreep()
 {
     PaperCreepStateChanger.ChangeStatesIfPaperCreep(TowerType.Water, creep);
     PaperCreepStateChanger.ChangeStatesIfPaperCreep(TowerType.Ice, creep);
     PaperCreepStateChanger.ChangeStatesIfPaperCreep(TowerType.Impact, creep);
     Assert.IsTrue(creep.State.Frozen);
 }
 public void ApplyWaterThenIceThenFireToPaperCreep()
 {
     PaperCreepStateChanger.ChangeStatesIfPaperCreep(TowerType.Water, creep);
     PaperCreepStateChanger.ChangeStatesIfPaperCreep(TowerType.Ice, creep);
     PaperCreepStateChanger.ChangeStatesIfPaperCreep(TowerType.Fire, creep);
     Assert.IsFalse(creep.State.Frozen);
     Assert.IsTrue(creep.State.Unfreezable);
     Assert.IsTrue(creep.State.Wet);
 }
 public void ApplyWaterThenFireToPaperCreep()
 {
     PaperCreepStateChanger.ChangeStatesIfPaperCreep(TowerType.Water, creep);
     PaperCreepStateChanger.ChangeStatesIfPaperCreep(TowerType.Fire, creep);
     Assert.IsFalse(creep.State.Wet);
 }
 public void CheckWaterEffect()
 {
     PaperCreepStateChanger.ChangeStatesIfPaperCreep(TowerType.Water, creep);
     Assert.IsTrue(creep.State.Wet);
 }