C# Class BalloonsPop.ConsoleUserInterface.GnomController

Server as manipulator for the application's view.
Inheritance: IPrinter
Afficher le fichier Open project: Baloons-Pop-4/Main

Méthodes publiques

Méthode Description
GnomController ( IGnomTree view ) : System

Assign a gnom view to the current instance.

PrintField ( IBalloon matrix ) : void

Updates the view with information from the provided balloon matrix.

PrintHighscore ( IHighscoreTable table ) : void

Prints the highscore in the rankings section of the view.

PrintMessage ( string message ) : void

Prints a message on view.

PrintPlayerMoves ( string moves ) : void

Display the provided string in the section for user moves.

Private Methods

Méthode Description
InitializeField ( IBalloon matrix ) : void

Method Details

GnomController() public méthode

Assign a gnom view to the current instance.
public GnomController ( IGnomTree view ) : System
view IGnomTree
Résultat System

PrintField() public méthode

Updates the view with information from the provided balloon matrix.
public PrintField ( IBalloon matrix ) : void
matrix IBalloon
Résultat void

PrintHighscore() public méthode

Prints the highscore in the rankings section of the view.
public PrintHighscore ( IHighscoreTable table ) : void
table IHighscoreTable
Résultat void

PrintMessage() public méthode

Prints a message on view.
public PrintMessage ( string message ) : void
message string
Résultat void

PrintPlayerMoves() public méthode

Display the provided string in the section for user moves.
public PrintPlayerMoves ( string moves ) : void
moves string
Résultat void