C# Class MBC.App.Terminal.Modules.TerminalModule

The base class for a TerminalModule. Used for providing different states of the terminal application. Provides various methods to display information in a TerminalModule buffer. Direct output via the Console class is not to be used.
Afficher le fichier Open project: aiclub/Mohawk_Battleship Class Usage Examples

Méthodes publiques

Méthode Description
Align ( ) : void
AlignToCoord ( int x, int y ) : bool
AlignToLine ( int line ) : bool
InputEntered ( string input ) : void
IsLayoutSelected ( ControlLayout layout ) : bool
KeyPressed ( ConsoleKeyInfo key ) : bool
NewLine ( int n = 1 ) : void
NextLayout ( ) : void
PreviousLayout ( ) : void
RefreshDisplay ( int x, int y, int w, int h ) : void
WriteCenteredText ( string text ) : void
WriteCharRepeat ( char c, int n ) : void
WriteChars ( char c ) : void
WriteText ( string txt ) : void

Méthodes protégées

Méthode Description
AddControlLayout ( ControlLayout ctrl ) : void
Display ( ) : void
RemoveControlLayout ( ControlLayout ctrl ) : void

Method Details

AddControlLayout() protected méthode

protected AddControlLayout ( ControlLayout ctrl ) : void
ctrl MBC.App.Terminal.Layouts.ControlLayout
Résultat void

Align() public méthode

public Align ( ) : void
Résultat void

AlignToCoord() public méthode

public AlignToCoord ( int x, int y ) : bool
x int
y int
Résultat bool

AlignToLine() public méthode

public AlignToLine ( int line ) : bool
line int
Résultat bool

Display() protected abstract méthode

protected abstract Display ( ) : void
Résultat void

InputEntered() public méthode

public InputEntered ( string input ) : void
input string
Résultat void

IsLayoutSelected() public méthode

public IsLayoutSelected ( ControlLayout layout ) : bool
layout MBC.App.Terminal.Layouts.ControlLayout
Résultat bool

KeyPressed() public méthode

public KeyPressed ( ConsoleKeyInfo key ) : bool
key System.ConsoleKeyInfo
Résultat bool

NewLine() public méthode

public NewLine ( int n = 1 ) : void
n int
Résultat void

NextLayout() public méthode

public NextLayout ( ) : void
Résultat void

PreviousLayout() public méthode

public PreviousLayout ( ) : void
Résultat void

RefreshDisplay() public méthode

public RefreshDisplay ( int x, int y, int w, int h ) : void
x int
y int
w int
h int
Résultat void

RemoveControlLayout() protected méthode

protected RemoveControlLayout ( ControlLayout ctrl ) : void
ctrl MBC.App.Terminal.Layouts.ControlLayout
Résultat void

WriteCenteredText() public méthode

public WriteCenteredText ( string text ) : void
text string
Résultat void

WriteCharRepeat() public méthode

public WriteCharRepeat ( char c, int n ) : void
c char
n int
Résultat void

WriteChars() public méthode

public WriteChars ( char c ) : void
c char
Résultat void

WriteText() public méthode

public WriteText ( string txt ) : void
txt string
Résultat void