コード例 #1
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;
 }
コード例 #2
0
ファイル: Game.cs プロジェクト: TishoAngelov/TelerikAcademy
 /// <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;
 }