C# Class NScumm.Scumm.ScummEngine6

Show file Open project: scemino/nscumm Class Usage Examples

Protected Properties

Property Type Description
VariableBlastAboveText int?
VariableCameraFollowedActor int?
VariableCharsetMask int?
VariableRandomNumber int?
VariableTimeDateDay int
VariableTimeDateHour int
VariableTimeDateMinute int
VariableTimeDateMonth int
VariableTimeDateSecond int?
VariableTimeDateYear int
_blastObjectQueue NScumm.Scumm.BlastObject[]
_blastObjectQueuePos int
_curActor int
_curVerb int
_curVerbSlot int
_skipVideo bool

Public Methods

Method Description
ReadArray ( uint array, int idx, int @base ) : int
ScummEngine6 ( GameSettings game, IGraphicsManager graphicsManager, IInputManager inputManager, IMixer mixer ) : System
WriteArray ( uint array, int idx, int @base, int value ) : void

Protected Methods

Method Description
ClearDrawObjectQueue ( ) : void
DecodeParseString ( int m, int n ) : void
DefineArray ( uint array, ArrayType type, int dim2, int dim1 ) : ArrayHeader
DelayCore ( int delay ) : void
DrawBlastObject ( BlastObject eo ) : void
DrawBlastObjects ( ) : void
DrawBlastTexts ( ) : void
DrawDirtyScreenParts ( ) : void
EnqueueObject ( int objectNumber, int objectX, int objectY, int objectWidth, int objectHeight, int scaleX, int scaleY, int image, int mode ) : void
EnqueueText ( byte text, int x, int y, byte color, byte charset, bool center ) : void
GetObjectRoom ( int obj ) : int
GetSpecialBox ( System.Point p ) : int
GetStackList ( int max ) : int[]
GetStringAt ( int index ) : byte[]
GrabCursor ( int x, int y, int w, int h ) : void
InitOpCodes ( ) : void
KillAllScriptsExceptCurrent ( ) : void
NukeArray ( uint a ) : void
PalManipulateInit ( int resID, int start, int end, int time ) : void
Pop ( ) : int
PopRoomAndObj ( int &room, int &obj ) : void
ProcessUpperActors ( ) : void
Push ( bool value ) : void
Push ( int value ) : void
PutActors ( ) : void
RemapPaletteColor ( int r, int g, int b, int threshold ) : int
RemoveBlastObject ( BlastObject eo ) : void
RemoveBlastObjects ( ) : void
RemoveBlastTexts ( ) : void
ResetScummVars ( ) : void
SetCursorFromImg ( int obj, int room, int index ) : void
SetCursorHotspot ( System.Point pos ) : void
SetCursorTransparency ( int a ) : void
SetDefaultCursor ( ) : void
SetObjectState ( int obj, int state, int x, int y ) : void
SetupVars ( ) : void

Private Methods

