/// <summary>
 /// This method requires a playfield and a pop strategy and initialize all the game properties
 /// to their initial state.
 /// </summary>
 /// <param name="gamePlayfield"></param>
 /// <param name="gamePopStrategy"></param>
 private void InitializeGame(Playfield gamePlayfield, PopStrategy gamePopStrategy)
 {
     this.playfield    = gamePlayfield;
     this.popStrategy  = gamePopStrategy;
     this.balloonsLeft = gamePlayfield.Width * gamePlayfield.Height;
     this.userMoves    = 0;
 }
Esempio n. 2
0
 /// <summary>
 /// This method requires a playfield and a pop strategy and initialize all the game properties 
 /// to their initial state.
 /// </summary>
 /// <param name="gamePlayfield"></param>
 /// <param name="gamePopStrategy"></param>
 private void InitializeGame(Playfield gamePlayfield, PopStrategy gamePopStrategy)
 {
     this.playfield = gamePlayfield;
     this.popStrategy = gamePopStrategy;
     this.balloonsLeft = gamePlayfield.Width * gamePlayfield.Height;
     this.userMoves = 0;
 }