Alchemy
Loading...
Searching...
No Matches

operand.h

Go to the documentation of this file.
1#ifndef ALCHEMY_UNIT_FIELD_OPERAND_H
2#define ALCHEMY_UNIT_FIELD_OPERAND_H
3
4#include "types.h"
5
6struct ScriptOperands;
7
8/// A work value's handler: by operation (enum ScriptOperandOperation in
9/// script_commands.c) it sets the object field it names to value, adds value
10/// to it, or stores whether it equals value in conditionResult.
11typedef void (*OperandFunc)(struct ScriptOperands *state, s32 operation,
12 s32 value);
13
15
16#endif
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
The whole 0x70-byte slot as SC_SET, SC_ADD and SC_CMP see it: each field is one work value (enum Scri...
Definition script.h:49
The integer types, TRUE, UNUSED and the fixed-address macros.
signed int s32
Definition types.h:14