Method Description
Abs ( int value ) : void
ActorFollowCamera ( int index ) : void
ActorFollowCameraEx ( int act ) : void
ActorOps ( ) : void
Add ( int a, int b ) : void
AnimateActor ( int index, int anim ) : void
ArrayOps ( ) : void
BAnd ( int a, int b ) : void
BeginOverride ( ) : void
Bor ( int a, int b ) : void
BreakHere ( ) : void
ByteArrayDec ( int @base ) : void
ByteArrayInc ( int @base ) : void
ByteArrayIndexedRead ( int index, int @base ) : void
ByteArrayIndexedWrite ( int index, int @base, int value ) : void
ByteArrayRead ( int @base ) : void
ByteArrayWrite ( int @base, int value ) : void
ByteVarDec ( ) : void
ByteVarInc ( ) : void
Capture ( VirtScreen screen, int x, int y, int w, int h ) : byte[]
ColorWeight ( int red, int green, int blue ) : int
CopyPalColor ( int dst, int src ) : void
CreateBlastObjects ( ) : NScumm.Scumm.BlastObject[]
CreateBlastTexts ( ) : NScumm.Scumm.BlastText[]
CreateBoxMatrix ( ) : void
CursorCommand ( ) : void
Cutscene ( int args ) : void
Delay ( int delay ) : void
DelayFrames ( ) : void
DelayMinutes ( int minutes ) : void
DelaySeconds ( int seconds ) : void
Dim2DimArray ( int dim2, int dim1 ) : void
DimArray ( ) : void
DistObjectObject ( int a, int b ) : void
DistObjectPt ( int a, int b, int c ) : void
DistObjectPtPt ( int a, int b, int c, int d ) : void
Div ( int a, int b ) : void
DoSentence ( byte verb, ushort objectA, int tmp, ushort objectB ) : void
DrawBlastObject ( int a, int b, int c, int d, int e, int args ) : void
DrawBox ( int x, int y, int x2, int y2, int color ) : void
DrawObject ( int obj, int state ) : void
DrawObjectAt ( int obj, int x, int y ) : void
Dummy ( ) : void
Dup ( int value ) : void
EndCutscene ( ) : void
EndOverride ( ) : void
Eq ( int a, int b ) : void
FaceActor ( int index, int obj ) : void
FindAllObjects ( int room ) : void
FindFreeArrayId ( ) : int
FindInventory ( int owner, int index ) : void
FindObject ( int x, int y ) : void
FreezeUnfreeze ( int script ) : void
Ge ( int a, int b ) : void
GetActorAnimCounter ( int index ) : void
GetActorCostume ( int index ) : void
GetActorElevation ( int index ) : void
GetActorFromXY ( int x, int y ) : void
GetActorLayer ( int index ) : void
GetActorMoving ( int index ) : void
GetActorRoom ( int index ) : void
GetActorScaleX ( int index ) : void
GetActorWalkBox ( int index ) : void
GetActorWidth ( int index ) : void
GetAnimateVariable ( int index, int variable ) : void
GetArray ( uint array ) : ArrayHeader
GetDateTime ( ) : void
GetDebuggerDisplayFor ( object value ) : string
GetDebuggerDisplayForArray ( int values ) : string
GetDepth ( Type type ) : int
GetDistanceBetween ( bool isObj1, int b, int c, bool isObj2, int e, int f ) : int
GetInventoryCount ( int owner ) : void
GetObjNewDir ( int index ) : int
GetObjOldDir ( int index ) : int
GetObjectNewDir ( int index ) : void
GetObjectOldDir ( int index ) : void
GetObjectX ( int index ) : void
GetObjectY ( int index ) : void
GetOwner ( int obj ) : void
GetPixel ( int x, int y ) : void
GetRandomNumber ( int max ) : void
GetRandomNumberRange ( int min, int max ) : void
GetState ( int obj ) : void
GetVerbEntrypoint ( int verb, int entryp ) : void
GetVerbFromXY ( int x, int y ) : void
GrabPixels ( ImageData im, int w, int h ) : byte[]
Gt ( int a, int b ) : void
If ( int condition ) : void
IfClassOfIs ( int obj, int args ) : void
IfNot ( int condition ) : void
IsActorInBox ( int index, int box ) : void
IsAnyOf ( int value, int args ) : void
IsRoomScriptRunning ( int script ) : void
IsRoomScriptRunningCore ( int script ) : bool
IsScriptRunning ( int script ) : void
IsSoundRunning ( int sound ) : void
Jump ( ) : void
JumpToScript ( int flags, int script, int args ) : void
KernelGetFunctions ( ) : void
KernelSetFunctions ( ) : void
Land ( int a, int b ) : void
Le ( int a, int b ) : void
LoadRoom ( byte room ) : void
LoadRoomWithEgo ( int x, int y ) : void
Lor ( int a, int b ) : void
Lt ( int a, int b ) : void
Mul ( int a, int b ) : void
NEq ( int a, int b ) : void
Not ( int value ) : void
OpCode ( MethodInfo method ) : System.Action
PanCameraTo ( ) : void
PickOneOf ( int i, int args ) : void
PickOneOfDefault ( int i, int args, int def ) : void
PickVarRandom ( int args ) : void
PickupObject ( ) : void
Pop6 ( ) : void
PrintActor ( ) : void
PrintDebug ( ) : void
PrintEgo ( ) : void
PrintLine ( ) : void
PrintSystem ( ) : void
PrintText ( ) : void
PseudoRoom ( byte value, int args ) : void
PushByte ( ) : void
PushByteVar ( ) : void
PushWord ( ) : void
PushWordVar ( ) : void
PutActorAtObject ( ) : void
PutActorAtXY ( int actorIndex, int x, int y, int room ) : void
ResourceRoutines ( ) : void
RoomOps ( ) : void
SaveRestoreVerbs ( int a, int b, int c ) : void
SetBlastObjectWindow ( int a, int b, int c, int d ) : void
SetBoxFlags ( int args, int value ) : void
SetBoxSet ( ) : void
SetCameraAt ( ) : void
SetClass ( int obj, int args ) : void
SetCursorFromBuffer ( byte data, int width, int height ) : void
SetObjectName ( int obj ) : void
SetOwner ( int obj, int owner ) : void
SetState ( int obj, int state ) : void
Shuffle ( int a, int b ) : void
ShuffleArray ( uint num, int minIdx, int maxIdx ) : void
SoundKludge ( int args ) : void
StampObject ( int obj, int x, int y, int state ) : void
StartMusic ( int sound ) : void
StartObject ( int flags, int script, byte entryp, int args ) : void
StartObjectQuick ( int script, byte entryp, int args ) : void
StartScript ( int flags, int script, int args ) : void
StartScriptQuick ( int script, int args ) : void
StartScriptQuick2 ( int script, int args ) : void
StartSound ( int sound ) : void
StopMusic ( ) : void
StopObjectCode6 ( ) : void
StopObjectScript ( ushort script ) : void
StopScript6 ( int script ) : void
StopSentence ( ) : void
StopSound ( int sound ) : void
StopTalking ( ) : void
Sub ( int a, int b ) : void
SwapPalColors ( int a, int b ) : void
SystemOps ( ) : void
TalkActor ( int actor ) : void
TalkEgo ( ) : void
UpdateCursor ( ) : void
VerbOps ( ) : void
Wait ( ) : void
WalkActorTo ( int index, int x, int y ) : void
WalkActorToObj ( int index, int obj, int dist ) : void
WordArrayDec ( int @base ) : void
WordArrayInc ( int @base ) : void
WordArrayIndexedRead ( int index, int @base ) : void
WordArrayIndexedWrite ( int index, int @base, int value ) : void
WordArrayRead ( int @base ) : void
WordArrayWrite ( int @base, int value ) : void
WordVarDec ( ) : void
WordVarInc ( ) : void
WriteByteVar ( int value ) : void
WriteWordVar ( int value ) : void

