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
        public SelectCommand(ILoLGameBehavior lolGameBehavior, Button selecter)
        {
            this.lolGameBehavior = lolGameBehavior;

            this.selecter = selecter;
        }
Exemplo n.º 3
0
 public ConfirmCommand(ILoLGameBehavior lolGameBehavior)
 {
     this.lolGameBehavior = lolGameBehavior;
 }
Exemplo n.º 4
0
 public UncoverCommand(ILoLGameBehavior lolGameBehavior)
 {
     this.lolGameBehavior = lolGameBehavior;
 }
Exemplo n.º 5
0
 public FeedbackCommand(ILoLGameBehavior lolGameBehavior)
 {
     this.lolGameBehavior = lolGameBehavior;
 }
Exemplo n.º 6
0
 public StartCommand(ILoLGameBehavior lolGameBehavior)
 {
     this.lolGameBehavior = lolGameBehavior;
 }