Skip to Content
The Alchemy Project

src/scene/shared/pushed_actor_direction_steps.c

The metatile ahead of a pushed thing for each of sixteen headings, one metatile (16 pixels) along x or z, which every scene with pushed things holds.

Included by bilibin.c, bilibin_cave.c, colosseum_azart_match.c, colosseum_navampa_match.c, colosseum_satrage_match.c, kalay.c, pushed_actor_tables.c, ship_rooms.c, sol_sanctum_entrance.c, vault_cave.c and venus_lighthouse.c.

Macros

NameDescription
#definePUSHED_ACTOR_TABLE_SECTION __attribute__((section(".rodata")))Each rectangle's left, top, right and bottom edges, in pixels from the thing's position: four metatiles by one, or a pipe's four by one north of it.

Variables

NameDescription
Sint32PushedActorDirectionSteps [] PUSHED_ACTOR_TABLE_SECTIONThe pixel step of each direction, X in the upper halfword and Z in the lower (DIRECTION_STEP); each scene that pushes a large thing includes it (shared/pushed_actor_direction_steps.c).

Description

The metatile ahead of a pushed thing for each of sixteen headings, one metatile (16 pixels) along x or z, which every scene with pushed things holds.

Macros in detail

PUSHED_ACTOR_TABLE_SECTION

#define PUSHED_ACTOR_TABLE_SECTION __attribute__((section(".rodata")))

#define PUSHED_ACTOR_TABLE_SECTION

Referenced by PushedActorDirectionSteps and PushedActorRectangleKinds.

Definition at lines 8 and 10 of file pushed_actor_direction_steps.c.

Variables in detail

PushedActorDirectionSteps

Sint32 PushedActorDirectionSteps[] PUSHED_ACTOR_TABLE_SECTION

The pixel step of each direction, X in the upper halfword and Z in the lower (DIRECTION_STEP); each scene that pushes a large thing includes it (shared/pushed_actor_direction_steps.c).

References PUSHED_ACTOR_TABLE_SECTION and Sint32.

Referenced by scBabiLighthouseFindMetatileAhead(), scBilibinCavePushTorch(), scBilibinPushStatueOrCrates(), scColossoPushActorAhead(), scKalayPushTunnelStatue(), scPushedActorAdvancePair(), scPushedActorFindClearPos(), scPushedActorFindLargeThingAhead(), scPushedActorRoll(), scPushedActorStopBlockedMotion(), scShipRoomsIsSpotFree(), scShipRoomsStepBesideLeader(), scSolSanctumEntrancePushStatue(), scVaultCavePushPillarAhead() and scVenusLighthousePushPillarAhead().

Definition at line 13 of file pushed_actor_direction_steps.c.