C# Class NScumm.Sky.Control

Show file Open project: scemino/nscumm Class Usage Examples

Public Methods

Method Description
Control ( Screen screen, Disk disk, Mouse mouse, Text text, MusicBase music, Logic logic, Sound sound, SkyCompact skyCompact, ISystem system ) : System
DoAutoSave ( ) : void
DoControlPanel ( ) : void
DoLoadSavePanel ( ) : void
LoadSaveAllowed ( ) : bool
RestartGame ( ) : void
ShowGameQuitMsg ( ) : void

Private Methods

Method Description
AnimClick ( ConResource pButton ) : void
AutoSaveExists ( ) : bool
ButtonControl ( ConResource pButton ) : void
CreateResource ( byte pSpData, uint pNSprites, uint pCurSprite, short pX, short pY, uint pText, byte pOnClick, byte panelType ) : ConResource
Delay ( int amount ) : void
DoMusicSlide ( ) : ushort
DoSpeedSlide ( ) : ushort
DoToggleFx ( ConResource pButton ) : void
DoToggleText ( ) : ushort
DrawCross ( ushort x, ushort y ) : void
DrawMainPanel ( ) : void
DrawTextCross ( SystemFlags flags ) : void
GetYesNo ( string text ) : bool
HandleClick ( ConResource pButton ) : ushort
HandleKeyPress ( ScummInputState kbd, StringBuilder textBuf ) : void
ImportOldCompact ( CompactEntry cptEntry, BinaryReader reader ) : void
InitPanel ( ) : void
LoadDescriptions ( ) : string[]
ParseSaveData ( byte src ) : ushort
PrepareSaveData ( byte destBuf ) : int
ReadName ( BinaryReader reader ) : string
RemovePanel ( ) : void
RestoreGameFromFile ( bool autoSave ) : ushort
SaveDescriptions ( StringBuilder list ) : void
SaveGameToFile ( bool fromControlPanel, string filename = null ) : ushort
SaveRestorePanel ( bool allowSave ) : ushort
SetUpGameSprites ( StringBuilder saveGameNames, byte nameSprites, ushort firstNum, ushort selectedGame ) : void
ShiftDown ( byte speed ) : ushort
ShiftUp ( byte speed ) : ushort
ShowSprites ( byte nameSprites, bool allowSave ) : void
ToggleMusic ( ConResource pButton ) : void

Method Details

Control() public method

public Control ( Screen screen, Disk disk, Mouse mouse, Text text, MusicBase music, Logic logic, Sound sound, SkyCompact skyCompact, ISystem system ) : System
screen Screen
disk Disk
mouse Mouse
text Text
music NScumm.Sky.Music.MusicBase
logic Logic
sound Sound
skyCompact SkyCompact
system ISystem
return System

DoAutoSave() public method

public DoAutoSave ( ) : void
return void

DoControlPanel() public method

public DoControlPanel ( ) : void
return void

DoLoadSavePanel() public method

public DoLoadSavePanel ( ) : void
return void

LoadSaveAllowed() public method

public LoadSaveAllowed ( ) : bool
return bool

RestartGame() public method

public RestartGame ( ) : void
return void

ShowGameQuitMsg() public method

public ShowGameQuitMsg ( ) : void
return void