30 #ifndef MACVENTURE_SCRIPT_H 31 #define MACVENTURE_SCRIPT_H 33 #include "macventure/container.h" 34 #include "macventure/world.h" 35 #include "macventure/macventure.h" 36 #include "macventure/controls.h" 53 void branch(int16 amount);
59 void loadInstructions();
75 void push(int16 data) {
77 stack[sp] = unneg16(data);
86 int16 peek(int16 off) {
87 return stack[sp + off];
90 void poke(int16 off, int16 val) {
91 stack[sp + off] = unneg16(val);
96 for (
int i = 0; i < sp; i++) {
106 int16 unneg16(int16 data) {
108 data = ((-data) ^ 0xFFFF) + 1;
130 ControlAction action;
151 bool runControl(ControlAction action, ObjID source, ObjID destination,
Common::Point delta);
152 bool resume(
bool execAll);
156 bool execFrame(
bool execAll);
157 bool loadScript(
EngineFrame *frame, uint32 scriptID);
164 int16 neg16(int16 val);
165 int16 neg8(int16 val);
166 int16 sumChildrenAttr(int16 obj, int16 attr,
bool recursive);
167 void ensureNonzeroDivisor(int16 divisor, byte opcode);
281 void op00NOOP(byte op);
Definition: container.h:48
Definition: macventure.h:185
Definition: container.h:38