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

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