C# Class BalloonsPop.ConsoleUI.ConsoleUI

Inheritance: IUserInterface
Afficher le fichier Open project: Baloons-Pop-4/Main Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

Initializes a new instance of the ConsoleUI class.
public ConsoleUI ( ) : System
Résultat System

PrintField() public méthode

public PrintField ( IBalloon matrix ) : void
matrix IBalloon
Résultat void

PrintHighscore() public méthode

public PrintHighscore ( IHighscoreTable highScore ) : void
highScore IHighscoreTable
Résultat void

PrintMessage() public méthode

public PrintMessage ( string message ) : void
message string
Résultat void

PrintPlayerMoves() public méthode

public PrintPlayerMoves ( string moves ) : void
moves string
Résultat void

ReadUserInput() public méthode

public ReadUserInput ( ) : string
Résultat string