C# Class kOS.Screen.Interpreter

Inheritance: TextEditor, IInterpreter
Afficher le fichier Open project: KSP-KOS/KOS Class Usage Examples

Méthodes publiques

Méthode Description
GetCommandHistoryAbsolute ( int absoluteIndex ) : string
Interpreter ( SharedObjects shared ) : System
IsAtStartOfCommand ( ) : bool

Detect if the interpreter happens to be right at the start of a new command line.

IsWaitingForCommand ( ) : bool
PrintAt ( string textToPrint, int row, int column ) : void
Reset ( ) : void
SetInputLock ( bool isLocked ) : void
SpecialKey ( char key ) : bool
Type ( char ch ) : void

Méthodes protégées

Méthode Description
CompileCommand ( string commandText ) : void
NewLine ( ) : void
ProcessCommand ( string commandText ) : void

Private Methods

Méthode Description
AddCommandHistoryEntry ( string commandText ) : void
ShowCommandHistoryEntry ( int deltaIndex ) : void

Method Details

CompileCommand() protected méthode

protected CompileCommand ( string commandText ) : void
commandText string
Résultat void

GetCommandHistoryAbsolute() public méthode

public GetCommandHistoryAbsolute ( int absoluteIndex ) : string
absoluteIndex int
Résultat string

Interpreter() public méthode

public Interpreter ( SharedObjects shared ) : System
shared SharedObjects
Résultat System

IsAtStartOfCommand() public méthode

Detect if the interpreter happens to be right at the start of a new command line.
public IsAtStartOfCommand ( ) : bool
Résultat bool

IsWaitingForCommand() public méthode

public IsWaitingForCommand ( ) : bool
Résultat bool

NewLine() protected méthode

protected NewLine ( ) : void
Résultat void

PrintAt() public méthode

public PrintAt ( string textToPrint, int row, int column ) : void
textToPrint string
row int
column int
Résultat void

ProcessCommand() protected méthode

protected ProcessCommand ( string commandText ) : void
commandText string
Résultat void

Reset() public méthode

public Reset ( ) : void
Résultat void

SetInputLock() public méthode

public SetInputLock ( bool isLocked ) : void
isLocked bool
Résultat void

SpecialKey() public méthode

public SpecialKey ( char key ) : bool
key char
Résultat bool

Type() public méthode

public Type ( char ch ) : void
ch char
Résultat void