Beispiel #1
0
 public static void DestroyTankPoints(TankRank destroyedTank)
 {
     if (destroyedTank == TankRank.Rank1)
     {
         Player1Points += 5;
     }
     else if (destroyedTank == TankRank.Rank2)
     {
         Player1Points += 10;
     }
     else if (destroyedTank == TankRank.Rank1)
     {
         Player1Points += 15;
     }
     else if (destroyedTank == TankRank.Rank1)
     {
         Player1Points += 20;
     }
 }
Beispiel #2
0
 public Player(TankRank rank)
     : base(ConsoleColor.Yellow, new EntityAffection(EntityType.Player), rank)
 {
     this.Direction = Direction.Up;
     this.Lives     = 3;
 }
Beispiel #3
0
 public AI(TankRank rank)
     : base(ConsoleColor.DarkGray, new EntityAffection(EntityType.AI), rank)
 {
     this.Direction = Direction.Down;
 }