Alchemy
Loading...
Searching...
No Matches

kolima_grow.h

Go to the documentation of this file.
1/// @file
2/// Kolima, its forest bridge and the forest's tree: an effect (object 26) that
3/// stretches as it travels.
4#include "script.h"
5#include "types.h"
6#include "field_obj.h"
7
8/// An object script call: widen the object by 0x1eb8 (about 0.12) a frame, and
9/// release it once it has reached its destination.
10static s32
12 struct FieldActor *streak = (struct FieldActor *)interpreter;
13 streak->scaleX += 0x1eb8;
14 if (streak->targetX == ACTOR_NO_TARGET &&
15 streak->targetY == ACTOR_NO_TARGET &&
16 streak->targetZ == ACTOR_NO_TARGET) {
18 }
19 return 1;
20}
void Engine_ObjectDispatchRelease(struct FieldActor *object)
Field objects and actors, and the scene transition styles.
#define ACTOR_NO_TARGET
A target coordinate that is not set: the object has no target.
Definition field_obj.h:145
static s32 SceneEffect_AdvanceAngleUntilIdle(struct ScriptInterpreter *interpreter)
An object script call: widen the object by 0x1eb8 (about 0.12) a frame, and release it once it has re...
Definition kolima_grow.h:11
The field object script interpreter and the operands its commands read.
A field actor: a person or thing on the field with a position, motion toward a target,...
Definition field_obj.h:30
s32 targetX
16.16 fixed-point pixels; ACTOR_NO_TARGET when unset
Definition field_obj.h:59
s32 targetZ
16.16 fixed-point pixels; ACTOR_NO_TARGET when unset
Definition field_obj.h:61
s32 targetY
16.16 fixed-point pixels; ACTOR_NO_TARGET when unset
Definition field_obj.h:60
s32 scaleX
16.16 fixed point, 0x10000 full size
Definition field_obj.h:39
The prefix that command handlers read from a field object's 0x70-byte slot.
Definition script.h:16
The integer types, TRUE, UNUSED and the fixed-address macros.
signed int s32
Definition types.h:14