C# Class MingStar.SimUniversity.ConsoleUI.ConsoleViewer

Inheritance: IGameViewer
Show file Open project: MingStar/SimUniversity

Public Methods

Method Description
PrintGame ( ) : void
PrintIllegalMove ( IPlayerMove move ) : void
PrintLegalMove ( IPlayerMove move ) : void
PrintRoundResult ( System.TimeSpan timeTaken ) : void
PrintStats ( ) : void
PrintTitle ( ) : void
PrintUniversityDetails ( ) : void
SetGame ( Game game ) : void

Private Methods

Method Description
HexPosToConsolePos ( Position hexPos ) : Position
InitialiseBuffer ( ) : void
PrintBufferToBoard ( ) : void
PrintNumber ( int number, int bufferY, int bufferX, bool rightAligned, ConsoleColor foreColor ) : void
PrintScarcity ( ) : void
UpdateBuffer ( ) : void
UpdateBuffer ( Edge edge ) : void
UpdateBuffer ( Hexagon hex ) : void
UpdateBuffer ( Vertex vertex ) : void
printNumberNegRed ( int number, int bufferY, int bufferX, bool rightAligned, ConsoleColor defaultForeColor ) : void

Method Details

PrintGame() public method

public PrintGame ( ) : void
return void

PrintIllegalMove() public method

public PrintIllegalMove ( IPlayerMove move ) : void
move IPlayerMove
return void

PrintLegalMove() public method

public PrintLegalMove ( IPlayerMove move ) : void
move IPlayerMove
return void

PrintRoundResult() public method

public PrintRoundResult ( System.TimeSpan timeTaken ) : void
timeTaken System.TimeSpan
return void

PrintStats() public method

public PrintStats ( ) : void
return void

PrintTitle() public method

public PrintTitle ( ) : void
return void

PrintUniversityDetails() public method

public PrintUniversityDetails ( ) : void
return void

SetGame() public method

public SetGame ( Game game ) : void
game MingStar.SimUniversity.Game.Game
return void