Beispiel #1
0
        public TTTGame(ITTTSystemGUI _SystemGUI)
        {
            SystemGUI = _SystemGUI;

            tttModel   = new TTTModel(this);
            tttView    = new TTTView(this);
            tttControl = new TTTControl(this);

            tttModel.Init();
            tttView.Init();
            tttControl.Init();

            tttControl.Reset();
        }
Beispiel #2
0
    private void OnTTTShowed(TTTView view)
    {
        this.view = view;
        // Init Button
        view.OnOnePlayerButtonAction = EnterOnePlayerMode;
        view.OnTwoPlayerButtonAction = EnterTwoPlayerMode;
        view.OnBackButtonAction      = OnBackClick;

        clickAbleList = new List <UISelectable>();
        currentPlayer = Player.Player1;

        InitGameArea();

        // Init GamePanel
        InitGamePanel();
    }