20 slot =
work->placedActors;
24 if (actor->sprite->entries[0]->animId == 0xf2) {
25 s32 dist = FixedPoint_Distance(
30 nearestActor = actorId;
36 sizeof(
work->placedActors[0]));
struct FieldActor * Object_GetById(s32 actor)
Returns an actor, or NULL if it does not exist.
Field objects and actors, and the scene transition styles.
The scene table formats: entrances, exits, placements and events, and the macros that write them.
struct EventWork * gEventWork
s32 SceneActor_FindNearestSlotOfKindF2(void)
Returns the placed actor drawn with sprite 0xf2 nearest the leader, within 640 pixels,...
#define offsetof(type, member)
The running scene's event work: its placement and event tables, its actors, the triggers and exit it ...
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
u16 work
The side of the player's next footprint (2 after a stop), or scene scratch.
The integer types, TRUE, UNUSED and the fixed-address macros.