Method Details

ClearDrawObjectQueue() protected method

protected ClearDrawObjectQueue ( ) : void
return void

DecodeParseString() protected method

protected DecodeParseString ( int m, int n ) : void
m int
n int
return void

DefineArray() protected method

protected DefineArray ( uint array, ArrayType type, int dim2, int dim1 ) : ArrayHeader
array uint
type ArrayType
dim2 int
dim1 int
return ArrayHeader

DelayCore() protected method

protected DelayCore ( int delay ) : void
delay int
return void

DrawBlastObject() protected method

protected DrawBlastObject ( BlastObject eo ) : void
eo BlastObject
return void

DrawBlastObjects() protected method

protected DrawBlastObjects ( ) : void
return void

DrawBlastTexts() protected method

protected DrawBlastTexts ( ) : void
return void

DrawDirtyScreenParts() protected method

protected DrawDirtyScreenParts ( ) : void
return void

EnqueueObject() protected method

protected EnqueueObject ( int objectNumber, int objectX, int objectY, int objectWidth, int objectHeight, int scaleX, int scaleY, int image, int mode ) : void
objectNumber int
objectX int
objectY int
objectWidth int
objectHeight int
scaleX int
scaleY int
image int
mode int
return void

EnqueueText() protected method

protected EnqueueText ( byte text, int x, int y, byte color, byte charset, bool center ) : void
text byte
x int
y int
color byte
charset byte
center bool
return void

GetObjectRoom() protected method

protected GetObjectRoom ( int obj ) : int
obj int
return int

GetSpecialBox() protected method

protected GetSpecialBox ( System.Point p ) : int
p System.Point
return int

GetStackList() protected method

