Skip to Content
The Alchemy Project

src/scene/shared/push_target_find_stop.c

Included by eastern_alhafra.c, islets.c, jupiter_lighthouse_left_tower_lower.c, jupiter_lighthouse_side_halls.c and mars_lighthouse_towers.c.

Functions

NameDescription
static inline Sint32scFieldActorCheckMovementCollision (ACTOR *actor, Sint32 *pos)What fdMapGridCheckCollision says of a step to a position (COLLISION), under The Broken Seal's name for it.
BoolscPushTargetFindStop (PUSH_TARGET *target)Finds where the actor ahead stops when pushed: a metatile at a time, the whole of its rectangle (PushRectangles) until a wall blocks it; 1 when it moves at all.

Functions in detail

scFieldActorCheckMovementCollision

static inline Sint32 scFieldActorCheckMovementCollision(ACTOR *actor, Sint32 *pos)

What fdMapGridCheckCollision says of a step to a position (COLLISION), under The Broken Seal's name for it.

References fdMapGridCheckCollision() and Sint32.

Referenced by scPushTargetFindStop() and scYampiDesertCaveFindLogRoll().

Definition at line 3 of file push_target_find_stop.c.

scPushTargetFindStop

Bool scPushTargetFindStop(PUSH_TARGET *target)

Finds where the actor ahead stops when pushed: a metatile at a time, the whole of its rectangle (PushRectangles) until a wall blocks it; 1 when it moves at all.

References PushLeaderSteps, PushRectangles, scFieldActorCheckMovementCollision(), scPushTargetFindAhead() and Sint32.

Referenced by scEasternAlhafraRollLog(), scIsletsPushLogIntoWater(), scJupiterLighthousePushColumn(), scJupiterLighthousePushColumnOffTheLedge(), scMarsLighthouseTowersPushPipe() and scMarsLighthouseTowersPushPipeOrJump().

Definition at line 12 of file push_target_find_stop.c.