C# Класс BalloonsPop.ConsoleUI.ConsoleUI

Наследование: IUserInterface
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ConsoleUI ( ) : System

Initializes a new instance of the ConsoleUI class.

PrintField ( IBalloon matrix ) : void
PrintHighscore ( IHighscoreTable highScore ) : void
PrintMessage ( string message ) : void
PrintPlayerMoves ( string moves ) : void
ReadUserInput ( ) : string

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

Метод Описание
GetDashedLine ( int count ) : string
PrintBalloon ( IBalloon balloon ) : void
PrintColumnIndeces ( ) : void
PrintDashedLine ( int dashesCount ) : void
PrintRowBeggining ( byte cellValue ) : void
PrintRowEnd ( ) : void
SetConsoleColor ( int key ) : void
SetConsoleColorToDefault ( ) : void

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

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

Initializes a new instance of the ConsoleUI class.
public ConsoleUI ( ) : System
Результат System

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

public PrintField ( IBalloon matrix ) : void
matrix IBalloon
Результат void

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

public PrintHighscore ( IHighscoreTable highScore ) : void
highScore IHighscoreTable
Результат void

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

public PrintMessage ( string message ) : void
message string
Результат void

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

public PrintPlayerMoves ( string moves ) : void
moves string
Результат void

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

public ReadUserInput ( ) : string
Результат string