protected static bool MovableFriendly(TileState state) { if (!state.alerted) { return(false); } if (state.unit != UnitType.Shield) { return(state.Friendliness == Friendliness.Friendly); } else { return(state.PossibleMoves().Any()); } }
protected void ShowOptions(TileState chosen) { var moves = chosen.PossibleMoves(); if (moves.Any()) { foreach (var move in moves) { Board.Get[move].incomingMove = true; } Selected = chosen; chosen.isSelected = true; OnSelectionMade(); } }