메소드 | 설명 | |
---|---|---|
GameIsOver ( IBalloon matrix ) : bool |
Determines whether a game is over.
|
|
LetBalloonsFall ( IBalloon field ) : void |
Moves all non-popped balloons vertically to the bottom of the array, effectively simulating gravity.
|
|
LogicProvider ( IMatrixValidator matrixValidator, IRandomNumberGenerator rng ) : System |
Initializes a new instance of the LogicProvider class with matrix validator and random number generator.
|
|
PopBalloons ( IBalloon field, int row, int column ) : void |
Provides popping logic based on field, row and column.
|
|
RandomizeBalloonField ( IBalloon field ) : void |
Provides randomization of a balloon field represented as two-dimensional array.
|
public GameIsOver ( IBalloon matrix ) : bool | ||
matrix | IBalloon | Array representation of the game field. |
리턴 | bool |
public LetBalloonsFall ( IBalloon field ) : void | ||
field | IBalloon | Array representation of the game field. |
리턴 | void |
public LogicProvider ( IMatrixValidator matrixValidator, IRandomNumberGenerator rng ) : System | ||
matrixValidator | IMatrixValidator | The matrix validator. |
rng | IRandomNumberGenerator | The random byte generator. |
리턴 | System |
public PopBalloons ( IBalloon field, int row, int column ) : void | ||
field | IBalloon | Array representation of the game field. |
row | int | The number of rows in the field. |
column | int | The number of columns in the field. |
리턴 | void |
public RandomizeBalloonField ( IBalloon field ) : void | ||
field | IBalloon | The array representation of a game field. |
리턴 | void |