C# Class BalloonsPop.Highscore.HighscoreTable

Holds the logic for manipulating a list of player scores.
Inheritance: IHighscoreTable
Mostrar archivo Open project: Baloons-Pop-4/Main Class Usage Examples

Public Methods

Method Description
AddPlayer ( PlayerScore score ) : void

Adds a player to a HighscoreTable.

CanAddPlayer ( int movesCount ) : bool

Checks if a player can be added to a HighscoreTable.

HighscoreTable ( List playerScores = null ) : System

Initializes a new instance of the HighscoreTable class.

Method Details

AddPlayer() public method

Adds a player to a HighscoreTable.
public AddPlayer ( PlayerScore score ) : void
score PlayerScore An instance of a class that implements the PlayerScore interface.
return void

CanAddPlayer() public method

Checks if a player can be added to a HighscoreTable.
public CanAddPlayer ( int movesCount ) : bool
movesCount int The amount of moves a player has.
return bool

HighscoreTable() public method

Initializes a new instance of the HighscoreTable class.
public HighscoreTable ( List playerScores = null ) : System
playerScores List A list of player scores
return System