26#include "tinsel/events.h"
27#include "tinsel/sched.h"
38 RES_NOT, RES_1, RES_2, RES_SAVEGAME
46 GS_NONE, GS_ACTOR, GS_MASTER, GS_POLYGON, GS_INVENTORY, GS_SCENE,
47 GS_PROCESS, GS_GPROCESS
50enum RESCODE {RES_WAITING, RES_FINISHED, RES_CUTSHORT};
52struct WorkaroundEntry;
80 RESUME_STATE resumeState;
83 const WorkaroundEntry *fragmentPtr;
106void FreeMostInterpretContexts();
107void FreeMasterInterpretContext();
111void RegisterGlobals(
int num);
116int32 GetGlobal(
int g);
117void SetGlobal(
int g, int32 value);
123#define NUM_INTERPRET (CORO_NUM_PROCESS - 20)
124#define MAX_INTERPRET (CORO_MAX_PROCESSES - 20)
140#define CONTROL_OFFV 2
141#define CONTROL_OFFV2 3
142#define CONTROL_STARTOFF 4
144#define NULL_ACTOR (-1)
145#define LEAD_ACTOR (-2)
Definition: serializer.h:80
Definition: inv_objects.h:50
#define CORO_PARAM
Definition: coroutines.h:107
Definition: algorithm.h:29
uint32 SCNHANDLE
Definition: dw.h:31
int HPOLYGON
Definition: dw.h:34
@ PCODE_STACK_SIZE
interpeters stack size
Definition: pcode.h:42
TINSEL_EVENT
Definition: events.h:91
Definition: coroutines.h:300
bool bHalt
set to exit interpeter
Definition: pcode.h:73
int myEscape
only initialized to prevent compiler warning!
Definition: pcode.h:75
const InventoryObject * pinvo
associated inventory object
Definition: pcode.h:66
HPOLYGON hPoly
associated polygon (if any)
Definition: pcode.h:64
int32 stack[PCODE_STACK_SIZE]
interpeters run time stack
Definition: pcode.h:69
GSORT GSort
sort of this context
Definition: pcode.h:58
TINSEL_EVENT event
causal event
Definition: pcode.h:63
int ip
instruction pointer
Definition: pcode.h:72
int sp
stack pointer
Definition: pcode.h:70
int bp
base pointer
Definition: pcode.h:71
int idActor
associated actor (if any)
Definition: pcode.h:65
Common::PROCESS * pProc
processes owning this context
Definition: pcode.h:57
SCNHANDLE hCode
scene handle of the code to execute
Definition: pcode.h:61
byte * code
pointer to the code to execute
Definition: pcode.h:62