예제 #1
0
 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());
     }
 }
예제 #2
0
    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();
        }
    }