C# Class GameWorld2.Computer

Inheritance: GameWorld2.MimanTing
Exibir arquivo Open project: eriksvedang/GameWorld2 Class Usage Examples

Public Properties

Property Type Description
TABLE_NAME string
isKeyPressed IsKeyPressed
onClearScreen OnClearScreen
onDisplayGraphics System.Action
onLineDrawing OnLineDrawing
onRectDrawing OnLineDrawing
onSetColor OnSetColor
onTextDrawing OnTextDrawing

Private Properties

Property Type Description
API_CharToInt float
API_ClearText void
API_Cos float
API_GetHour float
API_GetMinute float
API_GetUser string
API_Height float
API_Info void
API_Input string
API_IntToChar string
API_Log void
API_Name string
API_Pitch void
API_PlaySound void
API_Print void
API_PrintS void
API_Quit void
API_Random float
API_Say void
API_Sin float
API_Sleep void
API_Time float
API_Width float
Checkbox void
GenerateProgramAPI void
InternalPrint void
ReplaceHelloWorldProgram void
nSpaces string

Public Methods

Method Description
DoesMasterProgramExist ( ) : bool
EnsureMemoryUnit ( ) : void
FixBeforeSaving ( ) : void
GetUsedBy ( GameWorld2.Character pUser, GameWorld2.Floppy pFloppy ) : void
MaybeFixGroupIfOutsideIslandOfTiles ( ) : void
NextLine ( ) : void
OnBackspaceKey ( ) : void
OnDirectionKey ( string pKey ) : void
OnEnterKey ( ) : void
OnKeyDown ( string pKey ) : void
PrepareForBeingHacked ( ) : void
RemovePrograms ( ) : void
RunProgram ( GameWorld2.Floppy pFloppy ) : void
Say ( string pLine, string pConversation ) : void
Update ( float dt ) : void

Protected Methods

Method Description
SetupCells ( ) : void

Private Methods

Method Description
API_CharToInt ( string character ) : float
API_ClearText ( ) : void
API_Cos ( float x ) : float
API_GetHour ( ) : float
API_GetMinute ( ) : float
API_GetUser ( ) : string
API_Height ( ) : float
API_Info ( ) : void
API_Input ( string prompt ) : string
API_IntToChar ( float number ) : string
API_Log ( string text ) : void
API_Name ( ) : string
API_Pitch ( float pitch ) : void
API_PlaySound ( string soundName ) : void
API_Print ( string text ) : void
API_PrintS ( string text ) : void
API_Quit ( ) : void
API_Random ( ) : float
API_Say ( string text ) : void
API_Sin ( float x ) : float
API_Sleep ( float seconds ) : void
API_Time ( ) : float
API_Width ( ) : float
Checkbox ( string pName, bool pTrue ) : void
GenerateProgramAPI ( Program pProgram ) : void
InternalPrint ( string pText, bool pNewLine ) : void
ReplaceHelloWorldProgram ( string pNewProgramName ) : void
nSpaces ( int n ) : string

Method Details

DoesMasterProgramExist() public method

public DoesMasterProgramExist ( ) : bool
return bool

EnsureMemoryUnit() public method

public EnsureMemoryUnit ( ) : void
return void

FixBeforeSaving() public method

public FixBeforeSaving ( ) : void
return void

GetUsedBy() public method

public GetUsedBy ( GameWorld2.Character pUser, GameWorld2.Floppy pFloppy ) : void
pUser GameWorld2.Character
pFloppy GameWorld2.Floppy
return void

MaybeFixGroupIfOutsideIslandOfTiles() public method

public MaybeFixGroupIfOutsideIslandOfTiles ( ) : void
return void

NextLine() public method

public NextLine ( ) : void
return void

OnBackspaceKey() public method

public OnBackspaceKey ( ) : void
return void

OnDirectionKey() public method

public OnDirectionKey ( string pKey ) : void
pKey string
return void

OnEnterKey() public method

public OnEnterKey ( ) : void
return void

OnKeyDown() public method

public OnKeyDown ( string pKey ) : void
pKey string
return void

PrepareForBeingHacked() public method

public PrepareForBeingHacked ( ) : void
return void

RemovePrograms() public method

public RemovePrograms ( ) : void
return void

RunProgram() public method

public RunProgram ( GameWorld2.Floppy pFloppy ) : void
pFloppy GameWorld2.Floppy
return void

Say() public method

public Say ( string pLine, string pConversation ) : void
pLine string
pConversation string
return void

SetupCells() protected method

protected SetupCells ( ) : void
return void

Update() public method

public Update ( float dt ) : void
dt float
return void

Property Details

TABLE_NAME public_oe static_oe property

public static string TABLE_NAME
return string

isKeyPressed public_oe property

public IsKeyPressed isKeyPressed
return IsKeyPressed

onClearScreen public_oe property

public OnClearScreen onClearScreen
return OnClearScreen

onDisplayGraphics public_oe property

public Action,System onDisplayGraphics
return System.Action

onLineDrawing public_oe property

public OnLineDrawing onLineDrawing
return OnLineDrawing

onRectDrawing public_oe property

public OnLineDrawing onRectDrawing
return OnLineDrawing

onSetColor public_oe property

public OnSetColor onSetColor
return OnSetColor

onTextDrawing public_oe property

public OnTextDrawing onTextDrawing
return OnTextDrawing