23 #ifndef TINSEL_PCODE_H // prevent multiple includes 24 #define TINSEL_PCODE_H 26 #include "tinsel/events.h" 27 #include "tinsel/sched.h" 35 class InventoryObject;
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
50 enum RESCODE {RES_WAITING, RES_FINISHED, RES_CUTSHORT};
52 struct WorkaroundEntry;
80 RESUME_STATE resumeState;
83 const WorkaroundEntry *fragmentPtr;
106 void FreeMostInterpretContexts();
107 void FreeMasterInterpretContext();
111 void RegisterGlobals(
int num);
118 #define NUM_INTERPRET (CORO_NUM_PROCESS - 20) 119 #define MAX_INTERPRET (CORO_MAX_PROCESSES - 20) 125 #define TAG_DEF 0 // For tagactor() 126 #define TAG_Q1TO3 1 // tag types 127 #define TAG_Q1TO4 2 // tag types 129 #define CONV_DEF 0 // 130 #define CONV_BOTTOM 1 // conversation() parameter 131 #define CONV_END 2 // 133 #define CONTROL_OFF 0 // control() 134 #define CONTROL_ON 1 // parameter 135 #define CONTROL_OFFV 2 // 136 #define CONTROL_OFFV2 3 // 137 #define CONTROL_STARTOFF 4 // 139 #define NULL_ACTOR (-1) // For actor parameters 140 #define LEAD_ACTOR (-2) // 142 #define RAND_NORM 0 // For random() frills 143 #define RAND_NORPT 1 // 148 #define TW_START 1 // topwindow() parameter 155 #define FM_OUT 1 // fademidi() 158 #define FG_OFF 1 // FrameGrab() 161 #define ST_OFF 1 // SubTitles() 165 #endif // TINSEL_PCODE_H byte * code
pointer to the code to execute
Definition: pcode.h:62
SCNHANDLE hCode
scene handle of the code to execute
Definition: pcode.h:61
const InventoryObject * pinvo
associated inventory object
Definition: pcode.h:66
uint32 SCNHANDLE
Definition: dw.h:31
int bp
base pointer
Definition: pcode.h:71
int idActor
associated actor (if any)
Definition: pcode.h:65
int ip
instruction pointer
Definition: pcode.h:72
GSORT GSort
sort of this context
Definition: pcode.h:58
Definition: serializer.h:79
TINSEL_EVENT
Definition: events.h:91
int sp
stack pointer
Definition: pcode.h:70
#define CORO_PARAM
Definition: coroutines.h:107
Definition: coroutines.h:300
Definition: algorithm.h:29
HPOLYGON hPoly
associated polygon (if any)
Definition: pcode.h:64
TINSEL_EVENT event
causal event
Definition: pcode.h:63
bool bHalt
set to exit interpeter
Definition: pcode.h:73
int myEscape
only initialized to prevent compiler warning!
Definition: pcode.h:75
Definition: inv_objects.h:50
interpeters stack size
Definition: pcode.h:42
Common::PROCESS * pProc
processes owning this context
Definition: pcode.h:57
int HPOLYGON
Definition: dw.h:34