C# Class NScumm.Scumm.Smush.SmushPlayer

Mostrar archivo Open project: scemino/nscumm Class Usage Examples

Public Methods

Method Description
DecodeFrameObject ( int codec, byte src, int left, int top, int width, int height ) : void
GetFont ( int font ) : SmushFont
GetString ( int id ) : string
HandleAnimHeader ( uint subSize, BinaryReader b ) : void
HandleDeltaPalette ( uint subSize, BinaryReader b ) : void
HandleFetch ( uint subSize, BinaryReader b ) : void
HandleFrame ( uint frameSize, BinaryReader b ) : void
HandleFrameObject ( uint subSize, BinaryReader b ) : void
HandleIACT ( uint subSize, BinaryReader b ) : void
HandleNewPalette ( uint subSize, BinaryReader b ) : void
HandleSoundBuffer ( int track_id, int index, int max_frames, int flags, int vol, int pan, BinaryReader b, int size ) : void
HandleSoundFrame ( uint subSize, BinaryReader b ) : void
HandleStore ( uint subSize, BinaryReader b ) : void
HandleTextResource ( string subType, uint subSize, BinaryReader b ) : void
Init ( int speed ) : void
Insanity ( bool flag ) : void
ParseNextFrame ( ) : void
Play ( string filename, int speed, int offset, int startFrame ) : void
Release ( ) : void
SeekSan ( string filename, int pos, int contFrame ) : void
SetDirtyColors ( int min, int max ) : void
SetPalette ( byte palette ) : void
SetPaletteValue ( int n, byte r, byte g, byte b ) : void
SetupAnim ( string file ) : void
SmushPlayer ( ScummEngine7 scumm ) : System
TimerCallback ( ) : void
TryCmpFile ( string filename ) : void
UpdateScreen ( ) : void

Private Methods

Method Description
DeltaColor ( int org_color, int delta_color ) : byte
GetStrings ( ScummEngine vm, string file, bool isEncoded ) : TrsFile
ReadPalette ( BinaryReader b ) : Palette
ReadString ( string file ) : bool
SmushDecodeCodec1 ( byte dst, int dstPos, byte src, int srcfOffset, int left, int top, int width, int height, int pitch ) : void

Method Details

DecodeFrameObject() public method

public DecodeFrameObject ( int codec, byte src, int left, int top, int width, int height ) : void
codec int
src byte
left int
top int
width int
height int
return void

GetFont() public method

public GetFont ( int font ) : SmushFont
font int
return SmushFont

GetString() public method

public GetString ( int id ) : string
id int
return string

HandleAnimHeader() public method

public HandleAnimHeader ( uint subSize, BinaryReader b ) : void
subSize uint
b System.IO.BinaryReader
return void

HandleDeltaPalette() public method

public HandleDeltaPalette ( uint subSize, BinaryReader b ) : void
subSize uint
b System.IO.BinaryReader
return void

HandleFetch() public method

public HandleFetch ( uint subSize, BinaryReader b ) : void
subSize uint
b System.IO.BinaryReader
return void

HandleFrame() public method

public HandleFrame ( uint frameSize, BinaryReader b ) : void
frameSize uint
b System.IO.BinaryReader
return void

HandleFrameObject() public method

public HandleFrameObject ( uint subSize, BinaryReader b ) : void
subSize uint
b System.IO.BinaryReader
return void

HandleIACT() public method

public HandleIACT ( uint subSize, BinaryReader b ) : void
subSize uint
b System.IO.BinaryReader
return void

HandleNewPalette() public method

public HandleNewPalette ( uint subSize, BinaryReader b ) : void
subSize uint
b System.IO.BinaryReader
return void

HandleSoundBuffer() public method

public HandleSoundBuffer ( int track_id, int index, int max_frames, int flags, int vol, int pan, BinaryReader b, int size ) : void
track_id int
index int
max_frames int
flags int
vol int
pan int
b System.IO.BinaryReader
size int
return void

HandleSoundFrame() public method

public HandleSoundFrame ( uint subSize, BinaryReader b ) : void
subSize uint
b System.IO.BinaryReader
return void

HandleStore() public method

public HandleStore ( uint subSize, BinaryReader b ) : void
subSize uint
b System.IO.BinaryReader
return void

HandleTextResource() public method

public HandleTextResource ( string subType, uint subSize, BinaryReader b ) : void
subType string
subSize uint
b System.IO.BinaryReader
return void

Init() public method

public Init ( int speed ) : void
speed int
return void

Insanity() public method

public Insanity ( bool flag ) : void
flag bool
return void

ParseNextFrame() public method

public ParseNextFrame ( ) : void
return void

Play() public method

public Play ( string filename, int speed, int offset, int startFrame ) : void
filename string
speed int
offset int
startFrame int
return void

Release() public method

public Release ( ) : void
return void

SeekSan() public method

public SeekSan ( string filename, int pos, int contFrame ) : void
filename string
pos int
contFrame int
return void

SetDirtyColors() public method

public SetDirtyColors ( int min, int max ) : void
min int
max int
return void

SetPalette() public method

public SetPalette ( byte palette ) : void
palette byte
return void

SetPaletteValue() public method

public SetPaletteValue ( int n, byte r, byte g, byte b ) : void
n int
r byte
g byte
b byte
return void

SetupAnim() public method

public SetupAnim ( string file ) : void
file string
return void

SmushPlayer() public method

public SmushPlayer ( ScummEngine7 scumm ) : System
scumm ScummEngine7
return System

TimerCallback() public method

public TimerCallback ( ) : void
return void

TryCmpFile() public method

public TryCmpFile ( string filename ) : void
filename string
return void

UpdateScreen() public method

public UpdateScreen ( ) : void
return void