src/scene/mars_lighthouse_towers.c
The Mars Lighthouse's four towers, one scene each in this overlay. More…
#include "scene/flame_throwers.h"#include "field/field_engine.h"#include "field/field_effect.h"#include "scene/scene.h"#include "field/script_inline.h"#include "edition.h"#include "macros.h"#include "field/call.h"#include "field/actor_script.h"#include "scene/lighthouse_palettes.h"#include "scene/pushed_actor.h"#include "scene/jupiter_lighthouse_aerie.h"#include "shared/scene_set_arrival_flags.c"#include "shared/palette_cycle_set_pauses_in_scripts.c"#include "shared/palette_cycle_step.c"#include "shared/jupiter_lighthouse_load_palettes.c"#include "shared/actor_raise_from_metatile.c"#include "shared/whirlwind_carry_leader.c"#include "shared/position_flat_distance.c"#include "shared/whirlwind_update.c"#include "shared/whirlwind_spawn.c"#include "shared/actor_emit_smoke_unused.c"#include "shared/jupiter_lighthouse_place_raised_actors.c"#include "shared/actor_is_touching.c"#include "shared/actor_is_beside.c"#include "shared/flame_update_forward.c"#include "shared/actor_reset_scripted_for.c"#include "shared/flame_thrower_send_forward.c"#include "shared/flame_update_sideways.c"#include "shared/actor_setup_scripted_part.c"#include "shared/flame_thrower_send_backward.c"#include "shared/flame_thrower_send_east.c"#include "shared/flame_thrower_send_west.c"#include "shared/actor_is_above.c"#include "shared/flame_thrower_update_spark.c"#include "shared/actor_setup_scripted_for.c"#include "shared/flame_thrower_send_spark.c"#include "shared/flame_throwers_puff.c"#include "shared/flame_throwers_create.c"#include "shared/flame_throwers_release_flame.c"#include "shared/beam_start.c"#include "shared/flame_thrower_is_active.c"#include "shared/flame_thrower_set_active.c"#include "shared/flame_throwers_advance_counter.c"#include "shared/flame_thrower_set.c"#include "shared/flame_thrower_set_puffs_off_screen.c"#include "shared/flame_thrower_get_flags.c"#include "shared/flame_throwers_set_stop.c"#include "shared/party_take_fall_damage.c"#include "shared/field_effect_advance_spin.c"#include "shared/actor_blink.c"#include "shared/leader_knock_back.c"#include "shared/fireball_carry_leader_if_hit.c"#include "shared/actor_scatter_crumbs.c"#include "shared/ice_chips_spawn.c"#include "shared/actor_hold_during_script.c"#include "shared/actor_roll_and_crumble.c"#include "shared/actor_attach.c"#include "shared/actor_launch_ahead.c"#include "shared/actor_pop_up_slow.c"#include "shared/actor_pop_up.c"#include "shared/actor_park.c"#include "shared/actor_set_sprite_priority.c"#include "../field/field_effect_move.c"#include "shared/field_effect_spawn.c"#include "shared/cracked_tile_mask.c"#include "shared/cracked_tile_find.c"#include "shared/leader_center_in_metatile.c"#include "shared/cracked_tile_crack.c"#include "shared/cracked_tile_fall.c"#include "../field/field_effect_advance_motion.c"#include "shared/cracked_tile_drop_in.c"#include "shared/cracked_tile_step.c"#include "shared/cracked_tile_place_landing.c"#include "shared/actor_steer_by_pad.c"#include "shared/leader_stop_if_pending.c"#include "shared/leader_slide_on_ice.c"#include "shared/slide_on_ice_from_edge.c"#include "shared/leader_slide_on_ice_ahead.c"#include "shared/push_target_fill_rectangle.c"#include "shared/push_target_find_stop.c"#include "shared/push_target_find_ahead.c"#include "shared/push_target_push.c"#include "shared/actor_stop_at_push_target.c"#include "shared/light_sprites_draw.c"#include "shared/light_sprites_init_channel_pieces.c"#include "shared/light_sprites_init_path_glows.c"#include "shared/light_sprites_init_energy_block_glow.c"#include "shared/light_sprites_add.c"#include "shared/debris_script.c"#include "shared/mars_lighthouse_part_scripts.c"#include "shared/field_effect_duration_scripts.c"#include "shared/slide_on_ice_angles.c"#include "shared/push_kinds.c"#include "shared/push_leader_steps.c"
Macros
| Name | Description | |
|---|---|---|
#define | OWN_fdMapGridGetMetatileBehavior | This unit declares its own form of fdMapGridGetMetatileBehavior, below. |
#define | FLAG_JUPITER_STATUE_BLOCKS_FLAMES 0xa37 | Move set the white dragon statue under the dragon head. |
#define | FLAG_VENUS_STATUE_PUSHED_OFF_LEDGE 0xa38 | The robed statue dropped off the upper ledge. |
#define | FLAG_ICEBERGS_MELTED 0xa40 | The urn torch's fireball melted the icebergs. |
#define | FLAG_MARS_TORCH_LIT 0xa42 | The button's flame thrower has reached the Mars tower's torch. |
#define | FLAG_CENTER_WALL_CRACKED 0xa43 | |
#define | FLAG_WEST_WALL_BURST 0xa44 | |
#define | FLAG_EAST_WALL_BURST 0xa45 | |
#define | FLAG_CENTER_WALL_BURST 0xa46 | |
#define | FLAG_BUTTON_PRESSED FLAG_SCENE_TEMP(0x20) | The Mars tower's button, and the Mercury tower's two puddles, each held while in that tower. |
#define | FLAG_UPPER_PUDDLE_FROZEN FLAG_SCENE_TEMP(0x20) | |
#define | FLAG_CENTER_PUDDLE_FROZEN FLAG_SCENE_TEMP(0x21) | |
#define | FLAG_PIPELINE_MENDED FLAG_AREA_TEMP(0x50) | The Mercury tower's pipes all in line: no fire bursts from the pipes' ends. |
#define | FLAG_SAW_PIPELINE_MENDED FLAG_AREA_TEMP(0x51) | The camera has been shown the mended pipeline. |
#define | FLAG_BLOCK_DROPPED FLAG_AREA_TEMP(0x58) | |
#define | JUPITER_TOWER_THROUGH_HOLE 16 | The Jupiter tower's exit and entrance by its hole, which drops the party back to the tower's first room. |
#define | MERCURY_TOWER_PIPELINE_MENDED 9 | The Mercury tower's exit back into itself, and the entrance it lands at, once its pipeline is first mended: the tower is loaded afresh and the torch the pipeline feeds flares up. |
#define | STEER_STRAIGHT_ROW 16 | The first of SlideOnIceSteerAngles' second row, which keeps only the four straight headings: the first row has an entry for each of the sixteen combinations of the pad's four direction keys. |
#define | DEFINE_BURST_WALL (name, wallX, upperX, flag) | Defines what Burst does to a cracked wall: it breaks open, drawn from the spare metatiles at x wallX on the ground layer and upperX on the upper layer, row 50, and its flag is set. |
#define | RUBBLE_PIECES 12 | The pieces of wall scMarsLighthouseTowersScatterRubble throws. |
#define | DEFINE_FROST_PUDDLE (name, flag, flameThrower) | Defines what Frost does to a puddle: it freezes and its flag is set; unless the flame thrower flameThrower stands dry, the flame melts it again and the flag is cleared. |
#define | EFFECT_SET_MODE fdActorSelectAnimation | |
#define | EFFECT_SET_SCRIPT fdActorStartScript | |
#define | METATILE_PUSH_SLOT_ENTRY syOAMAddSpriteAtDepthClamped | |
#define | fdCheckSpheresOverlap syImportFieldCheckSpheresOverlap | This room's slides reach fdCheckSpheresOverlap through the overlay's first import of it, syImportFieldCheckSpheresOverlap. |
#define | MARS_LIGHTHOUSE_TOWERS_FILL_GAPS_WITH_STONES 0 |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { MARS_TOWER_FIRST_ROOMS_DOORWAY, MARS_TOWER_PIPE_ROOM_DOORWAY … } | The doorways inside the Mars and Mercury towers between two of their parts: each is an entrance, and the exit of its number goes through it to the other. |
enum | anonymous enum { MERCURY_TOWER_FIRST_ROOM_ARCH, MERCURY_TOWER_DRAGON_HEAD_ROO … } | The Mercury tower's other doorways, paired the same way: the arch of its first room, where the party comes in from the Mercury ledge, with the arch on the east side of the room of the dragon head and the icebergs; and that room's west passage with the arch of its last room, where the way out to the beacon ledge is. |
enum | anonymous enum { CYCLONE_FROM_FIRST_HALL_WEST_CIRCLE, CYCLONE_FROM_CORRIDOR_F … } | The Jupiter tower's Cyclone circles, by the exit each one's whirlwind takes, the number its metatiles carry. |
enum | anonymous enum { JUPITER_TOWER_FIRST_HALL_WEST_CIRCLE, JUPITER_TOWER_CORRIDOR … } | The Jupiter tower's landings from Cyclone's whirlwinds, each where an exit of a Cyclone circle sets the party down: most on the circle that takes it back, the rest in the big room of the white dragon statue. |
enum | anonymous enum { STEP_CUE_HOLE, STEP_CUE_LEDGE, STEP_CUE_WEST_GAP, STEP_CUE_S … } | The step cues the towers' floors carry, each read in its own tower. |
enum | anonymous enum { METATILE_WEST_WALL, METATILE_EAST_WALL, METATILE_CENTER_WALL } | The Mars tower's cracked walls, by the number their metatiles carry for Burst. |
enum | anonymous enum { VENUS_TOWER_HALL_WEST_DOORWAY, VENUS_TOWER_HALL_EAST_DOORWAY … } | The Venus tower's doorways the party comes through from the small rooms between its halls: the west and east doorways of the hall of the flame throwers and stones; the statue hall's west doorway (the upper doorway, whose statue stands aside once moved) and east doorway; the statue hall's south passage, from the lower hall; and the lower hall's doorway in its row of statues (the lower doorway). |
enum | anonymous enum { VENUS_TOWER_WEST_ROOM_ARCH, VENUS_TOWER_EAST_ROOM_ARCH, VENU … } | The Venus tower's two small rooms between its halls, west and east, each with an arch at its north end, where the stairs down from the hall of the flame throwers come out, and a passage at its south end to the statue hall. |
enum | anonymous enum { ACTOR_BUTTON_FLAME_THROWER, ACTOR_MARS_TORCH, ACTOR_UNLIT_MA … } | The Mars tower. |
enum | anonymous enum { ACTOR_MERCURY_PIPE_A, ACTOR_MERCURY_PIPE_B, ACTOR_MERCURY_PI … } | The Mercury tower: three pushable pipes, two puddles for Frost, the unseen points at the pipes' ends where the fire bursts out, the flame thrower Blaze lights, the torch the mended pipeline lights (lit and unlit), and the torch that shoots at the icebergs, with its glint and fireball. |
enum | anonymous enum { MARS_PIPE_A_END, MARS_PIPE_B_END, MARS_PIPE_A_DRAGON_HEAD, M … } | The Mars tower's pipe room's flame throwers, by their rows in MarsLighthouseTowersMarsPipeFlameThrowers: the two pipes' open ends, then the dragon head each pipe feeds once pushed into line. |
enum | anonymous enum { MERCURY_PIPE_END_A, MERCURY_PIPE_END_B, MERCURY_PIPE_END_C, … } | The Mercury tower's flame throwers, by their rows in MarsLighthouseTowersMercuryFlameThrowers: the three open pipe ends the fire can spout from, then the dragon head Blaze lights. |
enum | anonymous enum { ACTOR_JUPITER_FLAME_THROWER_A, ACTOR_JUPITER_FLAME_THROWER_B … } | The Jupiter tower: its flame throwers, the purple block Move drops into the gap, the white dragon statue Move pushes into the flames, and the torch above the great carved dragon, with its glint and fireball. |
enum | anonymous enum { ACTOR_TIGHTROPE_NEAR_POST, ACTOR_TIGHTROPE_FAR_POST, ACTOR_F … } | The Venus tower: the tightrope's posts, the three stones Carry lifts, its flame throwers, the robed stone statue pushed off the ledge, the statues before the two doorways, which stand aside once moved, the five that hide flame throwers, and those three hidden flame throwers. |
Functions
| Name | Description | |
|---|---|---|
Sint32 | fdMapGetTerrainHeight (Sint32 layer, Sint32 x, Sint32 z) | The ground height of a layer at (x, z), 16.16 pixels (fdMapGridGetTerrainHeight, through the overlay's own import row). |
void | scFlameThrowerSet (Sint32 index, Sint32 value) | scFlameThrowerSet, defined below, is called with no prototype in scope. |
Sint32 | scFlameThrowerGetFlags (Sint32 index) | Flame thrower index's flags: which flame it sends and how far. |
Bool | scPushTargetFindStop (PUSH_TARGET *target) | Finds where the actor ahead stops when pushed: a metatile at a time, the whole of its rectangle (PushRectangles) until a wall blocks it; 1 when it moves at all. |
void | scPushTargetPush (PUSH_TARGET target) | The leader pushes the object to its resting place: the metatiles it leaves are floor again and the metatiles it comes to are walls. |
void | scActorSetupScriptedPart (ACTOR *actor, Sint32 priority) | Stops an actor and starts its script, its sprite drawn at priority. |
void | scMarsLighthouseTowersFillGapsWithStones (void) | In every edition but the Japanese: the gaps at metatiles (38, 8) and (43, 8), and (47, 8) for the first stone, are floor wherever a stone fills them. |
void | scMarsLighthouseTowersShootFireballAtWall (void) | The Mars tower's lower urn torch sends its fireball south at the centre wall. |
void | scMarsLighthouseTowersMeltPuddle (Sint32 id) | A thawed puddle is water again. |
void | scLeaderSetSlideStopped (Sint32 value) | Stops the leader's slide on the ice where it is (nonzero), or lets it run. |
void | scFlameThrowersCreate (void) | Clears the flame throwers' state (unless the party keeps its place) and makes the flame whose sprite the crumbs share, keeping its VRAM entry. |
void | scFlameThrowersReleaseFlame (void) | Releases the flame whose picture the crumbs share (scFlameThrowersCreate). |
void | scFlameThrowerSetPuffsOffScreen (Sint32 index, Sint16 value) | Sets whether flame thrower index puffs even off screen. |
void | scCrackedTileDropIn (void) | The leader lands from the cracked floor above in a ring of dust, as in shared/cracked_tile_drop_in.c. |
Bool | scPushTargetFillRectangle (Sint32 id) | Makes the metatiles under a pushable actor solid, by its rectangle: its sprite picks one of the rectangles in PushRectangles, and the metatiles' own behaviors are kept in the map's spare area for when it moves. |
void | scLightSpritesInitPathGlows (void) | Loads the path pieces' glows (FieldPathGlowTiles) into VRAM and starts drawing the lit actors (none yet), small, each at its own priority. |
void | scLightSpritesAdd (Sint32 id, Sint32 value) | Gives actor id a glow: glow is its tick, with LIGHT_SPRITE_MIRRORED to draw it mirrored. |
void | scLightSpritesSetPriority (Sint32 value) | Sets the priority the glow sprites are drawn at. |
void | scMarsLighthouseTowersShootFireballAtIcebergs (void) | The dragon head's flame reaches the Mercury tower's lower urn torch, which sends its fireball south at the icebergs. |
void | scMarsLighthouseTowersDropFireball (void) | The flame reaches the Jupiter tower's urn torch above the great carved dragon, whose fireball drops to the floor below. |
void | scWhirlwindUpdate (ACTOR *self) | A whirlwind's update: it travels forward, catches the leader it reaches and ends off screen or at a wall. |
void | scFieldEffectSpawn (Sint32 x, Sint32 y, Sint32 z, Sint32 velocityX, Sint32 velocityY, Sint32 velocityZ, Uint32 flags, const EFFECT_OPTIONS *options) | Spawns a field effect at x, y, z moving at the velocity given, its type, scale, palette, priority, script, rotation, spin and update chosen by the EFFECT_USE_ flags from the options. |
Bool | fdActorIsTouching (ACTOR *a, ACTOR *b) | 1 when two actors touch. |
Bool | fdActorIsBeside (ACTOR *a, ACTOR *b) | 1 when two actors stand side by side. |
void | scFlameUpdateForward (ACTOR *actor) | A flame's update as it flies along z, slowing, growing and turning as it goes: on reaching the leader where he stands it sets the way he is knocked back, passes under his feet and rises away, and raises the hit cue; on reaching a slot's actor it rises away the same, unless the slot is blocked, which marks the state blocked. |
void | scFlameUpdateSideways (ACTOR *actor) | scFlameUpdateForward for a flame flying east or west: it goes along x, and a leader it reaches is knocked back along x. |
void | scFlameThrowerSendForward (Sint32 *pos, Sint32 speed, Sint32 offScreen) | A flame thrower's flame (FLAME_FORWARD), sent south from pos at speed (scFlameUpdateForward); offScreen keeps its sprite's picture loaded out of sight. |
void | scFlameThrowerSendBackward (Sint32 *pos, Sint32 speed, Sint32 offScreen) | A flame thrower's flame (FLAME_BACKWARD), sent north from pos at speed (scFlameUpdateForward); offScreen keeps its sprite's picture loaded out of sight. |
void | scFlameThrowerSendEast (Sint32 *pos, Sint32 speed, Sint32 offScreen) | A flame thrower's flame (FLAME_EAST), sent east from pos at speed (scFlameUpdateSideways); offScreen keeps its sprite's picture loaded out of sight. |
void | scFlameThrowerSendWest (Sint32 *pos, Sint32 speed, Sint32 offScreen) | A flame thrower's flame (FLAME_WEST), sent west from pos at speed (scFlameUpdateSideways); offScreen keeps its sprite's picture loaded out of sight. |
void | scFlameThrowersPuff (void) | The flame throwers' tick event: every ninth tick each flame thrower in view puffs its flame (forward, back, east or west) or its spark, as its flags say. |
void | gmPartyTakeFallDamage (void) | A flame or a rolling fireball has knocked the leader down: each party member loses FALL_DAMAGE HP and the leader shows the hit; each member it brings down is listed, loses their poison and raises FIELD_RAISED_CUE_PARTY_FELL, as a hazard's damage does. |
void | scLeaderCenterInMetatile (void) | Walks the leader to the middle of the metatile he stands on, as he does before dropping through a cracked tile, sets him there and lowers the camera's point 8 pixels. |
Sint32 | syImportFieldCheckSpheresOverlap (Sint32 *a, Sint32 radiusA, struct POSITION *b, Sint32 radiusB) | 0 when two spheres overlap, else -1 (fdCheckSpheresOverlap, through the overlay's own import row). |
BSS_DATA | ALIGNED (4) | The blend of one turn of the two maps' alternation in the throne room, a step every four ticks: the first map fades up and down, then the second. |
static inline Sint32 | scScriptCheckSpheresOverlap (Sint32 *a, Sint32 radiusA, Sint32 *b, Sint32 radiusB) | Whether two spheres overlap (fdCheckSpheresOverlap), from a script. |
void | fdLeaderStopIfPending (void) | Stops the leader while an action waits. |
void | fdActorSteerByPad (ACTOR *actor) | While the leader slides on ice, turns him toward the held direction, at most a sixteenth of a turn a tick; with none held, or a menu open, he looks around. |
void | scMapGridFillCollisionRectangle (Sint32 layer, Sint32 x, Sint32 z, Uint32 width, Uint32 height, Sint32 collisionCode) | Sets the collision code of a rectangle of one layer's map metatiles. |
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. |
void | scActorStopAtPushTarget (ACTOR *actor) | Stops a pushed thing where it is when an actor stands in the metatile ahead of it, unless that is another pushable thing, or when the map blocks it. |
void | scMarsLighthouseTowersMeltIcebergs (void) | The fireball from the Mercury tower's lower urn torch melts the icebergs in its way, opening the path over the black ice. |
Sint32 | fdMapGridGetMetatileBehavior (Sint32 x, Sint32 z, Sint32 layer) | Declared here as returning an Sint32, as this overlay reads it; the field's definition returns a Uint8. |
const SCENE_ENTRANCE * | scGetEntrances (void) | Where the party can enter: the cave under the spring has its own entrances. |
const SCENE_REGION * | scGetExitRegions (void) | The regions of the rooms whose exits are rectangles: the Chestbeaters' room and the stream room. |
const Uint32 * | scGetExits (void) | The four towers share one exit table. |
Sint32 | scMarsLighthouseTowersSetUpTorch (ACTOR *actor) | A torch's script call: the towers' torches stand without a shadow. |
const ACTOR_PLACE * | scGetActorPlacements (void) | The current tower's actors. |
void | scMarsLighthouseTowersStartBlazeOnTorch (void) | Nothing visible happens yet when Felix casts Blaze at the lit urn torch of the Mars tower or the Mercury tower; the game only makes this cast's jet the faster, longer one (BLAZE_LONG_SPRAY), so that it carries past the torch to the torch or dragon head beyond. |
void | scMarsLighthouseTowersJumpGapOrPushStone (void) | Walking east or west at one of the gaps along the ledge in the Venus tower's first hall (metatiles (37, 8), (39, 8), (42, 8) and (44, 8)), Felix hops across it, unless one of the grey stones stands in his way, which he pushes instead. |
void | scMarsLighthouseTowersJumpGap (void) | Walking west from metatile (38, 11) in the Venus tower's first hall, Felix hops across the gap before him. |
void | scMarsLighthouseTowersPushStoneAlongLedge (void) | Walking into a grey stone on metatile (38, 11) of the Venus tower's first hall, Felix pushes it along the ledge; in every edition but the Japanese it moves only while no other stone stands beyond it. |
void | scMarsLighthouseTowersMoveVenusStatueOffLedge (Sint32 unused, Sint32 id) | Felix Moves the robed statue on the Venus tower's upper ledge: once it reaches the ledge's east end (metatile column 50), it drops off to the floor below, where it stays. |
void | scMarsLighthouseTowersPushVenusStatueOffLedge (void) | Walking east into the robed statue on the Venus tower's upper ledge (from metatile (48, 19)), Felix pushes it; once it reaches the ledge's east end (metatile column 50), it drops off to the floor below, where it stays. |
void | scMarsLighthouseTowersStartMovingStone (Sint32 unused, Sint32 id) | Nothing visible happens as a push or Move of the first grey stone starts; the game frees it from the ground's height so that it can slide over the gaps. |
void | scMarsLighthouseTowersStopMovingStone (Sint32 unused, Sint32 id) | When a push or Move ends, the robed statue drops if it is at the ledge's end, and the first grey stone settles back onto the ground (in every edition but the Japanese, into a gap it fills, which Felix can then walk over). |
void | scMarsLighthouseTowersUncoverFlameThrower (Sint32 unused, Sint32 id) | Felix Moves one of the five trap statues of the Venus tower: as it slides aside, a dragon head that was hidden behind it shows and breathes fire. |
void | scMarsLighthouseTowersCoverFlameThrower (Sint32 unused, Sint32 id) | Moved back to where it stood, a trap statue hides its dragon head again. |
void | scMarsLighthouseTowersRouteFireThroughPipes (void) | Where the two pipes stand decides which of the pipe room's dragon heads breathe fire and which pipe ends spout it. |
void | scMarsLighthouseTowersPushPipe (void) | |
DEFINE_BURST_WALL( | scMarsLighthouseTowersBurstWestWall , 10, 74, FLAG_WEST_WALL_BURST) | Felix casts Burst on the cracked west wall at the start of the Mars tower (metatile (11, 52)): the wall breaks open, and stays broken. |
DEFINE_BURST_WALL( | scMarsLighthouseTowersBurstEastWall , 18, 82, FLAG_EAST_WALL_BURST) | Felix casts Burst on the cracked east wall at the start of the Mars tower (metatile (19, 52)): the wall breaks open, and stays broken. |
DEFINE_BURST_WALL( | scMarsLighthouseTowersBurstCenterWall , 14, 78, FLAG_CENTER_WALL_BURST) | Felix casts Burst on the centre wall at the start of the Mars tower, once the urn torch's fireball has cracked it (metatile (15, 52)): the wall breaks open, and stays broken. |
void | scMarsLighthouseTowersPressButton (void) | Felix steps on the button in the corner of the lava room of the Mars tower (metatile (6, 36)): with a click, the dragon head on the north wall starts sliding east and west along it, breathing fire down at the lava, until its flame lights the urn torch. |
void | scMarsLighthouseTowersLightTorch (void) | The sliding dragon head's flame reaches the unlit urn torch in the Mars tower, which flares up with a whoosh and stays lit from now on. |
void | scMarsLighthouseTowersBlazeTorch (void) | Felix's long Blaze from the lit urn torch in the Mars tower reaches the torch below it, which sends a fireball rolling south toward the centre wall. |
void | scMarsLighthouseTowersScatterRubble (Sint32 id) | Twelve green pieces of wall burst from an actor, fly up and bounce away down over the lava, then flicker out: as the Mars tower's fireball cracks the centre wall (scMarsLighthouseTowersCrackCenterWall). |
void | scMarsLighthouseTowersWatchFireballCrackWall (void) | The camera follows the fireball from the Mars tower's lower torch south to the centre wall and holds there for two seconds. |
void | scMarsLighthouseTowersCrackCenterWall (Sint32 byFireball) | The fireball cracks the Mars tower's centre wall, ready for Burst, with pieces of wall flying, unless Burst has broken it already. |
void | scMarsLighthouseTowersCycloneOnFirstHallWestCircle (void) | Felix casts Cyclone on the west circle of the Jupiter tower's first hall (metatile (3, 57)): a whirlwind lifts the party spinning and sets them down on the circle of the small room at the foot of the long corridor. |
void | scMarsLighthouseTowersCycloneOnCorridorFootCircle (void) | Felix casts Cyclone on the circle of the small room at the foot of the long corridor (metatile (34, 16)): a whirlwind lifts the party spinning and sets them down on the west circle of the first hall. |
void | scMarsLighthouseTowersCycloneOnFirstHallEastCircle (void) | Felix casts Cyclone on the east circle of the Jupiter tower's first hall (metatile (21, 57)): a whirlwind lifts the party spinning and sets them down on the first circle of the narrow room. |
void | scMarsLighthouseTowersCycloneOnNarrowRoomFirstCircle (void) | Felix casts Cyclone on the first circle of the narrow room (metatile (41, 40)): a whirlwind lifts the party spinning and sets them down on the east circle of the first hall. |
void | scMarsLighthouseTowersCycloneOnCorridorHeadEastCircle (void) | Felix casts Cyclone on the east circle at the head of the long corridor (metatile (37, 5)): a whirlwind lifts the party spinning and sets them down in the south-west of the big room of the white dragon statue. |
void | scMarsLighthouseTowersCycloneOnCorridorHeadWestCircle (void) | Felix casts Cyclone on the west circle at the head of the long corridor (metatile (32, 5)): a whirlwind lifts the party spinning and sets them down in the far west of the big room. |
void | scMarsLighthouseTowersCycloneOnBigRoomRaisedCircle (void) | Felix casts Cyclone on the raised circle in the middle of the big room (metatile (18, 24)): a whirlwind lifts the party spinning and sets them down on the first circle of the room with two circles. |
void | scMarsLighthouseTowersCycloneOnTwoCircleRoomFirstCircle (void) | Felix casts Cyclone on the first circle of the room with two circles (metatile (31, 60)): a whirlwind lifts the party spinning and sets them down on the raised circle in the middle of the big room. |
void | scMarsLighthouseTowersCycloneOnTwoCircleRoomSecondCircle (void) | Felix casts Cyclone on the second circle of the room with two circles (metatile (36, 57)): a whirlwind lifts the party spinning and sets them down on a ledge in the north-east of the big room. |
void | scMarsLighthouseTowersCycloneOnBigRoomEastCircle (void) | Felix casts Cyclone on the circle at the east of the big room (metatile (24, 19)): a whirlwind lifts the party spinning and sets them down on the second circle of the narrow room. |
void | scMarsLighthouseTowersCycloneOnNarrowRoomSecondCircle (void) | Felix casts Cyclone on the second circle of the narrow room (metatile (43, 29)): a whirlwind lifts the party spinning and sets them down on the circle at the east of the big room. |
void | scMarsLighthouseTowersCycloneOnBigRoomWestCircle (void) | Felix casts Cyclone on the circle west of the big room's middle (metatile (13, 14)): a whirlwind lifts the party spinning and sets them down on the circle under the great carved dragon. |
void | scMarsLighthouseTowersCycloneOnCarvedDragonCircle (void) | Felix casts Cyclone on the circle under the great carved dragon (metatile (54, 12)): a whirlwind lifts the party spinning and sets them down on the circle west of the big room's middle. |
void | scMarsLighthouseTowersDropBlock (Sint32 unused, Sint32 id) | Felix Moves the purple block in the Jupiter tower: once it reaches metatile column 13 it drops into the gap with a thud, bridging it for good. |
void | scMarsLighthouseTowersMoveJupiterStatueIntoFlames (Sint32 unused, Sint32 id) | Felix Moves the white dragon statue in the Jupiter tower's big room: once it stands at metatile column 7, under the dragon head, it blocks the flames, and stays there. |
void | scMarsLighthouseTowersRevealSteppingStones (void) | While Felix's Reveal lasts in the Jupiter tower, the hidden stepping stones show, the secret way east. |
void | scMarsLighthouseTowersHideSteppingStones (void) | As Reveal fades, the Jupiter tower's stepping stones are hidden again. |
void | scMarsLighthouseTowersFallIntoHole (void) | Felix steps into the hole in the floor of the room under the great carved dragon in the Jupiter tower (metatiles (52, 19) to (56, 22)): he raises his arms, sinks out of sight with a puff of dust, and drops back to the tower's first hall. |
void | scMarsLighthouseTowersRouteFireThroughPipeline (void) | Where the Mercury tower's three pipes stand decides which open pipe end spouts fire; with all three in line none does, and the first time that happens the camera pans north to show the pipeline mended and the tower is loaded afresh. |
void | scMarsLighthouseTowersLightFlameThrower (void) | Felix's long Blaze from the lit urn torch in the Mercury tower reaches the dragon head beyond it, which starts breathing fire, and the camera begins to move south. |
void | scMarsLighthouseTowersWatchFlameThrower (void) | The camera follows the Mercury tower's newly lit dragon head's flame south toward the urn torch by the icebergs. |
void | scMarsLighthouseTowersPushPipeOrJump (void) | Walking into one of the three pipes of the Mercury tower's pipe room (the metatiles round them, about (34, 7) to (40, 10)), Felix pushes it along; a frozen puddle the fire now reaches melts back into water. |
void | scLeaderSlideOnIceFromEdge (void) | The leader slides over ice from the metatile they stand on: from its centre in the direction the pad holds, or else from its edge toward the centre, then metatile by metatile until a wall, a raised metatile or another actor stops them. |
void | scMarsLighthouseTowersFreezePuddle (Sint32 id) | Frost turns a puddle into a pillar of ice that blocks the fire's way. |
DEFINE_FROST_PUDDLE( | scMarsLighthouseTowersFrostUpperPuddle , FLAG_UPPER_PUDDLE_FROZEN, MERCURY_PIPE_END_C) | Felix casts Frost on the upper right puddle of the Mercury tower's pipe room: it rises into a pillar of ice, unless fire is spouting onto it, which melts it at once. |
DEFINE_FROST_PUDDLE( | scMarsLighthouseTowersFrostCenterPuddle , FLAG_CENTER_PUDDLE_FROZEN, MERCURY_PIPE_END_A) | Felix casts Frost on the centre puddle of the Mercury tower's pipe room: it rises into a pillar of ice, unless fire is spouting onto it, which melts it at once. |
void | scMarsLighthouseTowersSlideFromEdge (void) | Unused: slides on from the edge of the ice, then carries on while hit. |
const CUE * | scGetCues (void) | The current tower's cues. |
void | scMarsLighthouseTowersStopSlideWhileHit (void) | Each tick in the Mercury tower: a hit by the flames stops Felix's slide. |
Sint32 | scInit (void) | Sets up the tower being entered: the flame throwers of the part of it entered, and what the flags have changed (lit torches, broken walls, pipes in line, puddles frozen, the dropped block, statues in the flames). |
Sint32 | scPrepareMap (void) | Once Briggs is caught the pool has dried up: its colours take the dry ground's. |
static inline void | scPaletteCycleSetTick (Sint32 value) | Sets the palette cycle's tick (PaletteCycleTick). |
void | scFlameThrowerUpdateSpark (ACTOR *actor) | A flame thrower's spark in flight: it drifts on, slowing, growing and spinning; just over the leader's head it stops going on and rises away. |
void | scActorSetupScriptedFor (ACTOR *actor, Sint32 unused) | Readies a flame thrower's spark (FLAME_SPARK): it stops, shadowless and tinted SPRITE_COLOR_RED_TINT, and breaks up (the dust cloud's animation 2) without spinning or growing until ScriptedPartScript releases it, half a second on. |
void | scFlameThrowersSetMode (Sint16 runsDuringPsynergy) | Sets whether the flame throwers keep puffing while Psynergy is used. |
Sint32 | scFlameThrowersGetCounter (void) | The flame throwers' counter, which scFlameThrowersAdvanceCounter steps. |
void | scMarsLighthouseTowersKnockBackIfHit (void) | Hit by the flames, Felix is knocked back. |
Sint32 | scFireballCarryLeader (void) | A rolling fireball hits Felix in the Jupiter tower: the party takes damage, and he sits blinking on the fireball and is carried along with it until it stops. |
Sint32 | scFlameThrowersHasHitLeader (void) | Whether Felix has been hit by the flames. |
void | scActorScatterCrumbs (ACTOR *actor) | A fireball crumbling away throws off a crumb, a small flame drawn with the kept flame's tiles, that bounces off in a random direction and flickers out (the includer's CrumbsScript): as the Mars tower's fireball crashes on the centre wall, it shrinks away in a spray of little flames. |
void | scIceChipsSpawn (Sint32 x, Sint32 y, Sint32 z, Sint32 speed) | Two chips of ice fly up from a metatile the rolling fireball breaks and bounce away for 20 ticks, then flicker 20 more and are gone (IceChipsScript): SPRITE_WIND_STONE's picture of glowing orbs, painted SPRITE_COLOR_GRB, so pale cyan and blue. |
void | scActorHoldDuringScript (ACTOR *actor) | Holds the actor still while the field engine is handling requests. |
void | scActorRollAndCrumble (ACTOR *actor) | A fireball rolls forward, breaking the ice in the metatiles around it, and carries the leader along if it hits him. |
void | syGameFlagSetByte (Sint32 flag, Sint32 value) | Sets the whole byte flags is in. |
static inline Sint32 | scPushTargetCheckCollision (ACTOR *actor, Sint32 *pos) | Whether an actor at a position would collide with the map (fdMapGridCheckCollision). |
Variables
| Name | Description | |
|---|---|---|
extern Sint16 | SlideOnIceSteerAngles [] | The heading fdActorSteerByPad turns toward, diagonals included; a second row of sixteen keeps only the four straight headings. |
extern Uint32 | MarsLighthouseTowersMercuryFlameThrowerRoute [] | |
Sint32 | WhirlwindRiding | The state of the code every Jupiter Lighthouse room's overlay keeps its own copy of: a whirlwind's ride (shared/whirlwind_*.c), the palette cycle (shared/palette_cycle_step.c), the lit actors' sprites (shared/light_sprites_*.c) and the cracked tiles (shared/cracked_tile_*.c). |
Uint16 | PaletteCycleColors [16] | A copy of the room's cycling palette, BG palette CYCLE_PALETTE, which the cycle takes its colours from (scJupiterLighthouseLoadPalettes). |
Uint16 | PaletteCycleUnlitPalette [2] | Palette 13's first two colours; it is copied whole, with the unlit colours after them. |
Uint16 | PaletteCycleUnlitColors [14] | |
METATILE_TARGET | CrackedTiles | The cracked floors' metatiles, found by shared/cracked_tile_find.c. |
volatile Sint16 | SlideOnIceStopped | |
Sint16 | LightSpriteTile | The glows drawn over the symbol blocks (scLightSpritesDraw): the VRAM cache entry of their tiles, how many actors carry one and which, their sprites, the large mode, the priority (-1 for each actor's own) and the picture row. |
Sint16 | LightSpriteCount | |
LIGHT_OAM | LightSpriteOams [16] | |
Sint16 | LightSpritesLarge | |
Sint16 | LightSpritePriority | |
extern ACTOR_PLACE | MarsLighthouseTowersPlacements [] | |
extern ACTOR_PLACE | MarsLighthouseTowersVenusTowerPlacements [] | Each tower's actors, in its enum's order. |
extern ACTOR_PLACE | MarsLighthouseTowersMarsTowerPlacements [] | |
extern ACTOR_PLACE | MarsLighthouseTowersJupiterTowerPlacements [] | |
extern ACTOR_PLACE | MarsLighthouseTowersMercuryTowerPlacements [] | |
extern Sint16 | MarsLighthouseTowersStatueFlameThrowers [] | The flame thrower each of the Venus tower's five trap statues hides. |
extern Uint32 | DebrisScript [] | A piece of debris flies for 40 ticks, then blinks ten times and is gone. |
extern Uint32 | MarsLighthouseTowersLateRubbleScript [] | As DebrisScript, two ticks later. |
extern CUE | MarsLighthouseTowersCues [] | |
extern CUE | MarsLighthouseTowersVenusTowerCues [] | Each tower's cues. |
extern CUE | MarsLighthouseTowersMarsTowerCues [] | |
extern CUE | MarsLighthouseTowersJupiterTowerCues [] | |
extern CUE | MarsLighthouseTowersMercuryTowerCues [] | |
extern Uint16 | MarsLighthouseTowersMarsButtonFlameThrowers [] | Each part of the towers' flame throwers for scFlameThrowersStart, each with its flame's kind and reach, and the actors their flames stop at, 1 where reaching it calls the function scFlameThrowersStart is given. |
extern Uint16 | MarsLighthouseTowersMarsButtonFlameStops [] | |
extern Uint16 | MarsLighthouseTowersMarsPipeFlameThrowers [] | |
extern Uint16 | MarsLighthouseTowersMarsPipeFlameStops [] | |
extern Uint16 | MarsLighthouseTowersMercuryFlameThrowers [] | |
extern Uint16 | MarsLighthouseTowersMercuryFlameStops [] | |
extern Uint16 | MarsLighthouseTowersJupiterUpperFlameThrowers [] | |
extern Uint16 | MarsLighthouseTowersJupiterUpperFlameStops [] | |
extern Uint16 | MarsLighthouseTowersJupiterFlameThrowers [] | |
extern Uint16 | MarsLighthouseTowersJupiterFlameStops [] | |
extern Uint16 | MarsLighthouseTowersVenusFlameThrowers [] | |
extern Uint16 | MarsLighthouseTowersVenusFlameStops [] | |
extern Uint16 | MarsLighthouseTowersVenusStatueFlameThrowers [] | |
extern Uint16 | MarsLighthouseTowersVenusStatueFlameStops [] | |
extern Sint32 | MarsLighthouseTowersFireballToWall [] | The fireballs' scripts: each pops up off its torch and drops just ahead of it. |
extern Sint32 | MarsLighthouseTowersFireballToIcebergs [] | |
extern Sint32 | MarsLighthouseTowersFireballDrop [] | |
extern Sint32 | PaletteCyclePausesInScripts | |
extern Sint32 | PaletteCycleTick | The palette cycle's tick, -1 before it starts, and whether scripts hold it (fdPaletteCycleStep). |
extern Sint32 | WhirlwindEndScript [] | |
extern Sint32 | ScriptedPartScript [] | A scripted part waits half a second, is placed at 0, 0, 0 and released. |
extern Uint32 | CrumbsScript [] | A crumb (scActorScatterCrumbs) waits 20 ticks, flickers for ten pairs of ticks and is released. |
extern Uint32 | IceChipsScript [] | An ice chip (scIceChipsSpawn) does the same. |
extern const Sint32 * | FieldEffectDurationScripts [] | The field effects' three scripts by how long an effect lasts: short, medium and long. |
extern Sint16 | SlideOnIceAnglesByKey [] | The heading a slide sets off in: a diagonal goes the way of its left or right key. |
extern Uint16 | PushKinds [PUSH_KINDS] | The sprites of the things pushed: a log, a pipe and a fallen column, each lying west to east and north to south. |
extern Sint8 | PushRectangles [][4] | Each kind's rectangle: its corners from the actor, x and z in pixels (scPushTargetFillRectangle). |
extern Sint32 | PushLeaderSteps [] | One metatile along each facing's nearest direction (PUSH_STEP). |
Sint32 | MarsLighthouseTowersTorchScript [] | The towers' torches' script. |
Sint32 | MarsLighthouseTowersVenusEastFlameThrowerRoute [] | The Venus tower's moving flame throwers: each slides east and west along the wall, pausing at each end. |
Sint32 | MarsLighthouseTowersVenusWestFlameThrowerRoute [] | |
Sint32 | MarsLighthouseTowersButtonFlameThrowerRoute [] | The Mars tower's button flame thrower: raised on the wall, it waits for the button (FLAG_BUTTON_PRESSED), then slides east and west for good. |
Sint32 | MarsLighthouseTowersJupiterWestFlameThrowerRoute [] | The Jupiter tower's moving flame throwers, each back and forth along its wall; the east one also rises and drops. |
Sint32 | MarsLighthouseTowersJupiterEastFlameThrowerRoute [] | |
Sint32 | MarsLighthouseTowersJupiterLowerFlameThrowerSetUp [] | The Jupiter tower's flame thrower that stays put, raised on its wall. |
Sint32 | MarsLighthouseTowersJupiterFarFlameThrowerRoute [] | |
LATE_DATA SCENE_ENTRANCE | SceneEntrances [] | Besides the party's return to the pier after the ship is stolen, four unused spots about the mast: below the huge block, on the dock by its crate, on the deck, and at the top of the sail's east pole. |
LATE_DATA Uint32 | SceneExits [] | The room has no exits of its own. |
LATE_DATA | Sint32 | The tick counts of the four red moai's streams' cycles (scAquaRockTimeStreams). |
Description
The Mars Lighthouse's four towers, one scene each in this overlay. Each is reached from the central hall by its ledge in the rain and comes out on the beacon ledge where its element's flame is lit. Every tower has white dragon heads on its walls whose flames knock Felix back, and white urn torches that, once fire reaches them, send a fireball rolling.
The Mars tower: Burst breaks its cracked walls. Stepping on a button in the lava sets a dragon head sliding along the north wall until its flame lights an urn torch; Blaze at that torch carries on to the one below, whose fireball cracks the centre wall for Burst. In its pipe room, pipes pushed into line turn the fire from one dragon head to another until the way is clear.
The Mercury tower: across black ice, frozen puddles and pushed pipes mend the pipeline until no fire bursts from the pipes' ends; then Blaze lights a dragon head whose flame reaches an urn torch, and its fireball melts the icebergs.
The Jupiter tower: Cyclone on its circles lifts the party from room to room, Move drops a block to bridge a gap and pushes a white dragon statue into the flames of the big room, Reveal shows stepping stones, and a hole drops the party back to the first hall.
The Venus tower: gaps jumped and filled with stones Carry lifts, a robed statue pushed off a ledge, a tightrope, and statues that hide dragon heads or the way on.
Macros in detail
OWN_fdMapGridGetMetatileBehavior
#define OWN_fdMapGridGetMetatileBehavior
This unit declares its own form of fdMapGridGetMetatileBehavior, below.
Definition at line 28 of file mars_lighthouse_towers.c.
FLAG_JUPITER_STATUE_BLOCKS_FLAMES
#define FLAG_JUPITER_STATUE_BLOCKS_FLAMES 0xa37
Move set the white dragon statue under the dragon head.
Referenced by MarsLighthouseTowersJupiterTowerCues, scInit() and scMarsLighthouseTowersMoveJupiterStatueIntoFlames().
Definition at line 44 of file mars_lighthouse_towers.c.
FLAG_VENUS_STATUE_PUSHED_OFF_LEDGE
#define FLAG_VENUS_STATUE_PUSHED_OFF_LEDGE 0xa38
The robed statue dropped off the upper ledge.
Referenced by MarsLighthouseTowersVenusTowerCues, scInit(), scMarsLighthouseTowersMoveVenusStatueOffLedge() and scMarsLighthouseTowersPushVenusStatueOffLedge().
Definition at line 46 of file mars_lighthouse_towers.c.
FLAG_ICEBERGS_MELTED
#define FLAG_ICEBERGS_MELTED 0xa40
The urn torch's fireball melted the icebergs.
Referenced by scInit() and scMarsLighthouseTowersMeltIcebergs().
Definition at line 48 of file mars_lighthouse_towers.c.
FLAG_MARS_TORCH_LIT
#define FLAG_MARS_TORCH_LIT 0xa42
The button's flame thrower has reached the Mars tower's torch.
Referenced by scInit() and scMarsLighthouseTowersLightTorch().
Definition at line 50 of file mars_lighthouse_towers.c.
FLAG_CENTER_WALL_CRACKED
#define FLAG_CENTER_WALL_CRACKED 0xa43
Referenced by scInit() and scMarsLighthouseTowersCrackCenterWall().
Definition at line 51 of file mars_lighthouse_towers.c.
FLAG_WEST_WALL_BURST
#define FLAG_WEST_WALL_BURST 0xa44
Referenced by MarsLighthouseTowersMarsTowerCues and scInit().
Definition at line 52 of file mars_lighthouse_towers.c.
FLAG_EAST_WALL_BURST
#define FLAG_EAST_WALL_BURST 0xa45
Referenced by MarsLighthouseTowersMarsTowerCues and scInit().
Definition at line 53 of file mars_lighthouse_towers.c.
FLAG_CENTER_WALL_BURST
#define FLAG_CENTER_WALL_BURST 0xa46
Referenced by MarsLighthouseTowersMarsTowerCues, scInit() and scMarsLighthouseTowersCrackCenterWall().
Definition at line 54 of file mars_lighthouse_towers.c.
FLAG_BUTTON_PRESSED
#define FLAG_BUTTON_PRESSED FLAG_SCENE_TEMP(0x20)
The Mars tower's button, and the Mercury tower's two puddles, each held while in that tower.
Referenced by MarsLighthouseTowersButtonFlameThrowerRoute, MarsLighthouseTowersMarsTowerCues and scMarsLighthouseTowersPressButton().
Definition at line 57 of file mars_lighthouse_towers.c.
FLAG_UPPER_PUDDLE_FROZEN
#define FLAG_UPPER_PUDDLE_FROZEN FLAG_SCENE_TEMP(0x20)
Referenced by MarsLighthouseTowersMercuryTowerCues, scInit() and scMarsLighthouseTowersPushPipeOrJump().
Definition at line 58 of file mars_lighthouse_towers.c.
FLAG_CENTER_PUDDLE_FROZEN
#define FLAG_CENTER_PUDDLE_FROZEN FLAG_SCENE_TEMP(0x21)
Referenced by MarsLighthouseTowersMercuryTowerCues, scInit() and scMarsLighthouseTowersPushPipeOrJump().
Definition at line 59 of file mars_lighthouse_towers.c.
FLAG_PIPELINE_MENDED
#define FLAG_PIPELINE_MENDED FLAG_AREA_TEMP(0x50)
The Mercury tower's pipes all in line: no fire bursts from the pipes' ends.
Referenced by scInit() and scMarsLighthouseTowersRouteFireThroughPipeline().
Definition at line 61 of file mars_lighthouse_towers.c.
FLAG_SAW_PIPELINE_MENDED
#define FLAG_SAW_PIPELINE_MENDED FLAG_AREA_TEMP(0x51)
The camera has been shown the mended pipeline.
Referenced by scInit() and scMarsLighthouseTowersRouteFireThroughPipeline().
Definition at line 63 of file mars_lighthouse_towers.c.
FLAG_BLOCK_DROPPED
#define FLAG_BLOCK_DROPPED FLAG_AREA_TEMP(0x58)
Referenced by MarsLighthouseTowersJupiterTowerCues, scInit() and scMarsLighthouseTowersDropBlock().
Definition at line 64 of file mars_lighthouse_towers.c.
JUPITER_TOWER_THROUGH_HOLE
#define JUPITER_TOWER_THROUGH_HOLE 16
The Jupiter tower's exit and entrance by its hole, which drops the party back to the tower's first room.
Referenced by MarsLighthouseTowersJupiterTowerCues, SceneExits, scInit() and scMarsLighthouseTowersFallIntoHole().
Definition at line 68 of file mars_lighthouse_towers.c.
MERCURY_TOWER_PIPELINE_MENDED
#define MERCURY_TOWER_PIPELINE_MENDED 9
The Mercury tower's exit back into itself, and the entrance it lands at, once its pipeline is first mended: the tower is loaded afresh and the torch the pipeline feeds flares up.
Referenced by SceneExits, scInit() and scMarsLighthouseTowersRouteFireThroughPipeline().
Definition at line 73 of file mars_lighthouse_towers.c.
STEER_STRAIGHT_ROW
#define STEER_STRAIGHT_ROW 16
The first of SlideOnIceSteerAngles' second row, which keeps only the four
straight headings: the first row has an entry for each of the sixteen
combinations of the pad's four direction keys.
Referenced by scMarsLighthouseTowersPushPipeOrJump().
Definition at line 336 of file mars_lighthouse_towers.c.
DEFINE_BURST_WALL
#define DEFINE_BURST_WALL(name, wallX, upperX, flag)
Defines what Burst does to a cracked wall: it breaks open, drawn from the spare metatiles at x wallX on the ground layer and upperX on the upper layer, row 50, and its flag is set.
Definition at line 758 of file mars_lighthouse_towers.c.
RUBBLE_PIECES
#define RUBBLE_PIECES 12
The pieces of wall scMarsLighthouseTowersScatterRubble throws.
Referenced by scMarsLighthouseTowersScatterRubble().
Definition at line 825 of file mars_lighthouse_towers.c.
DEFINE_FROST_PUDDLE
#define DEFINE_FROST_PUDDLE(name, flag, flameThrower)
Defines what Frost does to a puddle: it freezes and its flag is set; unless the flame thrower flameThrower stands dry, the flame melts it again and the flag is cleared.
Definition at line 1288 of file mars_lighthouse_towers.c.
EFFECT_SET_MODE
#define EFFECT_SET_MODE fdActorSelectAnimation
Referenced by EFFECT_SPAWN.
Definition at line 1860 of file mars_lighthouse_towers.c.
EFFECT_SET_SCRIPT
#define EFFECT_SET_SCRIPT fdActorStartScript
Referenced by EFFECT_SPAWN.
Definition at line 1861 of file mars_lighthouse_towers.c.
METATILE_PUSH_SLOT_ENTRY
#define METATILE_PUSH_SLOT_ENTRY syOAMAddSpriteAtDepthClamped
Referenced by scCrackedTileUpdate().
Definition at line 1867 of file mars_lighthouse_towers.c.
fdCheckSpheresOverlap
#define fdCheckSpheresOverlap syImportFieldCheckSpheresOverlap
This room's slides reach fdCheckSpheresOverlap through the overlay's first
import of it, syImportFieldCheckSpheresOverlap.
Referenced by fdActorFlyOnWorldMap(), fdActorSailOnMap(), fdActorScriptCheckOverlap(), fdActorScriptFindOverlappingActor(), fdActorUpdateHoverControl(), fdActorUpdatePlayerControl(), fdActorUpdateWalkingControl() and scScriptCheckSpheresOverlap().
Definition at line 1893 of file mars_lighthouse_towers.c.
MARS_LIGHTHOUSE_TOWERS_FILL_GAPS_WITH_STONES
#define MARS_LIGHTHOUSE_TOWERS_FILL_GAPS_WITH_STONES 0
#define MARS_LIGHTHOUSE_TOWERS_FILL_GAPS_WITH_STONES
Referenced by MarsLighthouseTowersVenusTowerCues.
Definition at lines 2249 and 2251 of file mars_lighthouse_towers.c.
Enumerations in detail
anonymous enum
enum { MARS_TOWER_FIRST_ROOMS_DOORWAY, MARS_TOWER_PIPE_ROOM_DOORWAY, MERCURY_TOWER_PIPE_HALL_DOORWAY, MERCURY_TOWER_DRAGON_HEAD_ROOM_DOORWAY }
The doorways inside the Mars and Mercury towers between two of their parts: each is an entrance, and the exit of its number goes through it to the other. The Mars tower's join its first rooms, by the lava and the button, to its pipe room; the Mercury tower's join its hall of pipes to the room of the dragon head Blaze lights.
| Enumerator | Value | Description |
|---|---|---|
MARS_TOWER_FIRST_ROOMS_DOORWAY | 2 | |
MARS_TOWER_PIPE_ROOM_DOORWAY | 3 | |
MERCURY_TOWER_PIPE_HALL_DOORWAY | 2 | |
MERCURY_TOWER_DRAGON_HEAD_ROOM_DOORWAY | 3 |
Definition at line 80 of file mars_lighthouse_towers.c.
anonymous enum
enum { MERCURY_TOWER_FIRST_ROOM_ARCH, MERCURY_TOWER_DRAGON_HEAD_ROOM_EAST_ARCH, MERCURY_TOWER_DRAGON_HEAD_ROOM_WEST_PASSAGE, MERCURY_TOWER_LAST_ROOM_ARCH }
The Mercury tower's other doorways, paired the same way: the arch of its first room, where the party comes in from the Mercury ledge, with the arch on the east side of the room of the dragon head and the icebergs; and that room's west passage with the arch of its last room, where the way out to the beacon ledge is.
| Enumerator | Value | Description |
|---|---|---|
MERCURY_TOWER_FIRST_ROOM_ARCH | 4 | |
MERCURY_TOWER_DRAGON_HEAD_ROOM_EAST_ARCH | 5 | |
MERCURY_TOWER_DRAGON_HEAD_ROOM_WEST_PASSAGE | 6 | |
MERCURY_TOWER_LAST_ROOM_ARCH | 7 |
Definition at line 93 of file mars_lighthouse_towers.c.
anonymous enum
enum { CYCLONE_FROM_FIRST_HALL_WEST_CIRCLE, CYCLONE_FROM_CORRIDOR_FOOT_CIRCLE, CYCLONE_FROM_FIRST_HALL_EAST_CIRCLE, CYCLONE_FROM_NARROW_ROOM_FIRST_CIRCLE, … }
The Jupiter tower's Cyclone circles, by the exit each one's whirlwind takes, the number its metatiles carry. A circle the party also lands on shares its number with that landing (below).
| Enumerator | Value | Description |
|---|---|---|
CYCLONE_FROM_FIRST_HALL_WEST_CIRCLE | 2 | |
CYCLONE_FROM_CORRIDOR_FOOT_CIRCLE | 3 | |
CYCLONE_FROM_FIRST_HALL_EAST_CIRCLE | 4 | |
CYCLONE_FROM_NARROW_ROOM_FIRST_CIRCLE | 5 | |
CYCLONE_FROM_CORRIDOR_HEAD_EAST_CIRCLE | 6 | |
CYCLONE_FROM_CORRIDOR_HEAD_WEST_CIRCLE | 7 | |
CYCLONE_FROM_BIG_ROOM_RAISED_CIRCLE | 8 | |
CYCLONE_FROM_TWO_CIRCLE_ROOM_FIRST_CIRCLE | 9 | |
CYCLONE_FROM_TWO_CIRCLE_ROOM_SECOND_CIRCLE | 10 | |
CYCLONE_FROM_BIG_ROOM_EAST_CIRCLE | 11 | |
CYCLONE_FROM_NARROW_ROOM_SECOND_CIRCLE | 12 | |
CYCLONE_FROM_BIG_ROOM_WEST_CIRCLE | 13 | |
CYCLONE_FROM_CARVED_DRAGON_CIRCLE | 14 |
Definition at line 104 of file mars_lighthouse_towers.c.
anonymous enum
enum { JUPITER_TOWER_FIRST_HALL_WEST_CIRCLE, JUPITER_TOWER_CORRIDOR_FOOT_CIRCLE, JUPITER_TOWER_FIRST_HALL_EAST_CIRCLE, JUPITER_TOWER_NARROW_ROOM_FIRST_CIRCLE, … }
The Jupiter tower's landings from Cyclone's whirlwinds, each where an exit of a Cyclone circle sets the party down: most on the circle that takes it back, the rest in the big room of the white dragon statue.
| Enumerator | Value | Description |
|---|---|---|
JUPITER_TOWER_FIRST_HALL_WEST_CIRCLE | 2 | |
JUPITER_TOWER_CORRIDOR_FOOT_CIRCLE | 3 | |
JUPITER_TOWER_FIRST_HALL_EAST_CIRCLE | 4 | |
JUPITER_TOWER_NARROW_ROOM_FIRST_CIRCLE | 5 | |
JUPITER_TOWER_BIG_ROOM_SOUTHWEST | 6 | |
JUPITER_TOWER_BIG_ROOM_FAR_WEST | 7 | |
JUPITER_TOWER_BIG_ROOM_RAISED_CIRCLE | 8 | |
JUPITER_TOWER_TWO_CIRCLE_ROOM_FIRST_CIRCLE | 9 | |
JUPITER_TOWER_BIG_ROOM_NORTHEAST_LEDGE | 10 | |
JUPITER_TOWER_BIG_ROOM_EAST_CIRCLE | 11 | |
JUPITER_TOWER_NARROW_ROOM_SECOND_CIRCLE | 12 | |
JUPITER_TOWER_BIG_ROOM_WEST_CIRCLE | 13 | |
JUPITER_TOWER_CARVED_DRAGON_CIRCLE | 14 |
Definition at line 124 of file mars_lighthouse_towers.c.
anonymous enum
enum { STEP_CUE_HOLE, STEP_CUE_LEDGE, STEP_CUE_WEST_GAP, STEP_CUE_STATUE_LEDGE, … }
The step cues the towers' floors carry, each read in its own tower.
| Enumerator | Value | Description |
|---|---|---|
STEP_CUE_HOLE | 20 | The Jupiter tower's hole under the great carved dragon. |
STEP_CUE_LEDGE | 30 | The Venus tower's ledge, where gaps are hopped or grey stones pushed; the gap Felix hops walking west from (38, 11); and the upper ledge before the robed statue. |
STEP_CUE_WEST_GAP | 31 | |
STEP_CUE_STATUE_LEDGE | 33 | |
STEP_CUE_MARS_PIPES | 30 | The Mars tower's floor round its two pipes, |
STEP_CUE_BUTTON | 33 | and its button in the lava room. |
STEP_CUE_BLACK_ICE | 30 | The Mercury tower's black ice, and its floor |
STEP_CUE_MERCURY_PIPES | 33 | round its three pipes. |
Definition at line 142 of file mars_lighthouse_towers.c.
anonymous enum
enum { METATILE_WEST_WALL, METATILE_EAST_WALL, METATILE_CENTER_WALL }
The Mars tower's cracked walls, by the number their metatiles carry for Burst.
| Enumerator | Value | Description |
|---|---|---|
METATILE_WEST_WALL | 20 | |
METATILE_EAST_WALL | ||
METATILE_CENTER_WALL |
Definition at line 162 of file mars_lighthouse_towers.c.
anonymous enum
enum { VENUS_TOWER_HALL_WEST_DOORWAY, VENUS_TOWER_HALL_EAST_DOORWAY, VENUS_TOWER_UPPER_DOORWAY, VENUS_TOWER_STATUE_HALL_EAST_DOORWAY, … }
The Venus tower's doorways the party comes through from the small rooms between its halls: the west and east doorways of the hall of the flame throwers and stones; the statue hall's west doorway (the upper doorway, whose statue stands aside once moved) and east doorway; the statue hall's south passage, from the lower hall; and the lower hall's doorway in its row of statues (the lower doorway).
| Enumerator | Value | Description |
|---|---|---|
VENUS_TOWER_HALL_WEST_DOORWAY | 6 | |
VENUS_TOWER_HALL_EAST_DOORWAY | 8 | |
VENUS_TOWER_UPPER_DOORWAY | 11 | |
VENUS_TOWER_STATUE_HALL_EAST_DOORWAY | 13 | |
VENUS_TOWER_STATUE_HALL_SOUTH_PASSAGE | 14 | |
VENUS_TOWER_LOWER_DOORWAY | 15 |
Definition at line 175 of file mars_lighthouse_towers.c.
anonymous enum
enum { VENUS_TOWER_WEST_ROOM_ARCH, VENUS_TOWER_EAST_ROOM_ARCH, VENUS_TOWER_WEST_ROOM_SOUTH_PASSAGE, VENUS_TOWER_EAST_ROOM_SOUTH_PASSAGE }
The Venus tower's two small rooms between its halls, west and east, each with an arch at its north end, where the stairs down from the hall of the flame throwers come out, and a passage at its south end to the statue hall.
| Enumerator | Value | Description |
|---|---|---|
VENUS_TOWER_WEST_ROOM_ARCH | 7 | |
VENUS_TOWER_EAST_ROOM_ARCH | 9 | |
VENUS_TOWER_WEST_ROOM_SOUTH_PASSAGE | 10 | |
VENUS_TOWER_EAST_ROOM_SOUTH_PASSAGE | 12 |
Definition at line 188 of file mars_lighthouse_towers.c.
anonymous enum
enum { ACTOR_BUTTON_FLAME_THROWER, ACTOR_MARS_TORCH, ACTOR_UNLIT_MARS_TORCH, ACTOR_WALL_TORCH, … }
The Mars tower. Its first rooms: the flame thrower the button sets moving, the torch its flame lights (two actors, lit and unlit), the torch below it that shoots at the center wall, its glint and fireball, and the unseen point at the wall's foot. Its pipe room: two pipes that can be pushed, the four places its fire comes from, and a dragon statue.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_BUTTON_FLAME_THROWER | 8 | |
ACTOR_MARS_TORCH | 9 | |
ACTOR_UNLIT_MARS_TORCH | 10 | |
ACTOR_WALL_TORCH | 11 | |
ACTOR_WALL_SPARKLE | 12 | The glint that leaves the torch. |
ACTOR_WALL_FIREBALL | 13 | The fireball the glint sets rolling. |
ACTOR_CENTER_WALL | 14 | |
ACTOR_MARS_PIPE_A | 15 | |
ACTOR_MARS_PIPE_B | 16 | |
ACTOR_PIPE_FLAME_A | 18 | Where the fire bursts out: unseen points |
ACTOR_PIPE_FLAME_B | at the pipes' open ends, or, once a pipe is pushed into line, the flame thrower it feeds. | |
ACTOR_MARS_PIPE_A_FLAME_THROWER | A dragon head seen from the side. | |
ACTOR_MARS_PIPE_B_FLAME_THROWER | A white dragon head. | |
ACTOR_PIPE_STATUE |
Definition at line 201 of file mars_lighthouse_towers.c.
anonymous enum
enum { ACTOR_MERCURY_PIPE_A, ACTOR_MERCURY_PIPE_B, ACTOR_MERCURY_PIPE_C, ACTOR_UPPER_PUDDLE, … }
The Mercury tower: three pushable pipes, two puddles for Frost, the unseen points at the pipes' ends where the fire bursts out, the flame thrower Blaze lights, the torch the mended pipeline lights (lit and unlit), and the torch that shoots at the icebergs, with its glint and fireball.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_MERCURY_PIPE_A | 8 | |
ACTOR_MERCURY_PIPE_B | 9 | |
ACTOR_MERCURY_PIPE_C | 10 | |
ACTOR_UPPER_PUDDLE | 11 | |
ACTOR_CENTER_PUDDLE | 12 | |
ACTOR_MERCURY_PIPE_FLAME_A | 13 | Unseen, at a pipe's end. |
ACTOR_MERCURY_PIPE_FLAME_B | ||
ACTOR_MERCURY_PIPE_FLAME_C | ||
ACTOR_MERCURY_FLAME_THROWER | 16 | |
ACTOR_MERCURY_TORCH | 17 | |
ACTOR_UNLIT_MERCURY_TORCH | 18 | |
ACTOR_ICEBERG_TORCH | 19 | |
ACTOR_ICEBERG_SPARKLE | 21 | The glint that leaves the torch. |
ACTOR_ICEBERG_FIREBALL | 22 | The fireball the glint sets rolling. |
Definition at line 227 of file mars_lighthouse_towers.c.
anonymous enum
enum { MARS_PIPE_A_END, MARS_PIPE_B_END, MARS_PIPE_A_DRAGON_HEAD, MARS_PIPE_B_DRAGON_HEAD }
The Mars tower's pipe room's flame throwers, by their rows in
MarsLighthouseTowersMarsPipeFlameThrowers: the two pipes' open ends, then the
dragon head each pipe feeds once pushed into line.
| Enumerator | Value | Description |
|---|---|---|
MARS_PIPE_A_END | 0 | |
MARS_PIPE_B_END | ||
MARS_PIPE_A_DRAGON_HEAD | ||
MARS_PIPE_B_DRAGON_HEAD |
Definition at line 250 of file mars_lighthouse_towers.c.
anonymous enum
enum { MERCURY_PIPE_END_A, MERCURY_PIPE_END_B, MERCURY_PIPE_END_C, MERCURY_DRAGON_HEAD }
The Mercury tower's flame throwers, by their rows in
MarsLighthouseTowersMercuryFlameThrowers: the three open pipe ends the fire
can spout from, then the dragon head Blaze lights.
| Enumerator | Value | Description |
|---|---|---|
MERCURY_PIPE_END_A | 0 | |
MERCURY_PIPE_END_B | ||
MERCURY_PIPE_END_C | ||
MERCURY_DRAGON_HEAD |
Definition at line 261 of file mars_lighthouse_towers.c.
anonymous enum
enum { ACTOR_JUPITER_FLAME_THROWER_A, ACTOR_JUPITER_FLAME_THROWER_B, ACTOR_JUPITER_FLAME_THROWER_C, ACTOR_DROPPING_BLOCK, … }
The Jupiter tower: its flame throwers, the purple block Move drops into the gap, the white dragon statue Move pushes into the flames, and the torch above the great carved dragon, with its glint and fireball.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_JUPITER_FLAME_THROWER_A | 8 | |
ACTOR_JUPITER_FLAME_THROWER_B | ||
ACTOR_JUPITER_FLAME_THROWER_C | ||
ACTOR_DROPPING_BLOCK | 11 | |
ACTOR_JUPITER_STATUE | 12 | |
ACTOR_UPPER_FLAME_THROWER | 13 | |
ACTOR_DROP_TORCH | 14 | |
ACTOR_DROP_SPARKLE | 15 | the glint that leaves the torch |
ACTOR_DROP_FIREBALL | 16 | the fireball that drops where the glint stops |
Definition at line 272 of file mars_lighthouse_towers.c.
anonymous enum
enum { ACTOR_TIGHTROPE_NEAR_POST, ACTOR_TIGHTROPE_FAR_POST, ACTOR_FIRST_STONE, ACTOR_SECOND_STONE, … }
The Venus tower: the tightrope's posts, the three stones Carry lifts, its flame throwers, the robed stone statue pushed off the ledge, the statues before the two doorways, which stand aside once moved, the five that hide flame throwers, and those three hidden flame throwers.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_TIGHTROPE_NEAR_POST | 8 | |
ACTOR_TIGHTROPE_FAR_POST | 9 | |
ACTOR_FIRST_STONE | 10 | |
ACTOR_SECOND_STONE | 11 | |
ACTOR_THIRD_STONE | 12 | |
ACTOR_VENUS_FLAME_THROWER_A | 13 | |
ACTOR_VENUS_FLAME_THROWER_B | ||
ACTOR_VENUS_FLAME_THROWER_C | ||
ACTOR_PUSHED_STATUE | 16 | |
ACTOR_UPPER_DOORWAY_STATUE | 17 | |
ACTOR_TRAP_STATUE_A | 18 | |
ACTOR_TRAP_STATUE_B | ||
ACTOR_TRAP_STATUE_C | ||
ACTOR_TRAP_STATUE_D | ||
ACTOR_TRAP_STATUE_E | ||
ACTOR_LOWER_DOORWAY_STATUE | 23 | |
ACTOR_HIDDEN_FLAME_THROWER_A | 24 | |
ACTOR_HIDDEN_FLAME_THROWER_B | ||
ACTOR_HIDDEN_FLAME_THROWER_C |
Definition at line 290 of file mars_lighthouse_towers.c.
Functions in detail
scMarsLighthouseTowersFillGapsWithStones
void scMarsLighthouseTowersFillGapsWithStones(void)
In every edition but the Japanese: the gaps at metatiles (38, 8) and (43, 8), and (47, 8) for the first stone, are floor wherever a stone fills them.
References fdActorGet(), fdMapGridCopyMetatileAttributes() and Sint32.
Referenced by scInit() and scMarsLighthouseTowersStopMovingStone().
Definition at lines 324 and 678 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersShootFireballAtWall
void scMarsLighthouseTowersShootFireballAtWall(void)
The Mars tower's lower urn torch sends its fireball south at the centre wall.
References MarsLighthouseTowersFireballToWall and scActorAttach().
Referenced by scMarsLighthouseTowersBlazeTorch().
Definition at lines 325 and 1628 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersMeltPuddle
void scMarsLighthouseTowersMeltPuddle(Sint32 id)
A thawed puddle is water again.
References fdActorFlagsSet(), fdActorGet() and Sint32.
Referenced by scMarsLighthouseTowersPushPipeOrJump().
Definition at lines 338 and 1271 of file mars_lighthouse_towers.c.
scLeaderSetSlideStopped
void scLeaderSetSlideStopped(Sint32 value)
Stops the leader's slide on the ice where it is (nonzero), or lets it run.
References Sint32 and SlideOnIceStopped.
Referenced by scMarsLighthouseEntranceStopSlideWhileRiding() and scMarsLighthouseTowersStopSlideWhileHit().
Definition at lines 340 and 1898 of file mars_lighthouse_towers.c.
scLightSpritesSetPriority
void scLightSpritesSetPriority(Sint32 value)
Sets the priority the glow sprites are drawn at.
References LightSpritePriority and Sint32.
Referenced by scInit().
Definition at lines 356 and 1956 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersShootFireballAtIcebergs
void scMarsLighthouseTowersShootFireballAtIcebergs(void)
The dragon head's flame reaches the Mercury tower's lower urn torch, which sends its fireball south at the icebergs.
References MarsLighthouseTowersFireballToIcebergs, scActorAttach() and scFlameThrowerSet().
Referenced by scInit().
Definition at lines 358 and 1639 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersDropFireball
void scMarsLighthouseTowersDropFireball(void)
The flame reaches the Jupiter tower's urn torch above the great carved dragon, whose fireball drops to the floor below.
References MarsLighthouseTowersFireballDrop and scActorAttach().
Referenced by scInit().
Definition at lines 360 and 1651 of file mars_lighthouse_towers.c.
syImportFieldCheckSpheresOverlap
Sint32 syImportFieldCheckSpheresOverlap(Sint32 *a, Sint32 radiusA, struct POSITION *b, Sint32 radiusB)
0 when two spheres overlap, else -1 (fdCheckSpheresOverlap, through the
overlay's own import row).
Referenced by scScriptCheckSpheresOverlap().
Definition at line 393 of file mars_lighthouse_towers.c.
scScriptCheckSpheresOverlap
static inline Sint32 scScriptCheckSpheresOverlap(Sint32 *a, Sint32 radiusA, Sint32 *b, Sint32 radiusB)
Whether two spheres overlap (fdCheckSpheresOverlap), from a script.
References Sint32 and syImportFieldCheckSpheresOverlap().
Referenced by fdLeaderSlideOnIce(), fdLeaderSlideOnIceAhead(), KNOCK_BACK() and scLeaderSlideOnIceFromEdge().
Definition at line 414 of file mars_lighthouse_towers.c.
scMapGridFillCollisionRectangle
void scMapGridFillCollisionRectangle(Sint32 layer, Sint32 x, Sint32 z, Uint32 width, Uint32 height, Sint32 collisionCode)
Sets the collision code of a rectangle of one layer's map metatiles.
References Sint32.
Referenced by scPushTargetFillRectangle(), scPushTargetPush(), scYampiDesertCavePushLog() and scYampiDesertCaveSetLogMetatiles().
Definition at lines 425 and 1913 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersMeltIcebergs
void scMarsLighthouseTowersMeltIcebergs(void)
The fireball from the Mercury tower's lower urn torch melts the icebergs in its way, opening the path over the black ice.
References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesLayered() and fdScriptSetFlag().
Referenced by MarsLighthouseTowersFireballToIcebergs and scInit().
Definition at lines 435 and 1320 of file mars_lighthouse_towers.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 440 of file mars_lighthouse_towers.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
Definition at line 445 of file mars_lighthouse_towers.c.
scGetExits
const Uint32 *scGetExits(void)
The four towers share one exit table.
References SceneExits.
Definition at line 451 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersSetUpTorch
Sint32 scMarsLighthouseTowersSetUpTorch(ACTOR *actor)
A torch's script call: the towers' torches stand without a shadow.
References fdActorSetSpriteFlags() and Sint32.
Referenced by MarsLighthouseTowersTorchScript.
Definition at line 463 of file mars_lighthouse_towers.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
The current tower's actors.
References MainRoutineStateWork, MarsLighthouseTowersJupiterTowerPlacements, MarsLighthouseTowersMarsTowerPlacements, MarsLighthouseTowersMercuryTowerPlacements, MarsLighthouseTowersPlacements and MarsLighthouseTowersVenusTowerPlacements.
Definition at line 470 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersStartBlazeOnTorch
void scMarsLighthouseTowersStartBlazeOnTorch(void)
Nothing visible happens yet when Felix casts Blaze at the lit urn torch of
the Mars tower or the Mercury tower; the game only makes this cast's jet the
faster, longer one (BLAZE_LONG_SPRAY), so that it carries past the torch to
the torch or dragon head beyond. Each cast starts with the field state's
blazeLongSpray clear.
Referenced by MarsLighthouseTowersMarsTowerCues and MarsLighthouseTowersMercuryTowerCues.
Definition at line 488 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersJumpGapOrPushStone
void scMarsLighthouseTowersJumpGapOrPushStone(void)
Walking east or west at one of the gaps along the ledge in the Venus tower's first hall (metatiles (37, 8), (39, 8), (42, 8) and (44, 8)), Felix hops across it, unless one of the grey stones stands in his way, which he pushes instead.
References fdActorGet(), fdFindNearbyTalkTarget(), fdLeaderPushObjectAhead(), fdTryJumpForward(), MainRoutineStateWork and Sint32.
Referenced by MarsLighthouseTowersVenusTowerCues.
Definition at line 499 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersJumpGap
void scMarsLighthouseTowersJumpGap(void)
Walking west from metatile (38, 11) in the Venus tower's first hall, Felix hops across the gap before him.
References fdTryJumpForward().
Referenced by MarsLighthouseTowersVenusTowerCues.
Definition at line 537 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersPushStoneAlongLedge
void scMarsLighthouseTowersPushStoneAlongLedge(void)
Walking into a grey stone on metatile (38, 11) of the Venus tower's first hall, Felix pushes it along the ledge; in every edition but the Japanese it moves only while no other stone stands beyond it.
Walking into a grey stone on metatile (38, 11) of the Venus tower's first hall, Felix pushes it along the ledge.
References fdActorFindAtMetatile(), fdActorGet(), fdLeaderPushObjectAhead(), MainRoutineStateWork and Sint32.
Referenced by MarsLighthouseTowersVenusTowerCues.
Definition at lines 547 and 577 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersMoveVenusStatueOffLedge
void scMarsLighthouseTowersMoveVenusStatueOffLedge(Sint32 unused, Sint32 id)
Felix Moves the robed statue on the Venus tower's upper ledge: once it reaches the ledge's east end (metatile column 50), it drops off to the floor below, where it stays.
References fdActorGet(), fdScriptSetFlag() and Sint32.
Referenced by MarsLighthouseTowersVenusTowerCues and scMarsLighthouseTowersStopMovingStone().
Definition at line 589 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersPushVenusStatueOffLedge
void scMarsLighthouseTowersPushVenusStatueOffLedge(void)
Walking east into the robed statue on the Venus tower's upper ledge (from metatile (48, 19)), Felix pushes it; once it reaches the ledge's east end (metatile column 50), it drops off to the floor below, where it stays.
References fdActorGet(), fdLeaderPushObjectAhead() and fdScriptSetFlag().
Referenced by MarsLighthouseTowersVenusTowerCues.
Definition at line 603 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersStartMovingStone
void scMarsLighthouseTowersStartMovingStone(Sint32 unused, Sint32 id)
Nothing visible happens as a push or Move of the first grey stone starts; the game frees it from the ground's height so that it can slide over the gaps.
References fdActorGet() and Sint32.
Referenced by MarsLighthouseTowersVenusTowerCues.
Definition at line 617 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersStopMovingStone
void scMarsLighthouseTowersStopMovingStone(Sint32 unused, Sint32 id)
When a push or Move ends, the robed statue drops if it is at the ledge's end, and the first grey stone settles back onto the ground (in every edition but the Japanese, into a gap it fills, which Felix can then walk over).
References fdActorGet(), scMarsLighthouseTowersFillGapsWithStones(), scMarsLighthouseTowersMoveVenusStatueOffLedge() and Sint32.
Referenced by MarsLighthouseTowersVenusTowerCues.
Definition at line 626 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersUncoverFlameThrower
void scMarsLighthouseTowersUncoverFlameThrower(Sint32 unused, Sint32 id)
Felix Moves one of the five trap statues of the Venus tower: as it slides aside, a dragon head that was hidden behind it shows and breathes fire.
References fdActorGet(), fdActorSetPosFX(), MarsLighthouseTowersStatueFlameThrowers and Sint32.
Referenced by MarsLighthouseTowersVenusTowerCues.
Definition at line 645 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersCoverFlameThrower
void scMarsLighthouseTowersCoverFlameThrower(Sint32 unused, Sint32 id)
Moved back to where it stood, a trap statue hides its dragon head again.
References fdActorGet(), MarsLighthouseTowersStatueFlameThrowers and Sint32.
Referenced by MarsLighthouseTowersVenusTowerCues.
Definition at line 658 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersRouteFireThroughPipes
void scMarsLighthouseTowersRouteFireThroughPipes(void)
Where the two pipes stand decides which of the pipe room's dragon heads breathe fire and which pipe ends spout it.
References fdActorGet() and scFlameThrowerSet().
Referenced by scInit() and scMarsLighthouseTowersPushPipe().
Definition at line 714 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersPushPipe
void scMarsLighthouseTowersPushPipe(void)
Walking into one of the two pipes in the Mars tower's pipe room (the
metatiles round them, (7,
12) to (10, 16) and (4, 20) to (7, 23)), Felix pushes it along, and the fire
takes its new way: a
pipe pushed into line feeds a dragon head, and one pushed out of line leaves
its fire spouting from the open end.References scMarsLighthouseTowersRouteFireThroughPipes(), scPushTargetFindStop() and scPushTargetPush().
Referenced by MarsLighthouseTowersMarsTowerCues.
Definition at line 744 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersBurstWestWall
DEFINE_BURST_WALL(scMarsLighthouseTowersBurstWestWall, 10, 74, FLAG_WEST_WALL_BURST)
Felix casts Burst on the cracked west wall at the start of the Mars tower (metatile (11, 52)): the wall breaks open, and stays broken.
Referenced by MarsLighthouseTowersMarsTowerCues and scInit().
Definition at line 771 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersBurstEastWall
DEFINE_BURST_WALL(scMarsLighthouseTowersBurstEastWall, 18, 82, FLAG_EAST_WALL_BURST)
Felix casts Burst on the cracked east wall at the start of the Mars tower (metatile (19, 52)): the wall breaks open, and stays broken.
Referenced by MarsLighthouseTowersMarsTowerCues and scInit().
Definition at line 778 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersBurstCenterWall
DEFINE_BURST_WALL(scMarsLighthouseTowersBurstCenterWall, 14, 78, FLAG_CENTER_WALL_BURST)
Felix casts Burst on the centre wall at the start of the Mars tower, once the urn torch's fireball has cracked it (metatile (15, 52)): the wall breaks open, and stays broken.
Referenced by MarsLighthouseTowersMarsTowerCues and scInit().
Definition at line 786 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersPressButton
void scMarsLighthouseTowersPressButton(void)
Felix steps on the button in the corner of the lava room of the Mars tower (metatile (6, 36)): with a click, the dragon head on the north wall starts sliding east and west along it, breathing fire down at the lava, until its flame lights the urn torch.
References fdScriptPlaySound(), fdScriptSetFlag() and scFlameThrowerSet().
Referenced by MarsLighthouseTowersMarsTowerCues.
Definition at line 795 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersLightTorch
void scMarsLighthouseTowersLightTorch(void)
The sliding dragon head's flame reaches the unlit urn torch in the Mars tower, which flares up with a whoosh and stays lit from now on.
References fdActorGet(), fdScriptPlaySound() and fdScriptSetFlag().
Referenced by scInit().
Definition at line 804 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersBlazeTorch
void scMarsLighthouseTowersBlazeTorch(void)
Felix's long Blaze from the lit urn torch in the Mars tower reaches the torch below it, which sends a fireball rolling south toward the centre wall.
References scMarsLighthouseTowersShootFireballAtWall().
Referenced by MarsLighthouseTowersMarsTowerCues.
Definition at line 816 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersScatterRubble
void scMarsLighthouseTowersScatterRubble(Sint32 id)
Twelve green pieces of wall burst from an actor, fly up and bounce away down
over the lava, then flicker out: as the Mars tower's fireball cracks the
centre wall (scMarsLighthouseTowersCrackCenterWall). Each piece flickers out
after DebrisScript's wait or, at random, two ticks later
(MarsLighthouseTowersLateRubbleScript).
References DebrisScript, fdActorGet(), fdActorSetSpriteColorMode(), fdActorSetSpriteFlags(), fdActorStartScript(), MarsLighthouseTowersLateRubbleScript, scFieldActorCreate(), Sint32, syCos(), syRandom() and sySin().
Referenced by scMarsLighthouseTowersCrackCenterWall().
Definition at line 832 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersWatchFireballCrackWall
void scMarsLighthouseTowersWatchFireballCrackWall(void)
The camera follows the fireball from the Mars tower's lower torch south to the centre wall and holds there for two seconds.
References fdCameraWaitForArrival(), fdScriptClearFlag(), fdScriptEnd(), fdScriptStart(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait() and sySynch().
Referenced by MarsLighthouseTowersMarsTowerCues.
Definition at line 878 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersCrackCenterWall
void scMarsLighthouseTowersCrackCenterWall(Sint32 byFireball)
The fireball cracks the Mars tower's centre wall, ready for Burst, with pieces of wall flying, unless Burst has broken it already. On entering the tower, already cracked, it is drawn cracked without them.
References fdMapGridCopyMetatiles(), fdMapGridCopyMetatilesLayered(), fdScriptGetFlag(), fdScriptSetFlag(), scMarsLighthouseTowersScatterRubble() and Sint32.
Referenced by MarsLighthouseTowersFireballToWall and scInit().
Definition at line 899 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersCycloneOnFirstHallWestCircle
void scMarsLighthouseTowersCycloneOnFirstHallWestCircle(void)
Felix casts Cyclone on the west circle of the Jupiter tower's first hall (metatile (3, 57)): a whirlwind lifts the party spinning and sets them down on the circle of the small room at the foot of the long corridor. Each circle of the Jupiter tower has its own exit, of the number its metatiles carry.
References syImportScriptSetExitRequest().
Referenced by MarsLighthouseTowersJupiterTowerCues.
Definition at line 915 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersCycloneOnCorridorFootCircle
void scMarsLighthouseTowersCycloneOnCorridorFootCircle(void)
Felix casts Cyclone on the circle of the small room at the foot of the long corridor (metatile (34, 16)): a whirlwind lifts the party spinning and sets them down on the west circle of the first hall.
References syImportScriptSetExitRequest().
Referenced by MarsLighthouseTowersJupiterTowerCues.
Definition at line 923 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersCycloneOnFirstHallEastCircle
void scMarsLighthouseTowersCycloneOnFirstHallEastCircle(void)
Felix casts Cyclone on the east circle of the Jupiter tower's first hall (metatile (21, 57)): a whirlwind lifts the party spinning and sets them down on the first circle of the narrow room.
References syImportScriptSetExitRequest().
Referenced by MarsLighthouseTowersJupiterTowerCues.
Definition at line 931 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersCycloneOnNarrowRoomFirstCircle
void scMarsLighthouseTowersCycloneOnNarrowRoomFirstCircle(void)
Felix casts Cyclone on the first circle of the narrow room (metatile (41, 40)): a whirlwind lifts the party spinning and sets them down on the east circle of the first hall.
References syImportScriptSetExitRequest().
Referenced by MarsLighthouseTowersJupiterTowerCues.
Definition at line 939 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersCycloneOnCorridorHeadEastCircle
void scMarsLighthouseTowersCycloneOnCorridorHeadEastCircle(void)
Felix casts Cyclone on the east circle at the head of the long corridor (metatile (37, 5)): a whirlwind lifts the party spinning and sets them down in the south-west of the big room of the white dragon statue.
References syImportScriptSetExitRequest().
Referenced by MarsLighthouseTowersJupiterTowerCues.
Definition at line 947 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersCycloneOnCorridorHeadWestCircle
void scMarsLighthouseTowersCycloneOnCorridorHeadWestCircle(void)
Felix casts Cyclone on the west circle at the head of the long corridor (metatile (32, 5)): a whirlwind lifts the party spinning and sets them down in the far west of the big room.
References syImportScriptSetExitRequest().
Referenced by MarsLighthouseTowersJupiterTowerCues.
Definition at line 955 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersCycloneOnBigRoomRaisedCircle
void scMarsLighthouseTowersCycloneOnBigRoomRaisedCircle(void)
Felix casts Cyclone on the raised circle in the middle of the big room (metatile (18, 24)): a whirlwind lifts the party spinning and sets them down on the first circle of the room with two circles.
References syImportScriptSetExitRequest().
Referenced by MarsLighthouseTowersJupiterTowerCues.
Definition at line 963 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersCycloneOnTwoCircleRoomFirstCircle
void scMarsLighthouseTowersCycloneOnTwoCircleRoomFirstCircle(void)
Felix casts Cyclone on the first circle of the room with two circles (metatile (31, 60)): a whirlwind lifts the party spinning and sets them down on the raised circle in the middle of the big room.
References syImportScriptSetExitRequest().
Referenced by MarsLighthouseTowersJupiterTowerCues.
Definition at line 971 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersCycloneOnTwoCircleRoomSecondCircle
void scMarsLighthouseTowersCycloneOnTwoCircleRoomSecondCircle(void)
Felix casts Cyclone on the second circle of the room with two circles (metatile (36, 57)): a whirlwind lifts the party spinning and sets them down on a ledge in the north-east of the big room.
References syImportScriptSetExitRequest().
Referenced by MarsLighthouseTowersJupiterTowerCues.
Definition at line 979 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersCycloneOnBigRoomEastCircle
void scMarsLighthouseTowersCycloneOnBigRoomEastCircle(void)
Felix casts Cyclone on the circle at the east of the big room (metatile (24, 19)): a whirlwind lifts the party spinning and sets them down on the second circle of the narrow room.
References syImportScriptSetExitRequest().
Referenced by MarsLighthouseTowersJupiterTowerCues.
Definition at line 987 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersCycloneOnNarrowRoomSecondCircle
void scMarsLighthouseTowersCycloneOnNarrowRoomSecondCircle(void)
Felix casts Cyclone on the second circle of the narrow room (metatile (43, 29)): a whirlwind lifts the party spinning and sets them down on the circle at the east of the big room.
References syImportScriptSetExitRequest().
Referenced by MarsLighthouseTowersJupiterTowerCues.
Definition at line 995 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersCycloneOnBigRoomWestCircle
void scMarsLighthouseTowersCycloneOnBigRoomWestCircle(void)
Felix casts Cyclone on the circle west of the big room's middle (metatile (13, 14)): a whirlwind lifts the party spinning and sets them down on the circle under the great carved dragon.
References syImportScriptSetExitRequest().
Referenced by MarsLighthouseTowersJupiterTowerCues.
Definition at line 1003 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersCycloneOnCarvedDragonCircle
void scMarsLighthouseTowersCycloneOnCarvedDragonCircle(void)
Felix casts Cyclone on the circle under the great carved dragon (metatile (54, 12)): a whirlwind lifts the party spinning and sets them down on the circle west of the big room's middle.
References syImportScriptSetExitRequest().
Referenced by MarsLighthouseTowersJupiterTowerCues.
Definition at line 1011 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersDropBlock
void scMarsLighthouseTowersDropBlock(Sint32 unused, Sint32 id)
Felix Moves the purple block in the Jupiter tower: once it reaches metatile column 13 it drops into the gap with a thud, bridging it for good.
References fdActorGet(), fdMapGetTerrainHeight(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesLayered(), fdScriptPlaySound(), fdScriptSetFlag(), Sint32 and sySynch().
Referenced by MarsLighthouseTowersJupiterTowerCues.
Definition at line 1018 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersMoveJupiterStatueIntoFlames
void scMarsLighthouseTowersMoveJupiterStatueIntoFlames(Sint32 unused, Sint32 id)
Felix Moves the white dragon statue in the Jupiter tower's big room: once it stands at metatile column 7, under the dragon head, it blocks the flames, and stays there.
References fdActorGet(), fdScriptSetFlag() and Sint32.
Referenced by MarsLighthouseTowersJupiterTowerCues.
Definition at line 1049 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersRevealSteppingStones
void scMarsLighthouseTowersRevealSteppingStones(void)
While Felix's Reveal lasts in the Jupiter tower, the hidden stepping stones show, the secret way east.
References fdMapGridCopyMetatileAttributes() and fdMapGridCopyMetatiles().
Referenced by MarsLighthouseTowersJupiterTowerCues.
Definition at line 1057 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersHideSteppingStones
void scMarsLighthouseTowersHideSteppingStones(void)
As Reveal fades, the Jupiter tower's stepping stones are hidden again.
References fdMapGridCopyMetatileAttributes() and fdMapGridCopyMetatiles().
Referenced by MarsLighthouseTowersJupiterTowerCues.
Definition at line 1065 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersFallIntoHole
void scMarsLighthouseTowersFallIntoHole(void)
Felix steps into the hole in the floor of the room under the great carved dragon in the Jupiter tower (metatiles (52, 19) to (56, 22)): he raises his arms, sinks out of sight with a puff of dust, and drops back to the tower's first hall.
References fdActorGet(), fdActorSetAnimation(), fdActorSetSpriteFlags(), fdLeaderStopMoving(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldScriptSetExitRequest(), scFieldScriptWait(), Sint32 and sySynch().
Referenced by MarsLighthouseTowersJupiterTowerCues.
Definition at line 1076 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersRouteFireThroughPipeline
void scMarsLighthouseTowersRouteFireThroughPipeline(void)
Where the Mercury tower's three pipes stand decides which open pipe end spouts fire; with all three in line none does, and the first time that happens the camera pans north to show the pipeline mended and the tower is loaded afresh.
References fdActorGet(), fdActorTableSnapshot(), fdScriptClearFlag(), fdScriptGetFlag(), fdScriptSetFlag(), scFieldScriptSetExitRequest(), scFieldScriptWait() and scFlameThrowerSet().
Referenced by scInit() and scMarsLighthouseTowersPushPipeOrJump().
Definition at line 1109 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersLightFlameThrower
void scMarsLighthouseTowersLightFlameThrower(void)
Felix's long Blaze from the lit urn torch in the Mercury tower reaches the dragon head beyond it, which starts breathing fire, and the camera begins to move south.
References scFlameThrowerSet().
Referenced by MarsLighthouseTowersMercuryTowerCues.
Definition at line 1145 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersWatchFlameThrower
void scMarsLighthouseTowersWatchFlameThrower(void)
The camera follows the Mercury tower's newly lit dragon head's flame south toward the urn torch by the icebergs.
References fdCameraWaitForArrival(), fdScriptClearFlag(), fdScriptEnd(), fdScriptSetFlag(), fdScriptStart(), scFieldScriptEndLastingPsynergy() and scFieldScriptWait().
Referenced by MarsLighthouseTowersMercuryTowerCues.
Definition at line 1154 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersPushPipeOrJump
void scMarsLighthouseTowersPushPipeOrJump(void)
Walking into one of the three pipes of the Mercury tower's pipe room (the metatiles round them, about (34, 7) to (40, 10)), Felix pushes it along; a frozen puddle the fire now reaches melts back into water. Where no pipe stands he hops across the gap ahead, if there is ground beyond.
References fdActorGet(), fdActorSetAnimation(), fdActorSetSpriteColorMode(), fdScriptClearFlag(), fdScriptGetFlag(), fdTryJumpForward(), MainRoutineStateWork, PerWork, scFlameThrowerGetFlags(), scMarsLighthouseTowersMeltPuddle(), scMarsLighthouseTowersRouteFireThroughPipeline(), scPushTargetFindStop(), scPushTargetPush(), Sint32 and SlideOnIceSteerAngles.
Referenced by MarsLighthouseTowersMercuryTowerCues.
Definition at line 1176 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersFreezePuddle
void scMarsLighthouseTowersFreezePuddle(Sint32 id)
Frost turns a puddle into a pillar of ice that blocks the fire's way.
References fdActorGet() and Sint32.
Referenced by scInit().
Definition at line 1256 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersFrostUpperPuddle
DEFINE_FROST_PUDDLE(scMarsLighthouseTowersFrostUpperPuddle, FLAG_UPPER_PUDDLE_FROZEN, MERCURY_PIPE_END_C)
Felix casts Frost on the upper right puddle of the Mercury tower's pipe room: it rises into a pillar of ice, unless fire is spouting onto it, which melts it at once.
Referenced by MarsLighthouseTowersMercuryTowerCues.
Definition at line 1307 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersFrostCenterPuddle
DEFINE_FROST_PUDDLE(scMarsLighthouseTowersFrostCenterPuddle, FLAG_CENTER_PUDDLE_FROZEN, MERCURY_PIPE_END_A)
Felix casts Frost on the centre puddle of the Mercury tower's pipe room: it rises into a pillar of ice, unless fire is spouting onto it, which melts it at once.
Referenced by MarsLighthouseTowersMercuryTowerCues.
Definition at line 1314 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersSlideFromEdge
void scMarsLighthouseTowersSlideFromEdge(void)
Unused: slides on from the edge of the ice, then carries on while hit.
References scFireballCarryLeaderIfHit() and scLeaderSlideOnIceFromEdge().
Definition at line 1331 of file mars_lighthouse_towers.c.
scGetCues
const CUE *scGetCues(void)
The current tower's cues.
References MainRoutineStateWork, MarsLighthouseTowersCues, MarsLighthouseTowersJupiterTowerCues, MarsLighthouseTowersMarsTowerCues, MarsLighthouseTowersMercuryTowerCues and MarsLighthouseTowersVenusTowerCues.
Definition at line 1338 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersStopSlideWhileHit
void scMarsLighthouseTowersStopSlideWhileHit(void)
Each tick in the Mercury tower: a hit by the flames stops Felix's slide.
References scFlameThrowersHasHitLeader() and scLeaderSetSlideStopped().
Referenced by scInit().
Definition at line 1352 of file mars_lighthouse_towers.c.
scInit
Sint32 scInit(void)
Sets up the tower being entered: the flame throwers of the part of it entered, and what the flags have changed (lit torches, broken walls, pipes in line, puddles frozen, the dropped block, statues in the flames).
References fdActorAppearInWhirlwind(), fdActorDescendInWhirlwind(), fdActorDisableById(), fdActorGetById(), fdEffectStartBlankOverlay(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesLayered(), fdScriptEndLastingPsynergy(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), fdTightropeInit(), fdTightropePlace(), MainRoutineStateWork, MarsLighthouseTowersJupiterFlameStops, MarsLighthouseTowersJupiterFlameThrowers, MarsLighthouseTowersJupiterUpperFlameStops, MarsLighthouseTowersJupiterUpperFlameThrowers, MarsLighthouseTowersMarsButtonFlameStops, MarsLighthouseTowersMarsButtonFlameThrowers, MarsLighthouseTowersMarsPipeFlameStops, MarsLighthouseTowersMarsPipeFlameThrowers, MarsLighthouseTowersMercuryFlameStops, MarsLighthouseTowersMercuryFlameThrowers, MarsLighthouseTowersVenusFlameStops, MarsLighthouseTowersVenusFlameThrowers, MarsLighthouseTowersVenusStatueFlameStops, MarsLighthouseTowersVenusStatueFlameThrowers, scCrackedTileDropIn(), scFlameThrowersCreate(), scFlameThrowerSetPuffsOffScreen(), scFlameThrowersReleaseFlame(), scFlameThrowersStart(), scJupiterLighthouseLoadPalettes(), scLightSpritesAdd(), scLightSpritesInitPathGlows(), scLightSpritesSetPriority(), scMarsLighthouseTowersBurstCenterWall(), scMarsLighthouseTowersBurstEastWall(), scMarsLighthouseTowersBurstWestWall(), scMarsLighthouseTowersCrackCenterWall(), scMarsLighthouseTowersDropFireball(), scMarsLighthouseTowersFillGapsWithStones(), scMarsLighthouseTowersFreezePuddle(), scMarsLighthouseTowersLightTorch(), scMarsLighthouseTowersMeltIcebergs() and 9 more.
Definition at line 1376 of file mars_lighthouse_towers.c.
scPrepareMap
Sint32 scPrepareMap(void)
References fdMapCopyPalette(), fdScriptGetFlag(), MainRoutineStateWork and Sint32.
Definition at line 1615 of file mars_lighthouse_towers.c.
scPaletteCycleSetTick
static inline void scPaletteCycleSetTick(Sint32 value)
References PaletteCycleTick and Sint32.
Referenced by scJupiterLighthouseLoadPalettes() and scTrialRoadStartPaletteCycle().
Definition at line 1668 of file mars_lighthouse_towers.c.
scFlameThrowersSetMode
void scFlameThrowersSetMode(Sint16 runsDuringPsynergy)
Referenced by scInit().
Definition at line 1718 of file mars_lighthouse_towers.c.
scFlameThrowersGetCounter
Sint32 scFlameThrowersGetCounter(void)
References Sint32.
Definition at line 1728 of file mars_lighthouse_towers.c.
scMarsLighthouseTowersKnockBackIfHit
void scMarsLighthouseTowersKnockBackIfHit(void)
Hit by the flames, Felix is knocked back.
References fdLeaderKnockBack().
Referenced by MarsLighthouseTowersMarsTowerCues and MarsLighthouseTowersMercuryTowerCues.
Definition at line 1746 of file mars_lighthouse_towers.c.
scFireballCarryLeader
Sint32 scFireballCarryLeader(void)
A rolling fireball hits Felix in the Jupiter tower: the party takes damage, and he sits blinking on the fireball and is carried along with it until it stops.
References fdActorBlink(), fdActorGet(), fdActorSelectAnimation(), fdActorSetSpriteColorMode(), fdMapGridGetTerrainKindOrBumpAt(), fdScreenTransitionStart(), fdScriptClearFlag(), fdScriptSetFlag(), fdScriptStart(), gmPartyTakeFallDamage(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), Sint32 and sySynch().
Referenced by MarsLighthouseTowersJupiterTowerCues, SceneCues and scFireballCarryLeaderIfHit().
Definition at line 1755 of file mars_lighthouse_towers.c.
scFlameThrowersHasHitLeader
Sint32 scFlameThrowersHasHitLeader(void)
Whether Felix has been hit by the flames.
References Sint32.
Referenced by scMarsLighthouseEntranceStopSlideWhileRiding() and scMarsLighthouseTowersStopSlideWhileHit().
Definition at line 1824 of file mars_lighthouse_towers.c.
scPushTargetCheckCollision
static inline Sint32 scPushTargetCheckCollision(ACTOR *actor, Sint32 *pos)
References fdMapGridCheckCollision() and Sint32.
Definition at line 1940 of file mars_lighthouse_towers.c.
Variables in detail
MarsLighthouseTowersMercuryFlameThrowerRoute
extern Uint32 MarsLighthouseTowersMercuryFlameThrowerRoute[]
LATE_DATA Uint32 MarsLighthouseTowersMercuryFlameThrowerRoute[]
Referenced by MarsLighthouseTowersMercuryTowerPlacements.
Definition at lines 385 and 2503 of file mars_lighthouse_towers.c.
WhirlwindRiding
Sint32 WhirlwindRiding
References Sint32.
Referenced by scInit(), scJupiterLighthouseRaiseUpperWhirlwind(), scJupiterLighthouseRaiseWhirlwind(), scJupiterLighthouseRideUpperWhirlwind(), scJupiterLighthouseRideWhirlwind() and scWhirlwindUpdate().
Definition at line 398 of file mars_lighthouse_towers.c.
PaletteCycleColors
Uint16 PaletteCycleColors[16]
Referenced by fdPaletteCycleFade(), fdPaletteCycleStep(), scJupiterLighthouseLoadPalettes() and scPaletteSetColorsFade().
Definition at line 399 of file mars_lighthouse_towers.c.
PaletteCycleUnlitPalette
Uint16 PaletteCycleUnlitPalette[2]
Palette 13's first two colours; it is copied whole, with the unlit colours after them.
Referenced by scJupiterLighthouseLoadPalettes().
Definition at line 402 of file mars_lighthouse_towers.c.
PaletteCycleUnlitColors
Uint16 PaletteCycleUnlitColors[14]
Referenced by scJupiterLighthouseLoadPalettes().
Definition at line 403 of file mars_lighthouse_towers.c.
CrackedTiles
METATILE_TARGET CrackedTiles
Referenced by scCrackedTileFind(), scCrackedTilePlaceLanding(), scCrackedTileStep() and scCrackedTileUpdate().
Definition at line 404 of file mars_lighthouse_towers.c.
SlideOnIceStopped
volatile Sint16 SlideOnIceStopped
Referenced by scLeaderSetSlideStopped() and scLeaderSlideOnIceFromEdge().
Definition at line 405 of file mars_lighthouse_towers.c.
LightSpriteTile
Sint16 LightSpriteTile
Referenced by scAnemosInnerSanctumDullahanStartLightSprites(), scLightSpritesDraw(), scLightSpritesInitChannelPieces(), scLightSpritesInitEnergyBlockGlow() and scLightSpritesInitPathGlows().
Definition at line 406 of file mars_lighthouse_towers.c.
LightSpriteCount
Sint16 LightSpriteCount
Referenced by scAnemosInnerSanctumDullahanStartLightSprites(), scLightSpritesAdd(), scLightSpritesAddCounted(), scLightSpritesDraw(), scLightSpritesInitChannelPieces(), scLightSpritesInitEnergyBlockGlow() and scLightSpritesInitPathGlows().
Definition at line 407 of file mars_lighthouse_towers.c.
LightSpriteOams
LIGHT_OAM LightSpriteOams[16]
Referenced by scLightSpritesDraw().
Definition at line 409 of file mars_lighthouse_towers.c.
LightSpritesLarge
Sint16 LightSpritesLarge
Referenced by scAnemosInnerSanctumDullahanStartLightSprites(), scLightSpritesDraw(), scLightSpritesInitChannelPieces(), scLightSpritesInitEnergyBlockGlow() and scLightSpritesInitPathGlows().
Definition at line 410 of file mars_lighthouse_towers.c.
LightSpritePriority
Sint16 LightSpritePriority
Referenced by scAnemosInnerSanctumDullahanSetLightPriority(), scAnemosInnerSanctumDullahanStartLightSprites(), scLightSpritesDraw(), scLightSpritesInitChannelPieces(), scLightSpritesInitEnergyBlockGlow(), scLightSpritesInitPathGlows() and scLightSpritesSetPriority().
Definition at line 411 of file mars_lighthouse_towers.c.
MarsLighthouseTowersPlacements
extern ACTOR_PLACE MarsLighthouseTowersPlacements[]
LATE_DATA ACTOR_PLACE MarsLighthouseTowersPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 456 and 2392 of file mars_lighthouse_towers.c.
MarsLighthouseTowersVenusTowerPlacements
extern ACTOR_PLACE MarsLighthouseTowersVenusTowerPlacements[]
LATE_DATA ACTOR_PLACE MarsLighthouseTowersVenusTowerPlacements[]
Each tower's actors, in its enum's order.
References MarsLighthouseTowersVenusEastFlameThrowerRoute and MarsLighthouseTowersVenusWestFlameThrowerRoute.
Referenced by scGetActorPlacements().
Definition at lines 457 and 2397 of file mars_lighthouse_towers.c.
MarsLighthouseTowersMarsTowerPlacements
extern ACTOR_PLACE MarsLighthouseTowersMarsTowerPlacements[]
LATE_DATA ACTOR_PLACE MarsLighthouseTowersMarsTowerPlacements[]
References MarsLighthouseTowersButtonFlameThrowerRoute, MarsLighthouseTowersTorchScript and Sint32.
Referenced by scGetActorPlacements().
Definition at lines 458 and 2441 of file mars_lighthouse_towers.c.
MarsLighthouseTowersJupiterTowerPlacements
extern ACTOR_PLACE MarsLighthouseTowersJupiterTowerPlacements[]
LATE_DATA ACTOR_PLACE MarsLighthouseTowersJupiterTowerPlacements[]
References MarsLighthouseTowersJupiterEastFlameThrowerRoute, MarsLighthouseTowersJupiterFarFlameThrowerRoute, MarsLighthouseTowersJupiterLowerFlameThrowerSetUp, MarsLighthouseTowersJupiterWestFlameThrowerRoute, MarsLighthouseTowersTorchScript and Sint32.
Referenced by scGetActorPlacements().
Definition at lines 459 and 2477 of file mars_lighthouse_towers.c.
MarsLighthouseTowersMercuryTowerPlacements
extern ACTOR_PLACE MarsLighthouseTowersMercuryTowerPlacements[]
LATE_DATA ACTOR_PLACE MarsLighthouseTowersMercuryTowerPlacements[]
References MarsLighthouseTowersMercuryFlameThrowerRoute, MarsLighthouseTowersTorchScript and Sint32.
Referenced by scGetActorPlacements().
Definition at lines 460 and 2519 of file mars_lighthouse_towers.c.
MarsLighthouseTowersStatueFlameThrowers
extern Sint16 MarsLighthouseTowersStatueFlameThrowers[]
Sint16 MarsLighthouseTowersStatueFlameThrowers[]
The flame thrower each of the Venus tower's five trap statues hides.
Referenced by scMarsLighthouseTowersCoverFlameThrower() and scMarsLighthouseTowersUncoverFlameThrower().
Definition at lines 584 and 2112 of file mars_lighthouse_towers.c.
MarsLighthouseTowersLateRubbleScript
extern Uint32 MarsLighthouseTowersLateRubbleScript[]
Uint32 MarsLighthouseTowersLateRubbleScript[]
As DebrisScript, two ticks later.
Referenced by scMarsLighthouseTowersScatterRubble().
Definition at lines 822 and 2121 of file mars_lighthouse_towers.c.
MarsLighthouseTowersCues
extern CUE MarsLighthouseTowersCues[]
LATE_DATA CUE MarsLighthouseTowersCues[]
Referenced by scGetCues().
Definition at lines 1248 and 2555 of file mars_lighthouse_towers.c.
MarsLighthouseTowersVenusTowerCues
extern CUE MarsLighthouseTowersVenusTowerCues[]
LATE_DATA CUE MarsLighthouseTowersVenusTowerCues[]
Each tower's cues.
References fdLeaderKnockBack(), scMarsLighthouseTowersCoverFlameThrower(), scMarsLighthouseTowersJumpGap(), scMarsLighthouseTowersJumpGapOrPushStone(), scMarsLighthouseTowersMoveVenusStatueOffLedge(), scMarsLighthouseTowersPushStoneAlongLedge(), scMarsLighthouseTowersPushVenusStatueOffLedge(), scMarsLighthouseTowersStartMovingStone(), scMarsLighthouseTowersStopMovingStone() and scMarsLighthouseTowersUncoverFlameThrower().
Referenced by scGetCues().
Definition at lines 1249 and 2560 of file mars_lighthouse_towers.c.
MarsLighthouseTowersMarsTowerCues
extern CUE MarsLighthouseTowersMarsTowerCues[]
LATE_DATA CUE MarsLighthouseTowersMarsTowerCues[]
References fdLeaderKnockBack(), scMarsLighthouseTowersBlazeTorch(), scMarsLighthouseTowersBurstCenterWall(), scMarsLighthouseTowersBurstEastWall(), scMarsLighthouseTowersBurstWestWall(), scMarsLighthouseTowersKnockBackIfHit(), scMarsLighthouseTowersPressButton(), scMarsLighthouseTowersPushPipe(), scMarsLighthouseTowersStartBlazeOnTorch() and scMarsLighthouseTowersWatchFireballCrackWall().
Referenced by scGetCues().
Definition at lines 1250 and 2637 of file mars_lighthouse_towers.c.
MarsLighthouseTowersJupiterTowerCues
extern CUE MarsLighthouseTowersJupiterTowerCues[]
LATE_DATA CUE MarsLighthouseTowersJupiterTowerCues[]
References fdLeaderKnockBack(), scFireballCarryLeader(), scFireballCarryLeaderIfHit(), scMarsLighthouseTowersCycloneOnBigRoomEastCircle(), scMarsLighthouseTowersCycloneOnBigRoomRaisedCircle(), scMarsLighthouseTowersCycloneOnBigRoomWestCircle(), scMarsLighthouseTowersCycloneOnCarvedDragonCircle(), scMarsLighthouseTowersCycloneOnCorridorFootCircle(), scMarsLighthouseTowersCycloneOnCorridorHeadEastCircle(), scMarsLighthouseTowersCycloneOnCorridorHeadWestCircle(), scMarsLighthouseTowersCycloneOnFirstHallEastCircle(), scMarsLighthouseTowersCycloneOnFirstHallWestCircle(), scMarsLighthouseTowersCycloneOnNarrowRoomFirstCircle(), scMarsLighthouseTowersCycloneOnNarrowRoomSecondCircle(), scMarsLighthouseTowersCycloneOnTwoCircleRoomFirstCircle(), scMarsLighthouseTowersCycloneOnTwoCircleRoomSecondCircle(), scMarsLighthouseTowersDropBlock(), scMarsLighthouseTowersFallIntoHole(), scMarsLighthouseTowersHideSteppingStones(), scMarsLighthouseTowersMoveJupiterStatueIntoFlames() and scMarsLighthouseTowersRevealSteppingStones().
Referenced by scGetCues().
Definition at lines 1251 and 2668 of file mars_lighthouse_towers.c.
MarsLighthouseTowersMercuryTowerCues
extern CUE MarsLighthouseTowersMercuryTowerCues[]
LATE_DATA CUE MarsLighthouseTowersMercuryTowerCues[]
References fdLeaderKnockBack(), fdLeaderSlideOnIce(), scMarsLighthouseTowersFrostCenterPuddle(), scMarsLighthouseTowersFrostUpperPuddle(), scMarsLighthouseTowersKnockBackIfHit(), scMarsLighthouseTowersLightFlameThrower(), scMarsLighthouseTowersPushPipeOrJump(), scMarsLighthouseTowersStartBlazeOnTorch() and scMarsLighthouseTowersWatchFlameThrower().
Referenced by scGetCues().
Definition at lines 1252 and 2730 of file mars_lighthouse_towers.c.
MarsLighthouseTowersMarsButtonFlameThrowers
extern Uint16 MarsLighthouseTowersMarsButtonFlameThrowers[]
Uint16 MarsLighthouseTowersMarsButtonFlameThrowers[]
Each part of the towers' flame throwers for scFlameThrowersStart, each with its flame's kind and
reach, and the actors their flames stop at, 1 where reaching it calls the function
scFlameThrowersStart is given.
Referenced by scInit().
Definition at lines 1358 and 2135 of file mars_lighthouse_towers.c.
MarsLighthouseTowersMarsButtonFlameStops
extern Uint16 MarsLighthouseTowersMarsButtonFlameStops[]
Uint16 MarsLighthouseTowersMarsButtonFlameStops[]
Referenced by scInit().
Definition at lines 1359 and 2138 of file mars_lighthouse_towers.c.
MarsLighthouseTowersMarsPipeFlameThrowers
extern Uint16 MarsLighthouseTowersMarsPipeFlameThrowers[]
Uint16 MarsLighthouseTowersMarsPipeFlameThrowers[]
Referenced by scInit().
Definition at lines 1360 and 2141 of file mars_lighthouse_towers.c.
MarsLighthouseTowersMarsPipeFlameStops
extern Uint16 MarsLighthouseTowersMarsPipeFlameStops[]
Uint16 MarsLighthouseTowersMarsPipeFlameStops[]
Referenced by scInit().
Definition at lines 1361 and 2148 of file mars_lighthouse_towers.c.
MarsLighthouseTowersMercuryFlameThrowers
extern Uint16 MarsLighthouseTowersMercuryFlameThrowers[]
Uint16 MarsLighthouseTowersMercuryFlameThrowers[]
Referenced by scInit().
Definition at lines 1362 and 2151 of file mars_lighthouse_towers.c.
MarsLighthouseTowersMercuryFlameStops
extern Uint16 MarsLighthouseTowersMercuryFlameStops[]
Uint16 MarsLighthouseTowersMercuryFlameStops[]
Referenced by scInit().
Definition at lines 1363 and 2158 of file mars_lighthouse_towers.c.
MarsLighthouseTowersJupiterUpperFlameThrowers
extern Uint16 MarsLighthouseTowersJupiterUpperFlameThrowers[]
Uint16 MarsLighthouseTowersJupiterUpperFlameThrowers[]
Referenced by scInit().
Definition at lines 1364 and 2161 of file mars_lighthouse_towers.c.
MarsLighthouseTowersJupiterUpperFlameStops
extern Uint16 MarsLighthouseTowersJupiterUpperFlameStops[]
Uint16 MarsLighthouseTowersJupiterUpperFlameStops[]
Referenced by scInit().
Definition at lines 1365 and 2164 of file mars_lighthouse_towers.c.
MarsLighthouseTowersJupiterFlameThrowers
extern Uint16 MarsLighthouseTowersJupiterFlameThrowers[]
Uint16 MarsLighthouseTowersJupiterFlameThrowers[]
Referenced by scInit().
Definition at lines 1366 and 2167 of file mars_lighthouse_towers.c.
MarsLighthouseTowersJupiterFlameStops
extern Uint16 MarsLighthouseTowersJupiterFlameStops[]
Uint16 MarsLighthouseTowersJupiterFlameStops[]
Referenced by scInit().
Definition at lines 1367 and 2173 of file mars_lighthouse_towers.c.
MarsLighthouseTowersVenusFlameThrowers
extern Uint16 MarsLighthouseTowersVenusFlameThrowers[]
Uint16 MarsLighthouseTowersVenusFlameThrowers[]
Referenced by scInit().
Definition at lines 1368 and 2176 of file mars_lighthouse_towers.c.
MarsLighthouseTowersVenusFlameStops
extern Uint16 MarsLighthouseTowersVenusFlameStops[]
Uint16 MarsLighthouseTowersVenusFlameStops[]
Referenced by scInit().
Definition at lines 1369 and 2182 of file mars_lighthouse_towers.c.
MarsLighthouseTowersVenusStatueFlameThrowers
extern Uint16 MarsLighthouseTowersVenusStatueFlameThrowers[]
Uint16 MarsLighthouseTowersVenusStatueFlameThrowers[]
Referenced by scInit().
Definition at lines 1370 and 2185 of file mars_lighthouse_towers.c.
MarsLighthouseTowersVenusStatueFlameStops
extern Uint16 MarsLighthouseTowersVenusStatueFlameStops[]
Uint16 MarsLighthouseTowersVenusStatueFlameStops[]
Referenced by scInit().
Definition at lines 1371 and 2191 of file mars_lighthouse_towers.c.
MarsLighthouseTowersFireballToWall
extern Sint32 MarsLighthouseTowersFireballToWall[]
Sint32 MarsLighthouseTowersFireballToWall[]
The fireballs' scripts: each pops up off its torch and drops just ahead of it.
References scActorPark(), scActorPopUp(), scMarsLighthouseTowersCrackCenterWall() and Sint32.
Referenced by scMarsLighthouseTowersShootFireballAtWall().
Definition at lines 1611 and 2197 of file mars_lighthouse_towers.c.
MarsLighthouseTowersFireballToIcebergs
extern Sint32 MarsLighthouseTowersFireballToIcebergs[]
Sint32 MarsLighthouseTowersFireballToIcebergs[]
References scActorPark(), scActorPopUp(), scMarsLighthouseTowersMeltIcebergs() and Sint32.
Referenced by scMarsLighthouseTowersShootFireballAtIcebergs().
Definition at lines 1612 and 2210 of file mars_lighthouse_towers.c.
MarsLighthouseTowersFireballDrop
extern Sint32 MarsLighthouseTowersFireballDrop[]
Sint32 MarsLighthouseTowersFireballDrop[]
References scActorPark(), scActorPopUp() and Sint32.
Referenced by scMarsLighthouseTowersDropFireball().
Definition at lines 1613 and 2223 of file mars_lighthouse_towers.c.
WhirlwindEndScript
extern Sint32 WhirlwindEndScript[]
LATE_DATA Sint32 WhirlwindEndScript[]
References Sint32.
Referenced by scWhirlwindUpdate().
Definition at lines 1679 and 2770 of file mars_lighthouse_towers.c.
FieldEffectDurationScripts
extern const Sint32 *FieldEffectDurationScripts[]
LATE_DATA const Sint32 *FieldEffectDurationScripts[]
References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.
Referenced by fdEffectSpawnResident(), scFieldEffectSpawn() and scFieldEffectSpawnLocal().
Definition at lines 1859 and 2777 of file mars_lighthouse_towers.c.
MarsLighthouseTowersTorchScript
Sint32 MarsLighthouseTowersTorchScript[]
The towers' torches' script.
References scMarsLighthouseTowersSetUpTorch() and Sint32.
Referenced by MarsLighthouseTowersJupiterTowerPlacements, MarsLighthouseTowersMarsTowerPlacements and MarsLighthouseTowersMercuryTowerPlacements.
Definition at line 1962 of file mars_lighthouse_towers.c.
MarsLighthouseTowersVenusEastFlameThrowerRoute
Sint32 MarsLighthouseTowersVenusEastFlameThrowerRoute[]
The Venus tower's moving flame throwers: each slides east and west along the wall, pausing at each end.
References Sint32.
Referenced by MarsLighthouseTowersVenusTowerPlacements.
Definition at line 1970 of file mars_lighthouse_towers.c.
MarsLighthouseTowersVenusWestFlameThrowerRoute
Sint32 MarsLighthouseTowersVenusWestFlameThrowerRoute[]
References Sint32.
Referenced by MarsLighthouseTowersVenusTowerPlacements.
Definition at line 1984 of file mars_lighthouse_towers.c.
MarsLighthouseTowersButtonFlameThrowerRoute
Sint32 MarsLighthouseTowersButtonFlameThrowerRoute[]
The Mars tower's button flame thrower: raised on the wall, it waits for the button
(FLAG_BUTTON_PRESSED), then slides east and west for good.
References Sint32.
Referenced by MarsLighthouseTowersMarsTowerPlacements.
Definition at line 2000 of file mars_lighthouse_towers.c.
MarsLighthouseTowersJupiterWestFlameThrowerRoute
Sint32 MarsLighthouseTowersJupiterWestFlameThrowerRoute[]
The Jupiter tower's moving flame throwers, each back and forth along its wall; the east one also rises and drops.
References Sint32.
Referenced by MarsLighthouseTowersJupiterTowerPlacements.
Definition at line 2027 of file mars_lighthouse_towers.c.
MarsLighthouseTowersJupiterEastFlameThrowerRoute
Sint32 MarsLighthouseTowersJupiterEastFlameThrowerRoute[]
References Sint32.
Referenced by MarsLighthouseTowersJupiterTowerPlacements.
Definition at line 2047 of file mars_lighthouse_towers.c.
MarsLighthouseTowersJupiterLowerFlameThrowerSetUp
Sint32 MarsLighthouseTowersJupiterLowerFlameThrowerSetUp[]
The Jupiter tower's flame thrower that stays put, raised on its wall.
References Sint32.
Referenced by MarsLighthouseTowersJupiterTowerPlacements.
Definition at line 2077 of file mars_lighthouse_towers.c.
MarsLighthouseTowersJupiterFarFlameThrowerRoute
Sint32 MarsLighthouseTowersJupiterFarFlameThrowerRoute[]
References Sint32.
Referenced by MarsLighthouseTowersJupiterTowerPlacements.
Definition at line 2087 of file mars_lighthouse_towers.c.
SceneEntrances
LATE_DATA SCENE_ENTRANCE SceneEntrances[]
Referenced by scGetEntrances().
Definition at line 2255 of file mars_lighthouse_towers.c.
SceneExits
LATE_DATA Uint32 SceneExits[]
Referenced by scGetExits().
Definition at line 2260 of file mars_lighthouse_towers.c.
Sint32
LATE_DATA Sint32
Referenced by ActorApproachWatchedScript, ActorCameraScript, ActorFaceWatchedScript, ActorFlyScript, ActorFootprintScript, ActorHoverScript, ActorIdleScript, ActorKeyCheckScript, ActorKeysScript, ActorLaunchScript, ActorOffsetScript, ActorPlacements, ActorPlayerScript, ActorRippleScript, ActorRopeScript, ActorSailOnMapScript, ActorSailScript, ActorSandOnWorldMapScript, ActorSandPuffScript, ActorSandScript, ActorScriptCycleTable, ActorScriptEndScript, ActorScriptIdleScript, ActorSplashScript, ActorStepAngleScript, ActorTightropeScript, ActorWaitScript, ActorWalkingScript, ActorWorldMapScript, AirsRockEntrancePlacements, AirsRockInsideFaceVentsPlacements, AirsRockInsideLeaderLevel, AirsRockInsideOrbitingSparkScript, AirsRockInsidePairedStakesPlacements, AirsRockInsideStampedHeight, AirsRockInsideStampedMetatile, AirsRockInsideStampedWidth, AirsRockInsideStampedX, AirsRockInsideStampedZ, AirsRockInsideTightropesPlacements, AirsRockInsideTurningBridgePlacements, AirsRockInsideWindStonePlacements, AirsRockLeaderLevel, AirsRockRubbleScript, AirsRockWindStoneScript, AlhafraActorPlacementsOnceTheMastIsCleared, AlhafraAlhafranLeadsBehindFelixScript, AlhafraElderStepsBackScript, AlhafranCaveGuardStepsAsideScript, AlhafranCaveIdleEventTick and 4596 more.
Definition at lines 2766 and 2768 of file mars_lighthouse_towers.c.