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