예제 #1
0
        public GameController(int elx, int ely, Puzzle p, GameViewController gvc, IPuzzleGamePage pgp)
        {
            elementsX          = elx;
            elementsY          = ely;
            puzzle             = p;
            gameViewController = gvc;
            gamePage           = pgp;
            inputState         = InputState.RELEASED_NO_SELECTION;

            randomize(elx, ely);
            gameViewController.setRandomization(randomMask);

            assembled = false;

            startTime = 0;
            thread    = new GameThread(this);
        }
예제 #2
0
        public GameController(int elx, int ely, Puzzle p, GameViewController gvc, IPuzzleGamePage pgp)
        {
            elementsX = elx;
            elementsY = ely;
            puzzle = p;
            gameViewController = gvc;
            gamePage = pgp;
            inputState = InputState.RELEASED_NO_SELECTION;

            randomize(elx, ely);
            gameViewController.setRandomization(randomMask);

            assembled = false;

            startTime = 0;
            thread = new GameThread(this);
        }