using Godot; using System; using System.Collections.Generic; using System.Linq; public partial class Boss : Enemy { public List _dragons; public override void _Ready() { base._Ready(); _number = 1; _dragons = GetChildren().Where(c=>c is Dragon).Cast().ToList(); for (int i = 0; i < _dragons.Count; i++) { _dragons[i]._owner = this; _dragons[i]._number = _board._cells[i]._address; _board._cells[i]._tenant = _dragons[i]; } } public override void PassPlayer(Player PLAYER) { base.PassPlayer(PLAYER); _dragons.ForEach(d=>d.PassPlayer(PLAYER)); } public override void ClickCell(Cell CLICKED_CELL) { _playerOpponent.Challenge(CLICKED_CELL._tenant); } }