public Turret(PositionOfElement position) : base(position, ConsoleColor.Blue, Image) { this.Damage = TurretDamage; this.PriceOfTower = TurretPrice; this.Range = TurretRange; }
public Tower(PositionOfElement positionOfElement, ConsoleColor fColor, char[,] image) { this.PositionOfElement = positionOfElement; this.ElementImage = image; this.ForegroundColor = fColor; this.BackgroundColor = ConsoleColor.Black; }
public AdvancedTurret(PositionOfElement position) : base(position, ConsoleColor.Yellow, Image) { this.Damage = AdvTurretDamage; this.PriceOfTower = AdvTurretPrice; this.Range = AdvTurretRange; }
public Player(PositionOfElement positionOfPlayer) { this.ElementImage = new char[1, 1] { { 'O' } }; this.PositionOfElement = positionOfPlayer; this.ForegroundColor = ConsoleColor.Red; this.BackgroundColor = ConsoleColor.Black; this.ScoreOfPlayer = new Score(); }
public Base(PositionOfElement positionOfElement) { this.ElementImage = new char[3, 4] { { '#', '#', '#', '#' }, { 'b', 'a', 's', 'e' }, { '#', '#', '#', '#' }, }; this.PositionOfElement = positionOfElement; this.ForegroundColor = ConsoleColor.Gray; this.BackgroundColor = ConsoleColor.Black; }
public static PositionOfElement GetNextPosition(PositionOfElement currentPosition) { int currentIndex = PathOfPoints.IndexOf(currentPosition); if (currentIndex + 1 < PathOfPoints.Count) { return PathOfPoints[currentIndex + 2]; } else { throw new IndexOutOfRangeException("End of path!"); } }