19 i <
sizeof(
work->actors) /
sizeof(
work->actors[0]); i++) {
28 if ((pos->
x >> 20) == (p->
x.
fixed >> 20) &&
29 (pos->
y >> 20) == (p->
y.
fixed >> 20) &&
30 (pos->
z >> 20) == (p->
z.
fixed >> 20)) {
Field objects and actors, and the scene transition styles.
The field's runtime work: map cells, scene records and regions, map markers and FieldWork.
static void * SceneData_FindSlotAtPosition(const struct FieldPosition *position, void *self)
Returns the placed actor (8 to 65) whose cell, and 16-pixel step of height, is that of the 16....
struct EventWork * gEventWork
A field actor: a person or thing on the field with a position, motion toward a target,...
union FieldCoordinate x
16.16 fixed-point pixels
union FieldCoordinate y
16.16 fixed-point pixels
union FieldCoordinate z
16.16 fixed-point pixels
u16 work
The side of the player's next footprint (2 after a stop), or scene scratch.
s32 z
16.16 fixed-point pixels
Full event work allocated by Field_RunScene (heap slot 27).
The integer types, TRUE, UNUSED and the fixed-address macros.
s32 fixed
16.16 fixed-point pixels