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.
#include "fixed_math.h"#include "types.h"#include "flags.h"#include "system.h"#include "game/main_routine_state.h"#include "field/actor.h"#include "field/script_inline.h"#include "field/map_grid.h"
Included by mars_lighthouse_entrance.c and mars_lighthouse_star_room.c.
Macros
| Name | Description | |
|---|---|---|
#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. |
#define | FLAG_BYTE_FALL_ROW FLAG_AREA_TEMP(0x48) |
Functions
| Name | Description | |
|---|---|---|
Sint32 | fdMapGetTerrainHeight (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). |
Sint32 | scFlameThrowerGetFlags (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.