Exemplo n.º 1
0
        public LetterOnLetter()
        {
            InitializeComponent();

            numberOfFields = 12;

            foreach (Button b in Finder.FindVisualChildrenWithTag <Button>(LetterOnLetterGrid, "CharacterDisplayButton"))
            {
                b.Click += selectHandler;
            }

            lolGameBehavior = new LoLControlerFactory(LetterOnLetterGrid).GetControler();

            SetGame(lolGameBehavior as Game);

            commandManager  = new CommandManager();
            feedbackCommand = new FeedbackCommand(lolGameBehavior);
            UncoverCommand.ResetCount();
            uncoverCommand = new UncoverCommand(lolGameBehavior);
            startCommand   = new StartCommand(lolGameBehavior);
            confirmCommand = new ConfirmCommand(lolGameBehavior);

            state = LoLState.Stop;
        }
Exemplo n.º 2
0
        private void start()
        {
            commandManager.ExecuteCommand(startCommand);

            state = LoLState.Submit;
        }