C# Класс BalloonsPop.ConsoleUserInterface.GnomController

Server as manipulator for the application's view.
Наследование: IPrinter
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
InitializeField ( IBalloon matrix ) : void

Описание методов

GnomController() публичный Метод

Assign a gnom view to the current instance.
public GnomController ( IGnomTree view ) : System
view IGnomTree
Результат System

PrintField() публичный Метод

Updates the view with information from the provided balloon matrix.
public PrintField ( IBalloon matrix ) : void
matrix IBalloon
Результат void

PrintHighscore() публичный Метод

Prints the highscore in the rankings section of the view.
public PrintHighscore ( IHighscoreTable table ) : void
table IHighscoreTable
Результат void

PrintMessage() публичный Метод

Prints a message on view.
public PrintMessage ( string message ) : void
message string
Результат void

PrintPlayerMoves() публичный Метод

Display the provided string in the section for user moves.
public PrintPlayerMoves ( string moves ) : void
moves string
Результат void