Skip to Content
The Alchemy Project

src/scene/shared/push_target_find_ahead.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
ACTOR *scPushTargetFindAhead (Sint32 *direction, Sint32 *slot, Sint32 *kind)Finds the pushable thing in front of the leader among the placed actors: returns it, with its slot, its kind (its row of PushKinds) and the leader's facing in sixteenths of a turn.

Functions in detail

scPushTargetFindAhead

ACTOR *scPushTargetFindAhead(Sint32 *direction, Sint32 *slot, Sint32 *kind)

Finds the pushable thing in front of the leader among the placed actors: returns it, with its slot, its kind (its row of PushKinds) and the leader's facing in sixteenths of a turn. A log, pipe or fallen column is pushed only from its side.

References fdActorGet(), MainRoutineStateWork, PushKinds, PushLeaderSteps, PushRectangles and Sint32.

Referenced by scPushTargetFindStop().

Definition at line 5 of file push_target_find_ahead.c.