C# Class BalloonsPop.GameModels.GameModel

Models the game by encapsulating a balloon field and information about user moves.
Inheritance: IGameModel
Datei anzeigen Open project: Baloons-Pop-4/Main Class Usage Examples

Public Methods

Method Description
Clone ( ) : IGameModel

Provides a deep clone of the current instance.

GameModel ( IBalloon balloonFiller = null ) : System

Initializes a new instance of the GameModel class.

IncrementMoves ( ) : void

Increments the moves in the current game by one.

ResetUserMoves ( ) : void

Zeroes the moves in the current game.

Method Details

Clone() public method

Provides a deep clone of the current instance.
public Clone ( ) : IGameModel
return IGameModel

GameModel() public method

Initializes a new instance of the GameModel class.
public GameModel ( IBalloon balloonFiller = null ) : System
balloonFiller IBalloon
return System

IncrementMoves() public method

Increments the moves in the current game by one.
public IncrementMoves ( ) : void
return void

ResetUserMoves() public method

Zeroes the moves in the current game.
public ResetUserMoves ( ) : void
return void