Skip to Content
The Alchemy Project

include/scene/mars_lighthouse_shared.h

What the Mars Lighthouse rooms with flame throwers share: the flag bytes of the crack the leader falls through, and the functions they call.

Included by mars_lighthouse_entrance.c and mars_lighthouse_star_room.c.

Macros

NameDescription
#defineFLAG_BYTE_FALL_COLUMN FLAG_AREA_TEMP(0x40)The metatile the leader fell through, its column and row, a byte of area flags each: scMarsLighthouseEntranceFallThroughCrack keeps them, and the star room below lands him under it.
#defineFLAG_BYTE_FALL_ROW FLAG_AREA_TEMP(0x48)

Functions

NameDescription
Sint32fdMapGetTerrainHeight (Sint32 terrain, Sint32 x, Sint32 z)The ground height of a layer at (x, z), 16.16 pixels (fdMapGridGetTerrainHeight, through the overlay's own import row).
Sint32scFlameThrowerGetFlags (Sint32 index)Flame thrower index's flags: which flame it sends and how far.

Description

What the Mars Lighthouse rooms with flame throwers share: the flag bytes of the crack the leader falls through, and the functions they call.

Macros in detail

FLAG_BYTE_FALL_COLUMN

#define FLAG_BYTE_FALL_COLUMN FLAG_AREA_TEMP(0x40)

The metatile the leader fell through, its column and row, a byte of area flags each: scMarsLighthouseEntranceFallThroughCrack keeps them, and the star room below lands him under it.

Referenced by scMarsLighthouseEntranceFallThroughCrack().

Definition at line 19 of file mars_lighthouse_shared.h.

FLAG_BYTE_FALL_ROW

#define FLAG_BYTE_FALL_ROW FLAG_AREA_TEMP(0x48)

Referenced by scMarsLighthouseEntranceFallThroughCrack().

Definition at line 20 of file mars_lighthouse_shared.h.