src/scene/shared/actor_depth.c
Tunnel Ruins and Venus Lighthouse: blocks the leader can stand beside, behind or on.
Included by tunnel_ruins.c and venus_lighthouse.c.
Functions
| Name | Description | |
|---|---|---|
static UNREAD_RESULT | scActorUpdateBlockDrawOrder (ACTOR *actor) | An update function: draw the block under the actors (ACTOR_PRIORITY_UNDERFOOT) unless the leader is north of it and no higher than its height plus their distance and 4 pixels, that is, behind it rather than on it. |
static void | scActorSwapPositionsByDepth (Sint32 first, Sint32 second) | After Move, puts a pair of pillars back in order, the first south of the second: unless it already is, the two trade places and the game waits a tick. |
Description
Tunnel Ruins and Venus Lighthouse: blocks the leader can stand beside, behind or on.
Functions in detail
scActorUpdateBlockDrawOrder
static UNREAD_RESULT scActorUpdateBlockDrawOrder(ACTOR *actor)
An update function: draw the block under the actors
(ACTOR_PRIORITY_UNDERFOOT) unless the leader is north of it and no higher
than its height plus their distance and 4 pixels, that is, behind it rather
than on it.
References fdActorGetById().
Referenced by scInit().
Definition at line 8 of file actor_depth.c.
scActorSwapPositionsByDepth
static void scActorSwapPositionsByDepth(Sint32 first, Sint32 second)
After Move, puts a pair of pillars back in order, the first south of the second: unless it already is, the two trade places and the game waits a tick. Nothing visible changes, since the pillars of a pair look alike, and the scenes that call it treat the two alike afterwards.
References fdActorGetById(), Sint32 and sySynch().
Referenced by scTunnelRuinsUpdateFirstPillarMetatiles(), scTunnelRuinsUpdateSecondPillarMetatiles() and scVenusLighthouseMoveCappedPillar().
Definition at line 34 of file actor_depth.c.