C# Class BalloonsPop.Highscore.HighscoreTable

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

Méthodes publiques

Méthode 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 méthode

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

CanAddPlayer() public méthode

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

HighscoreTable() public méthode

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