/// <summary> /// Start het makkelijke spel van singleplayer /// </summary> private void startSpGameEasy(object sender, RoutedEventArgs e) { this.Close(); SingleplayerEasy SingleplayerEasyWin = new SingleplayerEasy(mainWindow); userNameP1 = userNameP1.ToString(); uHighScore = 0; tempPlayerOne = new Player(userNameP1, uHighScore); SingleplayerEasyWin.setPlayer(tempPlayerOne); }
/// <summary> /// Verwijst naar de parameters hieronder in de grid /// </summary> /// <param name="grid">Is het speelveld</param> /// <param name="cols">Zijn de verticale rijen</param> /// <param name="rows">Zijn de horizontale rijen</param> public MemoryGrid(Grid grid, int cols, int rows, SingleplayerEasy singlePlayerEasy) { this.cols = cols; this.rows = rows; this.grid = grid; this.score = 0; this.singleplayerEasy = singleplayerEasy; imageSources = GetImagesList(); //Aanmaken van de grid InitializeGameGrid(); //Plaatsen van de images op de aangegeven locatie AddImages(); }
public SinglePlayerNameSelect(SingleplayerEasy singleplayerEasy) { InitializeComponent(); this.singleplayerEasy = singleplayerEasy; }