C# Class BalloonsPop.ConsoleUI.ConsoleUI

Inheritance: IUserInterface
Datei anzeigen Open project: Baloons-Pop-4/Main Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

ConsoleUI() public method

Initializes a new instance of the ConsoleUI class.
public ConsoleUI ( ) : System
return System

PrintField() public method

public PrintField ( IBalloon matrix ) : void
matrix IBalloon
return void

PrintHighscore() public method

public PrintHighscore ( IHighscoreTable highScore ) : void
highScore IHighscoreTable
return void

PrintMessage() public method

public PrintMessage ( string message ) : void
message string
return void

PrintPlayerMoves() public method

public PrintPlayerMoves ( string moves ) : void
moves string
return void

ReadUserInput() public method

public ReadUserInput ( ) : string
return string