Ejemplo n.º 1
0
    // Determine eligible hex cells for movement or placement. Used if this isn't the first or second placement of the game
    public void GetEligible()
    {
        GetCurrent();
        eligibleList.Clear();
        if (active == BoardManager.Active.Dugout)   //If moving from the dugout
        {
            eligibleList = boardManager.EligiblePlacementByColor(color);
        }
        else                                        //If moving on the board
        {
            eligibleList = boardManager.EligibleMovesByPiece(currentHex, type);
        }
        //foreach (HexCoord hex in eligibleList)
        //hexController.OutlineHex(hex);

        hexController.HighlightEligible(eligibleList);
    }