/// <summary> /// Screen for introducing the pieces /// </summary> /// <param name="parentWindow"></param> public TutorialOneScreen(ScreenControl parentWindow) : base(parentWindow) { InitializeComponent(); tutorialOne = new TutorialOne(); currentMode = GameMode.Tutorial; gameController = new GameController(false, tutorialOne.GetPosition()); gameController.ignoreSuggestion = true; BoardArea.Content = gameController.board; originalColour = Board_Button.Background; Board_Click(new object(), new RoutedEventArgs()); }
public PawnMowerScreen(ScreenControl parentWindow) : base(parentWindow) { InitializeComponent(); userPiece = PieceType.R; pawnMower = new PawnMower(userPiece, count); gameController = new GameController(false, pawnMower.GetPosition()); gameController.ignoreSuggestion = true; BoardArea.Content = gameController.board; Dialog.Content = new PawnMowerDialog(this); originalColour = Rook_Button.Background; Rook_Button.Background = Brushes.SlateGray; }
public Screen(ScreenControl parentWindow) { this.parentWindow = parentWindow; }