Ejemplo n.º 1
0
    // Methods ////////////////////////////////////////////////////////////////////////////////////

    public static BoardViewing GetInstance()
    {
        if (StateInstance == null)
        {
            StateInstance = new BoardViewing();
        }
        return(StateInstance);
    }
Ejemplo n.º 2
0
    //---------------------------------------------------------------------------------------------

    public void ViewBoard(bool show)
    {
        ShowBoardView(show);
        ShowTurnView(!show);

        if (show)
        {
            CurrentState = BoardViewing.GetInstance();
        }
        else
        {
            CurrentState = WaitingForAction.GetInstance();
        }
    }