src/scene/shared/actor_find_at_metatile.c
Finding the actor that stands in a metatile.
Included by magma_rock.c, magma_rock_inside.c and venus_lighthouse.c.
Functions
| Name | Description | |
|---|---|---|
ACTOR * | scActorFindInMetatile (Sint32 *pos, ACTOR *self) | Returns the first placed actor (ACTOR_FIRST_PLACED up to the treasure spots, FIELD_TREASURE_ACTOR) standing in the same 16-pixel metatile as position (x, y and z), or NULL. |
Description
Finding the actor that stands in a metatile.
Functions in detail
scActorFindInMetatile
ACTOR *scActorFindInMetatile(Sint32 *pos, ACTOR *self)
Returns the first placed actor (ACTOR_FIRST_PLACED up to the treasure spots,
FIELD_TREASURE_ACTOR) standing in the same 16-pixel metatile as position (x,
y and z), or NULL. Callers pass the actor asking; the search does not use it.
References Sint32.
Referenced by scMagmaRockInsideLeapOverLava(), scMagmaRockInsidePushBlockOnto(), scMagmaRockPushPillarEast(), scMagmaRockPushPillarWest() and scPushedActorAdvancePair().
Definition at line 9 of file actor_find_at_metatile.c.