public virtual List <BoardCoord> GetTargetCoordinations(Piece self) { List <BoardCoord> coords = new List <BoardCoord>(); coords = layer.GetCoordinations(self).ToList(); return(coords); }
public virtual List <BoardCoord> GetTargetCoordinations() { List <BoardCoord> coords = new List <BoardCoord>(); coords = layer.GetCoordinations(GetCurrentKing()).ToList(); return(coords); }
public override BoardCoord[] GetMovablePositions(Piece self) { if ((self.GetStatus() & Piece.StatusFlag.Moved) == Piece.StatusFlag.Moved) { return(move.GetCoordinations(self)); } else { return(moveFirst.GetCoordinations(self)); } }
public override BoardCoord[] GetMovablePositions(Piece self) { return(move.GetCoordinations(self)); }
public override BoardCoord[] GetAttackablePositions(Piece self) { return(attack.GetCoordinations(self)); }