C# Class BalloonsPop.ConsoleUserInterface.GnomController

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

Public Methods

Method 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

Method Description
InitializeField ( IBalloon matrix ) : void

Method Details

GnomController() public method

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

PrintField() public method

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

PrintHighscore() public method

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

PrintMessage() public method

Prints a message on view.
public PrintMessage ( string message ) : void
message string
return void

PrintPlayerMoves() public method

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