22 #ifndef DRAGONS_SEQUENCEOPCODES_H 23 #define DRAGONS_SEQUENCEOPCODES_H 25 #include "common/func.h" 26 #include "common/str.h" 31 #define DRAGONS_NUM_SEQ_OPCODES 22 49 #define ARG_SKIP(x) opCall.skip(x); 50 #define ARG_BYTE(name) byte name = opCall.readByte(); debug(5, "ARG_BYTE(" #name " = %d)", name); 51 #define ARG_INT8(name) int8 name = opCall.readByte(); debug(5, "ARG_INT8(" #name " = %d)", name); 52 #define ARG_INT16(name) int16 name = opCall.readSint16(); debug(5, "ARG_INT16(" #name " = %d)", name); 53 #define ARG_UINT32(name) uint32 name = opCall.readUint32(); debug(5, "ARG_UINT32(" #name " = %08X)", name); 65 SequenceOpcode *_opcodes[DRAGONS_NUM_SEQ_OPCODES];
69 void updateReturn(
OpCall &opCall, uint16 size);
72 void opSetFramePointer(
Actor *actor,
OpCall &opCall);
73 void opSetFramePointerAndStop(
Actor *actor,
OpCall &opCall);
75 void opSetSequenceTimerStartValue(
Actor *actor,
OpCall &opCall);
76 void opSetSequenceTimer(
Actor *actor,
OpCall &opCall);
77 void opUpdateXYResetSeqTimer(
Actor *actor,
OpCall &opCall);
78 void opUpdateXYResetSeqTimerAndStop(
Actor *actor,
OpCall &opCall);
80 void opSetActorFlag4AndStop(
Actor *actor,
OpCall &opCall);
81 void opSetActorFlags404(
Actor *actor,
OpCall &opCall);
82 void opClearActorFlag400(
Actor *actor,
OpCall &opCall);
83 void opChangeSequence(
Actor *actor,
OpCall &opCall);
95 #endif // DRAGONS_SEQUENCEOPCODES_H
Definition: sequenceopcodes.h:35
Definition: sequenceopcodes.h:57
Definition: dragons.h:167