Exemplo n.º 1
0
 public override void RemoveEquipment(Equipment output)
 {
     if (output is Artillery)
     {
         artillerypiece = new NoArtillery();
     }
     else if (output is ArtilleryEngineer)
     {
         engineer = null;
     }
     else
     {
         base.RemoveEquipment(output);
     }
 }
Exemplo n.º 2
0
 public override void EquipUnit(Equipment input)
 {
     if (input is Artillery)
     {
         artillerypiece = input as Artillery;
     }
     else if (input is ArtilleryEngineer)
     {
         engineer = input as ArtilleryEngineer;
     }
     else
     {
         base.EquipUnit(input);
     }
 }