Alchemy
Loading...
Searching...
No Matches

operand.c

Go to the documentation of this file.
1/// @file
2/// Script work values: the handler SC_SET, SC_ADD and SC_CMP call for each.
3
5#include "unit/field/field.h"
6#include "types.h"
7
8/// The handler for each work value number (enum ScriptWork).
10 Script_SetOrCompareAddress, // 0x00 SW_SCRIPT
11 Script_SetOrCompareCursor, // 0x01 SW_CURSOR
15 Script_SetOrCompareX, // 0x05 SW_X
16 Script_SetOrCompareY, // 0x06 SW_Y
17 Script_SetOrCompareZ, // 0x07 SW_Z
18 Script_SetOrCompareRadius, // 0x08 SW_RADIUS
19 Script_SetOrCompareScaleX, // 0x09 SW_SCALE_X
20 Script_SetOrCompareScaleY, // 0x0a SW_SCALE_Y
22 Script_SetOrCompareVelocityX, // 0x0c SW_VELOCITY_X
23 Script_SetOrCompareVelocityY, // 0x0d SW_VELOCITY_Y
24 Script_SetOrCompareVelocityZ, // 0x0e SW_VELOCITY_Z
25 Script_SetOrCompareSpeedLimit, // 0x0f SW_SPEED
26 Script_SetOrCompareAcceleration, // 0x10 SW_ACCEL
27 Script_SetOrCompareTargetX, // 0x11 SW_TARGET_X
28 Script_SetOrCompareTargetY, // 0x12 SW_TARGET_Y
29 Script_SetOrCompareTargetZ, // 0x13 SW_TARGET_Z
30 Script_SetOrCompareVerticalMotion, // 0x14 SW_BOUNCE
31 Script_SetOrCompareGravity, // 0x15 SW_GRAVITY
32 Script_SetOrCompareTerrainHeight, // 0x16 SW_GROUND
36 Script_SetOrCompareMotionFlags, // 0x1a SW_MOTION
37 Script_SetOrCompareArrivalAxis, // 0x1b SW_ARRIVAL
39 Script_SetOrCompareSnapToTarget, // 0x1d SW_SNAP
40 Script_SetOrCompareCollisionFlags, // 0x1e SW_COLLISION
41 Script_SetOrCompareSteeringFlags, // 0x1f SW_STEERING
42 Script_SetOrComparePaused, // 0x20 SW_PAUSED
43 Script_SetOrCompareRepeatCount, // 0x21 SW_REPEAT
44 Script_SetOrCompareHalfword5e, // 0x22 SW_WAIT
51};
const OperandFunc gScript_OperandHandlerTable[41]
The handler for each work value number (enum ScriptWork).
Definition operand.c:9
void(*) OperandFunc(struct ScriptOperands *state, s32 operation, s32 value)
A work value's handler: by operation (enum ScriptOperandOperation in script_commands....
Definition operand.h:11
void Script_SetOrCompareWord68(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareUnsignedHalfword(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareVerticalMotion(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareGravity(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareRadius(struct ScriptOperands *state, s32 operation, s32 value)
Work value SW_RADIUS: sets, adds to or compares the object's radius.
void Script_SetOrCompareSpeedLimit(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareSignedHalfword66(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrComparePaused(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareRepeatCount(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareCollisionFlags(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareComparisonResult(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareCursor(struct ScriptOperands *operands, s32 operation, s32 value)
Work value SW_CURSOR: sets, adds to or compares the script cursor.
void Script_SetOrCompareByte63(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareScaleX(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareAddress50(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareVelocityX(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareArrivalAxis(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareTargetY(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareZ(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareSnapToTarget(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareX(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareScaleY(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareY(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareTargetX(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareHalfword5e(struct ScriptOperands *work, s32 operation, s32 value)
Work value SW_WAIT: sets, adds to or compares the wait counter.
void Script_SetOrCompareByte54(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareWord4c(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareMotionFlags(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareSignedHalfword64(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareVelocityY(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareByte62(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareTerrainHeight(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareVelocityZ(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareTargetZ(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareAcceleration(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareSteeringFlags(struct ScriptOperands *operands, s32 operation, s32 value)
void Script_SetOrCompareAddress(struct ScriptOperands *operands, s32 operation, s32 value)
The work value handlers, one for each entry of enum ScriptWork (see gScript_OperandHandlerTable in op...
void Script_SetOrCompareUpdateAddress(struct ScriptOperands *operands, s32 operation, s32 value)
The integer types, TRUE, UNUSED and the fixed-address macros.