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; } }
public Player(TankRank rank) : base(ConsoleColor.Yellow, new EntityAffection(EntityType.Player), rank) { this.Direction = Direction.Up; this.Lives = 3; }
public AI(TankRank rank) : base(ConsoleColor.DarkGray, new EntityAffection(EntityType.AI), rank) { this.Direction = Direction.Down; }