Skip to Content
The Alchemy Project

src/scene/shared/pushed_actor_tables.c

The tables of pushed_actor.c, which every scene with pushed things holds: the metatile ahead for each of sixteen headings, and the six rectangles.

Included by altmiller_cave.c, babi_lighthouse.c, crossbone_isle.c, crossbone_isle_keys.c, crossbone_isle_stepping_stones.c, goma_cave_pillar.c, gondowan_cave.c, kolima_forest_cliff.c, kolima_forest_entrance.c, kolima_forest_glade.c, lunpa_fortress.c, mercury_lighthouse.c, mercury_lighthouse_entrance.c, mogall_forest.c, tunnel_ruins.c, vale.c and vale_cave.c.

Variables

NameDescription
Uint32PushedActorRectangleKinds [] PUSHED_ACTOR_TABLE_SECTIONThe large things that roll, by sprite: a rectangle's row in PushedActorRectangles.
PUSHED_ACTOR_RECTANGLE PushedActorRectangles[]PUSHED_ACTOR_TABLE_SECTIONEach 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.

Description

The tables of pushed_actor.c, which every scene with pushed things holds: the metatile ahead for each of sixteen headings, and the six rectangles.

Variables in detail

PushedActorRectangleKinds

Uint32 PushedActorRectangleKinds[] PUSHED_ACTOR_TABLE_SECTION

The large things that roll, by sprite: a rectangle's row in PushedActorRectangles. Each lies west to east or north to south, the odd rows north to south.

References PUSHED_ACTOR_TABLE_SECTION.

Referenced by scCrossboneIsleSteppingStonesQueryCoveredMetatiles(), scPushedActorBlockFootprint(), scPushedActorFindLargeThingAhead() and scPushedActorStopBlockedMotion().

Definition at line 9 of file pushed_actor_tables.c.

PUSHED_ACTOR_TABLE_SECTION

PUSHED_ACTOR_RECTANGLE PushedActorRectangles[] PUSHED_ACTOR_TABLE_SECTION

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.

References PushedActorRectangles.

Referenced by PushedActorDirectionSteps and PushedActorRectangleKinds.

Definition at line 20 of file pushed_actor_tables.c.