protected GetStackList ( int max ) : int[]
max int
return int[]

GetStringAt() protected method

protected GetStringAt ( int index ) : byte[]
index int
return byte[]

GrabCursor() protected method

protected GrabCursor ( int x, int y, int w, int h ) : void
x int
y int
w int
h int
return void

InitOpCodes() protected method

protected InitOpCodes ( ) : void
return void

KillAllScriptsExceptCurrent() protected method

protected KillAllScriptsExceptCurrent ( ) : void
return void

NukeArray() protected method

protected NukeArray ( uint a ) : void
a uint
return void

PalManipulateInit() protected method

protected PalManipulateInit ( int resID, int start, int end, int time ) : void
resID int
start int
end int
time int
return void

Pop() protected method

protected Pop ( ) : int
return int

PopRoomAndObj() protected method

protected PopRoomAndObj ( int &room, int &obj ) : void
room int
obj int
return void

ProcessUpperActors() protected method

protected ProcessUpperActors ( ) : void
return void

Push() protected method

protected Push ( bool value ) : void
value bool
return void

Push() protected method

protected Push ( int value ) : void
value int
return void

PutActors() protected method

protected PutActors ( ) : void
return void

ReadArray() public method

public ReadArray ( uint array, int idx, int @base ) : int
array uint
idx int
@base int
return int

RemapPaletteColor() protected method

protected RemapPaletteColor ( int r, int g, int b, int threshold ) : int
r int
g int
b int
threshold int
return int

RemoveBlastObject() protected method

protected RemoveBlastObject ( BlastObject eo ) : void
eo BlastObject
return void

RemoveBlastObjects() protected method

protected RemoveBlastObjects ( ) : void
return void

RemoveBlastTexts() protected method

protected RemoveBlastTexts ( ) : void
return void

ResetScummVars() protected method

protected ResetScummVars ( ) : void
return void

ScummEngine6() public method

public ScummEngine6 ( GameSettings game, IGraphicsManager graphicsManager, IInputManager inputManager, IMixer mixer ) : System
game GameSettings
graphicsManager IGraphicsManager
inputManager IInputManager
mixer IMixer
return System

SetCursorFromImg() protected method

protected SetCursorFromImg ( int obj, int room, int index ) : void
obj int
room int
index int
return void

SetCursorHotspot() protected method

protected SetCursorHotspot ( System.Point pos ) : void
pos System.Point
return void

SetCursorTransparency() protected method

protected SetCursorTransparency ( int a ) : void
a int
return void

SetDefaultCursor() protected method

protected SetDefaultCursor ( ) : void
return void

SetObjectState() protected method

protected SetObjectState ( int obj, int state, int x, int y ) : void
obj int
state int
x int
y int
return void

SetupVars() protected method

protected SetupVars ( ) : void
return void

WriteArray() public method

public WriteArray ( uint array, int idx, int @base, int value ) : void
array uint
idx int
@base int
value int
return void

Property Details

VariableBlastAboveText protected property

protected int? VariableBlastAboveText
return int?

VariableCameraFollowedActor protected property

protected int? VariableCameraFollowedActor
return int?

VariableCharsetMask protected property

protected int? VariableCharsetMask
return int?

VariableRandomNumber protected property

protected int? VariableRandomNumber
return int?

VariableTimeDateDay protected property

protected int VariableTimeDateDay
return int

VariableTimeDateHour protected property

protected int VariableTimeDateHour
return int

VariableTimeDateMinute protected property

protected int VariableTimeDateMinute
return int

VariableTimeDateMonth protected property

protected int VariableTimeDateMonth
return int

VariableTimeDateSecond protected property

protected int? VariableTimeDateSecond
return int?

VariableTimeDateYear protected property

protected int VariableTimeDateYear
return int

_blastObjectQueue protected property

protected BlastObject[],NScumm.Scumm _blastObjectQueue
return NScumm.Scumm.BlastObject[]

_blastObjectQueuePos protected property

protected int _blastObjectQueuePos
return int

_curActor protected property

protected int _curActor
return int

_curVerb protected property

protected int _curVerb
return int

_curVerbSlot protected property

protected int _curVerbSlot
return int

_skipVideo protected property

protected bool _skipVideo
return bool