Skip to Content
The Alchemy Project

src/scene/airs_rock_inside.c

Inside Air's Rock, reached through the doorway the lightning opens at its top, with a golden door low on its cliff also leading into the great hall (airs_rock.c): the hall and the rooms around it, their doorways marked by coloured dots. More…

Macros

NameDescription
#defineFLAG_AIRS_ROCK_HALL_MOVABLE_STATUE_PLACED 0xa8eSet once Move has left the hall's movable statue on half metatile (103, 41).
#defineFLAG_AIRS_ROCK_ENTRANCE_WEST_PILLAR_PLACED 0x898Set once Move has left the entrance room's western pillar on (13, 49).
#defineFLAG_AIRS_ROCK_ENTRANCE_EAST_PILLAR_PLACED 0x897Set once Move has left its eastern pillar on (41, 49).
#defineFLAG_AIRS_ROCK_STATUES_FIRST_PILLAR_PLACED 0x89bSet once Move has left the statues room's first pillar on (33, 79).
#defineFLAG_AIRS_ROCK_STATUES_SECOND_PILLAR_PLACED 0x89cIts second, on (77, 71).
#defineFLAG_AIRS_ROCK_STATUES_THIRD_PILLAR_PLACED 0x89dIts third, on (59, 65).
#defineFLAG_AIRS_ROCK_TIGHTROPES_PILLAR_PLACED 0x89eSet once Move has left the tightropes room's pillar on (81, 37).
#defineFLAG_AIRS_ROCK_TURNING_BRIDGE_PILLAR_MOVED 0x89fSet once a gust has dropped the turning bridge room's pillar below its bridge (scAirsRockInsideBlowGust).
#defineFLAG_AIRS_ROCK_PAIRED_STAKES_PILLAR_PLACED 0x8d0Set once Move has left the paired stakes room's pillar on (43, 87).
#defineFLAG_AIRS_ROCK_FACE_VENTS_FIRST_PILLAR_PLACED 0x8d1Set once Move has left the face vents room's first pillar on (35, 59).
#defineFLAG_AIRS_ROCK_FACE_VENTS_SECOND_PILLAR_PLACED 0x8d2Its second, on (45, 105).
#defineFLAG_AIRS_ROCK_FACE_VENTS_THIRD_PILLAR_PLACED 0xa8fIts third, on (23, 77).
#defineFLAG_AIRS_ROCK_WIND_STONE_PILLAR_PLACED 0x8d3Set once Move has left the Wind Stone room's pillar on (45, 33).
#defineFLAG_AIRS_ROCK_HALL_STATUE_WOKEN 0x89aStory flags: the statues of the hall and the entrance room woken by Whirlwind, and the Reveal tablet read.
#defineFLAG_AIRS_ROCK_ENTRANCE_STATUE_WOKEN 0x899
#defineFLAG_REVEAL_TABLET_READ 0x8d4
#defineFLAG_STAKE_A_DOWN FLAG_SCENE_TEMP(0x00)The paired stakes room's stakes, each set while it is down; B and C go down as the party comes in.
#defineFLAG_STAKE_B_DOWN FLAG_SCENE_TEMP(0x01)
#defineFLAG_STAKE_C_DOWN FLAG_SCENE_TEMP(0x02)
#defineFLAG_STAKE_D_DOWN FLAG_SCENE_TEMP(0x03)
#defineFLAG_SOUTHEAST_VENT_STILL FLAG_SCENE_TEMP(0x00)The face vents room's vents kept still by where Move leaves a pillar (scAirsRockInsideFinishPushingPillar): the vent beside each puffs in its turn (scAirsRockInsidePuffVents).
#defineFLAG_MIDDLE_WEST_VENT_STILL FLAG_SCENE_TEMP(0x01)
#defineFLAG_NORTHEAST_VENT_STILL FLAG_SCENE_TEMP(0x02)
#defineFLAG_STONE_VANISHED FLAG_SCENE_TEMP(0x00)The Reveal tablet room: set once a stepping stone has vanished, and one flag for each stone from the southernmost, set once it has.
#defineFLAG_FIRST_STONE_VANISHED FLAG_SCENE_TEMP(0x02)
#defineFLAG_TIGHTROPES_GUST_PATH_CLEARED FLAG_AREA_TEMP(0x00)What the gusts leave for the rest of the visit: the metatiles a gust clears on its path in the tightropes room (the set-up sets it on every entry, so the room always shows them cleared), a turning bridge turned from its first lie, the turning bridge room's pillar left on its bridge, and a golden barrier blown away in the paired stakes and Wind Stone rooms.
#defineFLAG_TIGHTROPES_BRIDGE_TURNED FLAG_AREA_TEMP(0x01)
#defineFLAG_TURNING_BRIDGE_TURNED FLAG_AREA_TEMP(0x02)
#defineFLAG_TURNING_BRIDGE_PILLAR_ON_BRIDGE FLAG_AREA_TEMP(0x03)
#defineFLAG_PAIRED_STAKES_NORTH_BARRIER_BLOWN_AWAY FLAG_AREA_TEMP(0x04)
#defineFLAG_PAIRED_STAKES_SOUTH_BARRIER_BLOWN_AWAY FLAG_AREA_TEMP(0x05)
#defineFLAG_WIND_STONE_BARRIER_BLOWN_AWAY FLAG_AREA_TEMP(0x06)
#defineTURNING_BRIDGE_PILLAR_ON_BRIDGE_X 65The turning bridge room's pillar column, in half metatiles, that stands it on the turning bridge.
#defineMETATILE_BEHAVIOR_AIRS_ROCK_INSIDE_GUST_STOP 30the first stop's code
#defineACTOR_REVEAL_TABLET ACTOR_FIRST_PLACEDThe Reveal tablet (SPRITE_SLATE), which rises as Sheba reads it.
#defineEFFECT_SET_MODE fdActorSelectAnimation
#defineEFFECT_SET_SCRIPT fdActorStartScript
#defineEFFECT_SPRITE_PRIORITY
#defineSTAKE_ROW_BYTES (STAKE_ROW_TILES * TILE_SIZE_8BPP)The bytes of one 8-pixel row of a stake's picture.
#defineTARGET (effect) ((effect)->target)The actor the gust is cast at: the field effect's target.
#defineGUST_DROP (x, z) (((x) / 8 << 16) | (z) / 8)The half metatile where a gust drops what it carries: x in the high half and z in the low.
#defineGUST_DROP_X (drop) ((drop) >> 16)
#definePICK_UP (actor, at)The gust picks up an actor it passes over, to drop it at at (GUST_DROP).
#defineSHAKE ()One shake of the walls, with the grinding of a gate.
#defineDEFINE_AIRS_ROCK_INSIDE_TRACK_LEADER_METATILE (name, n1)As Felix steps onto a stepping stone stacked on another, three metatiles of the picture under him are saved at (73, 72) and the stack's picture kept at (72, 72) is drawn in their place.
#defineDEFINE_AIRS_ROCK_INSIDE_SET_DOORS (name, groundColumn, pictureColumn)Defines a function that sets the Reveal tablet room's two hidden doorways, at metatiles (8, 19) and (24, 19), from the spare metatiles of row 17: their ground from column groundColumn, their pictures from column pictureColumn.
#defineDEFINE_AIRS_ROCK_INSIDE_READ_TABLET (name, sideX)Defines a function for examining the Reveal tablet from one side: once it has been read the game only says so; before, Felix walks from sideX round to its front, faces it, and Sheba reads it.

Enumerations

NameDescription
enumanonymous enum { ENTRANCE_HALL_FROM_REVEAL_TABLET, ENTRANCE_HALL_LANDING, ENT … }The hall's entrance from the Reveal tablet's room, and where the party lands after dropping from the entrance room (scAirsRockInsideLandInHall); the entrance room's entrance on the lift from the hall (scAirsRockInsideRiseOnLift).
enumanonymous enum { HALL_LAST_GREAT_HALL_ENTRANCE, HALL_LAST_NORTHEAST_ROOM_ENTR … }The hall's entrances by the part of it they open on: up to the first of these the great hall itself, then its northeast room, and past the second its east room.
enumAIRS_ROCK_INSIDE_METATILE_BEHAVIOR { METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_STONES_SOUTH_END, METATIL … }The collision codes this scene reads by name.
enumAIRS_ROCK_INSIDE_FACE_VENTS_VENT { METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_SOUTHWEST_VENT, METATILE_ … }The face vents room's six vents, by the metatile in front of each on the ground layer: south of the room the west and east one, in its middle the west and east one, in its north the west and east one.
enumAIRS_ROCK_INSIDE_GUST_STOP { GUST_STOP_PAIRED_STAKES_NORTH_BARRIER, GUST_STOP_LAST_BARRIE … }Where a gust stops on the overhead layer (scAirsRockInsideBlowGust), its code less METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_GUST_STOP: up to GUST_STOP_LAST_BARRIER it blows on, clearing what blocks its path, as the golden barriers of the paired stakes and Wind Stone rooms.
enumAIRS_ROCK_INSIDE_RAISED_CUE { CUE_PUFF_REACHES_LEADER, CUE_LEFT_METATILE, CUE_FIRST_VANISH … }The cues this scene raises (FIELD_STATE.raisedCue) besides a statue's whirlwind carrying the leader (RAISED_RIDE_WHIRLWIND), each room reading them its own way: a vent's puff reaching him, and in the Reveal tablet room, a metatile he has left, as CUE_LEFT_METATILE plus its collision code.
enumAIRS_ROCK_INSIDE_HALL_ACTOR_ID { ACTOR_HALL_WEST_STATUE, ACTOR_HALL_EAST_STATUE, ACTOR_HALL_T … }The actors of each inner room, numbering its placement table.
enumAIRS_ROCK_INSIDE_ENTRANCE_ACTOR_ID { ACTOR_ENTRANCE_STATUE, ACTOR_ENTRANCE_EAST_PILLAR, ACTOR_ENT … }The entrance room (AirsRockInsideEntrancePlacements).
enumAIRS_ROCK_INSIDE_STATUES_ACTOR_ID { ACTOR_STATUES_FIRST_PILLAR, ACTOR_STATUES_STATUE_A, ACTOR_ST … }The statues' room (AirsRockInsideStatuesPlacements).
enumAIRS_ROCK_INSIDE_TIGHTROPES_ACTOR_ID { ACTOR_TIGHTROPES_NORTH_WIND_STONE, ACTOR_TIGHTROPES_PILLAR, … }The tightropes' room (AirsRockInsideTightropesPlacements).
enumAIRS_ROCK_INSIDE_TURNING_BRIDGE_ACTOR_ID { ACTOR_TURNING_BRIDGE_PILLAR, ACTOR_TURNING_BRIDGE_SOUTH_WIND … }The turning bridge's room (AirsRockInsideTurningBridgePlacements).
enumAIRS_ROCK_INSIDE_PAIRED_STAKES_ACTOR_ID { ACTOR_PAIRED_STAKES_PILLAR, ACTOR_PAIRED_STAKES_PILLAR_A, AC … }The paired stakes' room (AirsRockInsidePairedStakesPlacements).
enumAIRS_ROCK_INSIDE_FACE_VENTS_ACTOR_ID { ACTOR_FACE_VENTS_FIRST_PILLAR, ACTOR_FACE_VENTS_SECOND_PILLA … }The room of the face vents (AirsRockInsideFaceVentsPlacements).
enumAIRS_ROCK_INSIDE_WIND_STONE_ACTOR_ID { ACTOR_WIND_STONE, ACTOR_WIND_STONE_PILLAR, ACTOR_WIND_STONE_ … }The Wind Stone's room (AirsRockInsideWindStonePlacements).
enumanonymous enum { STAKE_ROW_TILES, STAKE_DRAWN_TILES, STAKE_TOP_ROWS }A stake's picture in OBJ VRAM (stake.png): 32 by 64 pixels of 256-colour tiles, four to each 8-pixel row, the stake itself within the first three of them.
enumanonymous enum { WHIRLWIND_REACH_ABOVE }How near a whirlwind comes to catch the leader above him while others move him, in his metatile's row, in pixels; on his level it is WHIRLWIND_REACH.
enumanonymous enum { SCATTERED_SPARKS }The sparks scAirsRockInsideScatterSparks raises, 5 ticks apart.
enumanonymous enum { TABLET_SPARKS }The sparks that rise from the tablet as it lifts.
enumanonymous enum { ORBITING_SPARKS, ORBITING_SPARK_TICKS }The sparks that spiral in on Sheba, one set out every ORBITING_SPARK_TICKS.
enumanonymous enum { SEEKING_SPARK_PHASES }The sparks that then close in on her start every 2 pixels up her, each circling out as far as the sine of its height in 64ths of a turn (scOrbitUpdate's phase), short of SEEKING_SPARK_PHASES, half a turn, where the sine is 0 again.

Functions

NameDescription
voidscAirsRockInsideRestoreMetatileBehindLeader (void)Nothing visible of its own: once Felix stands still on a new metatile, the stepping stone he last stood on is drawn as before; in the Reveal tablet room, leaving a metatile with a collision code raises CUE_LEFT_METATILE plus the code, which for a vanishing stone is its cue (CUE_FIRST_VANISHING_STONE on).
voidscAirsRockInsideBurstDust (Sint32 x, Sint32 z)A burst of eight puffs of dust around x, z, and the walls shake.
voidscAirsRockInsideScatterSparks (Sint32 x, Sint32 z)Sparks rise one after another around x, z.
voidscAirsRockInsideStampMetatileUnderLeader (void)As Felix steps onto one of the yellow stepping stones marked with a diamond, in the great hall and the rooms around it, the stone is drawn again under his feet, in front of what lies behind it, so that he is seen standing on it; nothing else changes.
voidscAirsRockInsideReadRevealTablet (void)Checking the tablet shows its message; the first time (FLAG_REVEAL_TABLET_READ) Sheba learns Reveal, as Magma Rock's tablet does for Blaze.
voidscAirsRockInsideStartRestoringMetatiles (void)Starts scAirsRockInsideRestoreMetatileBehindLeader with no metatile stamped yet.
voidscAirsRockInsideSetLedgeMetatilesByLevel (void)An event in the great hall: as the leader climbs, two blocks of metatiles at the hall's west and east sides take the collision codes kept for the level he is at, the three levels 96 pixels apart.
voidscAirsRockInsideSpawnMotes (void)Eight motes of light drift about the hall, each starting a little after the last; the odd ones swell slowly, the even ones quickly.
voidscAirsRockInsideRiseOnLift (void)The leader rises 80 pixels on a lift into the room.
voidscAirsRockInsidePlaceStakes (Uint16 *list)Places the stakes of a list ended by ACTOR_LIST_END, each entry three halfwords: the stake, the first of its poses and the flag that says whether it has sunk, which picks between them.
voidscAirsRockInsideTakeOverWhirlwind (void)Nothing visible happens of its own as Felix casts Whirlwind on a twister rock or a Wind Stone inside the rock; the game tells Whirlwind to leave out its usual little whirlwind, so that what follows is the rock's or the stone's own (scAirsRockInsideBlowGust, scAirsRockInsideWakeHallStatue and scAirsRockInsideWakeEntranceStatue).
voidscAirsRockInsideRideWhirlwind (void)The leader rides a statue's whirlwind along its path until it fades.
voidscAirsRockInsideBlowGust (void)Whirlwind on a Wind Stone: a gust rises from it and blows away from the leader until a wall or something on the overhead layer stops it, carrying the room's pillar or statue it passes (GUST_DROP).
voidscAirsRockInsideStampOtherMetatileUnderLeader (void)The same for the stepping stones of a second kind, in the hall, the entrance room, the Reveal tablet's room and the turning bridge room: the stone is drawn again under Felix's feet from the picture kept at (71, 72).
voidscAirsRockInsideStampTallMetatileUnderLeader (void)As Felix steps onto one of the stacked stepping stones in the great hall, the stack is drawn again under his feet, in front of the wall behind it, so that he is seen standing on top of it; nothing else changes.
voidscAirsRockInsideStampTallMetatileUnderLeaderNearer (void)The same for the stacked stepping stones one row nearer the screen.
voidscAirsRockInsideWakeHallStatue (void)Felix casts Whirlwind on the twister rock in the great hall: it glows, a ball of purple light flies north up the hall to the great stone face, whose eyes light red as its mouth opens with a rumble and rocks fall, and from then on its statues breathe whirlwinds the party can ride.
voidscAirsRockInsideOpenTabletRoomDoor (void)Walking north into the door at the top of the hall's tower: it opens with a thump, and the leader walks through into the Reveal tablet's room.
voidscAirsRockInsideStartPushingPillar (void)Nothing visible happens of its own as Felix starts to push a pillar or a statue inside the rock, or casts Move on one; the game takes it off the metatiles it was blocking so that it can slide.
voidscAirsRockInsideFinishPushingPillar (void)Once Felix has pushed or moved a pillar or a statue inside the rock: one left over lower ground drops onto it with a thump, and one left in the place it belongs stays there on later visits, as a shortcut or a step.
voidscAirsRockInsideWakeEntranceStatue (void)Felix casts Whirlwind on the twister rock in the entrance room: it glows, a ball of purple light flies north to the room's great stone face, whose eyes light red and whose mouth opens with a roar (the metatiles from (12, 77) down), and the statue below it wakes and starts breathing whirlwinds.
voidscAirsRockInsideJumpDownLedge (void)Walking south off the entrance room's ledge: the leader jumps down, to land in the hall below (scAirsRockInsideLandInHall).
voidscAirsRockInsideRideStatuesVent (void)A puff of steam from one of the vents in the statues room catches Felix north of the vents and, with a chime, blows him back south to metatile (23, 41) in front of them, without turning him round.
voidscAirsRockInsideStepOffVanishingStone (void)Felix steps off one of the stepping stones that cross the Reveal tablet's room, and it fades away behind him with a drip, leaving a gap, for good.
voidscAirsRockInsideStampWideMetatileUnderLeader (void)As Felix steps onto one of the stepping stones on row 19 of the Reveal tablet's room, beside its two hidden doorways, it lights up gold under his feet, and goes back to yellow once he has left it.
voidscAirsRockInsideHideRevealedDoors (void)Nothing visible of its own: as Reveal fades, the Reveal tablet room's two hidden doorways, at metatiles (8, 19) and (24, 19), are walls again.
voidscAirsRockInsideRevealDoors (void)Felix casts Reveal in the Reveal tablet's room, and two hidden doorways show in its walls, at metatiles (8, 19) and (24, 19), for as long as it lasts.
voidscAirsRockInsideWalkToRevealTablet (void)Felix examines the Reveal tablet from the south: read already, it says so; otherwise he walks round to its front and Sheba reads it.
voidscAirsRockInsideReadTabletFacingWest (void)Felix examines the Reveal tablet from its east side, facing west: he walks round to its front and Sheba reads it, as from the south (scAirsRockInsideWalkToRevealTablet).
voidscAirsRockInsideReadTabletFacingEast (void)Felix examines the Reveal tablet from its west side, facing east: the same.
voidscAirsRockInsideMoveTurningBridgePillar (void)Felix casts Move on the pillar in the turning bridge room; nothing more than the move shows, but the game remembers whether it now stands on the turning bridge, which then cannot turn under a gust.
voidscAirsRockInsidePoundPairedStakesStake (Sint32 mode, Sint32 step)Felix casts Pound on one of the four stakes in the paired stakes room: it sinks into the floor and the other stake of its pair rises (scAirsRockInsidePoundStake).
voidscAirsRockInsideStepOntoStake (void)Stepping onto a raised stake's top: unless a pillar stands on its pair, the stake sinks under the leader and its partner rises (as scAirsRockInsidePoundStake draws it).
voidscAirsRockInsideRideFaceVent (void)A vent's puff has reached the leader in the face vents room: standing in front of a vent, he is blown down to the place below it with a chime.
voidscAirsRockInsideCheckPsynergyStone (void)Checking the Psynergy Stone restores the party's PP.
voidscAirsRockInsideIgnoreStep (void)Nothing happens as Felix walks west into the ledge of the Reveal tablet's room.
voidfdActorPlaySoundInView (ACTOR *actor, Sint32 sound)Plays sound when the actor is in view: within 152 pixels across and 112 up or down the screen of the actor the camera follows.
voidscAirsRockInsideSetStakeMetatiles (ACTOR *actor)Sets a stake's metatiles by its flag, set once it has sunk: a sunk stake's metatile is open ground and its height drops 32 pixels unless it stands on its ground, drawn under the leader; a raised one is a wall on the overhead layer with its top (METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_STAKE_TOP) on the ground layer, 32 pixels higher.
voidscPillarPlace (Sint16 *list)Unused: places the pillars of a list as shared/pillar_place.c does, reading its halfwords as signed.
voidscAirsRockInsideScatterMote (ACTOR *actor)A mote of light moves on to a random spot, x 176 to 431 pixels and y and z up to 31 and 127 pixels past the leader's, to drift there for its lifetime in ticks, swelling slowly or quickly by it.
voidscAirsRockInsideDriftMote (ACTOR *actor)A mote's update: after its start delay it sways as it drifts upward, a sway every 64 pixels of depth and every 128 of height, scattering again when its time is up; it and the map's animations stop while a menu, Psynergy or an item is in use.
voidscAirsRockInsideStartWhirlwind (void)Nothing visible happens of its own as Felix starts casting Whirlwind on a twister rock or a Wind Stone inside the rock; the game clears what is pending so that the cast can go on to the rock's or stone's own whirlwind (scAirsRockInsideTakeOverWhirlwind).
voidscAirsRockInsidePoundStake (Sint32 mode, Sint32 step)One step of Pound on a stake: the target sinks and its partner, the other of its pair, rises.
voidscAirsRockInsideMoveWhirlwind (ACTOR *shot)A statue's whirlwind: it moves 1.5 pixels a tick the way it faces, upward when it faces north, and where the overhead layer reads METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_WHIRLWIND_END it fades (facing north) or rises.
voidscAirsRockInsideStatueBreathesWhirlwind (ACTOR *actor)A woken statue's update: while no menu, Psynergy or item is in use it counts ticks in its timer, and every WHIRLWIND_BREATH_TICKS breathes a new whirlwind 8 pixels ahead of it, with a puff of dust below and a flare unless the leader is riding one.
voidscAirsRockInsideWakeStatue (ACTOR *actor, Sint16 timer, Uint8 landingLayer)Wakes a statue unless the party keeps its place: it breathes its first whirlwind once its timer reaches WHIRLWIND_BREATH_TICKS, and its whirlwinds set the leader down on the ledge of layer landingLayer.
voidscAirsRockInsideMovePooledWhirlwind (ACTOR *shot)A whirlwind of the hall's movable statue, one of three it uses in turn: as scAirsRockInsideMoveWhirlwind, but it also holds still until the room's opening transition has begun (FIELD_STATE.transitionActive).
voidscAirsRockInsideStatueBreathesPooledWhirlwind (ACTOR *actor)The movable statue's update: as scAirsRockInsideStatueBreathesWhirlwind, but breathing the first of its three whirlwinds that is not on its way.
voidscAirsRockInsideWakeMovableStatue (ACTOR *actor, Sint16 timer, Uint8 landingLayer)Wakes the hall's movable statue as scAirsRockInsideWakeStatue does.
voidscAirsRockInsideUpdateVentPuff (ACTOR *actor)A vent's puff of steam: it drifts and grows until its time runs out; reaching the leader it bounces back and carries him (CUE_PUFF_REACHES_LEADER), and it bounces off the room's pillars.
voidscAirsRockInsidePuffVent (Sint32 x, Sint32 y, Sint32 z)A puff of steam blown from a vent.
voidscAirsRockInsidePuffVents (void)An event: on two ticks in eight, while no menu, Psynergy or item is in use, a vent puffs steam (scAirsRockInsidePuffVent).
voidscAirsRockInsideFollowGust (ACTOR *actor)An actor a gust carries: it rides 8 pixels above the gust, its draw order flickering.
voidscAirsRockInsideSpiralGust (ACTOR *actor)A gust's spark: circles the centre kept in bounce and sceneWord, a lap every 32 ticks, its radius growing as it rises above the ground.
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 dock's ways lead back the way the party came into Lemuria, which the harbour and the shore of Ancient Lemuria note in FLAG_LEMURIA_OTHER_WAY_IN.
const ACTOR_PLACE *scGetActorPlacements (void)The scene's actor placements: a room of names for its entrance, else the debug room's.
voidscAirsRockInsideSpiralSpark (ACTOR *actor)A spark: circles the centre kept in bounce and sceneWord on an ellipse twice as wide as deep, the radius growing with its height; it rises by its gravity each tick and turns blue (SPRITE_COLOR_BLUE_TINT) and back every two ticks.
voidscAirsRockInsideFlickerTarget (ACTOR *actor)A Whirlwind target's update while the gust gathers: it flickers to the colour mode in sceneCount (a SPR_COL_MODE), at the rate sceneByte sets.
voidscAirsRockInsideVanishStone (Sint32 x, Sint32 y)A stepping stone the leader has crossed fades with a drip and is gone.
BoolscAirsRockInsideOrbitAnchor (ORBITER *orbiter)An orbiter's update: circles 8 pixels above its anchor, closing in 4 pixels a step and leaving sparks, until its countdown ends; 1 once it is 2 pixels out.
voidscAirsRockInsideShebaLearnsReveal (Sint32 tabletId, Sint32 shebaId)The tablet rises in a rumble, sparks circle Sheba and she learns Reveal.
const CUE *scGetCues (void)The cue table for the current room.
voidscAirsRockInsideLandInHall (void)Dropping from the entrance room: the leader falls 130 pixels into the hall and lands in a ring of dust.
Sint32scInit (void)Opens the room through the window transition, and in the debug room draws the cat 1.7 times its size.
Sint32scPrepareMap (void)Once Briggs is caught the pool has dried up: its colours take the dry ground's.

Variables

NameDescription
extern Sint32AirsRockInsideStampedMetatileThe metatile stampers keep their last metatile and the block they copy.
Sint32AirsRockInsideStampedWidth
Sint32AirsRockInsideStampedHeight
Sint32AirsRockInsideStampedX
Sint32AirsRockInsideStampedZ
extern ACTOR_PLACEAirsRockInsidePlacements []
extern ACTOR_PLACEAirsRockInsideHallPlacements []
extern ACTOR_PLACEAirsRockInsideEntrancePlacements []
extern ACTOR_PLACEAirsRockInsideStatuesPlacements []
extern ACTOR_PLACEAirsRockInsideRevealTabletPlacements []
extern Sint16AirsRockInsideHallPillars []The blocks Move pushes in each room (fdActorPlaceBlocks), ended by -1: the hall's statue.
extern Sint16AirsRockInsideEntrancePillars []The entrance room's two pillars.
extern Sint16AirsRockInsideStatuesPillars []The statues room's three pillars and its statue.
extern Sint16AirsRockInsideTightropesPillars []The tightropes room's pillar.
extern Sint16AirsRockInsidePairedStakesPillars []The paired stakes room's four pillars.
extern Sint16AirsRockInsideFaceVentsPillars []The face vents room's five pillars.
extern Sint16AirsRockInsideWindStonePillars []The Wind Stone room's pillar and statue.
extern CUEAirsRockInsideHallCues []
extern CUEAirsRockInsideEntranceCues []
extern CUEAirsRockInsideStatuesCues []
extern CUEAirsRockInsideTightropesCues []
extern CUEAirsRockInsideRevealTabletCues []
extern CUEAirsRockInsideTurningBridgeCues []
extern CUEAirsRockInsidePairedStakesCues []
extern CUEAirsRockInsideFaceVentsCues []
extern CUEAirsRockInsideWindStoneCues []
extern CUEAirsRockInsidePsynergyStoneCues []
extern Uint32FieldEffectMediumScript []The flash about the Tomegathericon: held 45 ticks, then put away and freed.
extern Uint32AirsRockInsideWindStoneScript []
extern ACTOR_PLACEAirsRockInsideTightropesPlacements []
extern ACTOR_PLACEAirsRockInsideTurningBridgePlacements []
extern ACTOR_PLACEAirsRockInsidePairedStakesPlacements []
extern ACTOR_PLACEAirsRockInsideFaceVentsPlacements []
extern ACTOR_PLACEAirsRockInsideWindStonePlacements []
extern Uint32AirsRockInsideWhirlwindFadesScript []
extern Uint32AirsRockInsideWhirlwindRisesScript []
extern Uint32AirsRockInsidePooledWhirlwindFadesScript []
extern SCENE_ENTRANCEAirsRockInsideEntrances []
extern SCENE_ENTRANCEAirsRockInsideHallEntrances []
extern Uint32OrbitSparkScript []An orbiting spark's script: it shows for 6 ticks, then is released.
extern Uint32LessonTabletRiseScript []The tablet lifts 24 pixels.
extern Uint32AirsRockInsideRisingSparkScript []
extern Sint32AirsRockInsideOrbitingSparkScript []
extern Uint32LessonAdeptRiseScript []The Adept rises 16 pixels.
extern Sint32LessonSeekingSparkScript []A spark of the lesson at the heart of Air's Rock, Aqua Rock and Gaia Rock: it circles and homes in on the Adept.
extern Sint32LessonTabletSettleScript []The tablet settles back on its stand.
extern Sint32LessonAdeptSettleScript []The Adept settles back to the ground.
extern Uint16AirsRockInsidePairedStakesStakes []The paired stakes room's four stakes, as scAirsRockInsidePlaceStakes reads them: each stake, its first pose and the flag set while it is sunk.
extern Sint32AirsRockInsideLeaderLevelThe great hall's level the leader stood at when its ledge metatiles were last set; -1 before.
extern Uint32FieldEffectShortScript []
extern Uint32FieldEffectLongScript []
const Sint32 *FieldEffectDurationScripts []The field effects' three scripts by how long an effect lasts: short, medium and long.
Uint32SceneExits []The room has no exits of its own.

Description

Inside Air's Rock, reached through the doorway the lightning opens at its top, with a golden door low on its cliff also leading into the great hall (airs_rock.c): the hall and the rooms around it, their doorways marked by coloured dots.

Felix moves pillars with Move or by pushing them, so that they fill gaps or block the vents whose puffs of steam blow him off his path; Pound sinks one of a pair of stakes and raises the other; Whirlwind on a Wind Stone sends a gust that carries pillars, blows golden barriers away and turns bridges, and on a twister rock wakes the statues, whose little whirlwinds carry the party. The party crosses tightropes and stepping stones that vanish behind them. At the heart of the rock, in the room of the Reveal tablet, Sheba reads the tablet and learns Reveal (scAirsRockInsideReadRevealTablet), and a Psynergy Stone in another room restores the party's PP (scAirsRockInsideCheckPsynergyStone).

Macros in detail

FLAG_AIRS_ROCK_HALL_MOVABLE_STATUE_PLACED

#define FLAG_AIRS_ROCK_HALL_MOVABLE_STATUE_PLACED 0xa8e

Set once Move has left the hall's movable statue on half metatile (103, 41).

Referenced by scAirsRockInsideFinishPushingPillar() and scInit().

Definition at line 27 of file airs_rock_inside.c.

FLAG_AIRS_ROCK_ENTRANCE_WEST_PILLAR_PLACED

#define FLAG_AIRS_ROCK_ENTRANCE_WEST_PILLAR_PLACED 0x898

Set once Move has left the entrance room's western pillar on (13, 49).

Referenced by AirsRockInsideEntranceCues, scAirsRockInsideFinishPushingPillar() and scInit().

Definition at line 29 of file airs_rock_inside.c.

FLAG_AIRS_ROCK_ENTRANCE_EAST_PILLAR_PLACED

#define FLAG_AIRS_ROCK_ENTRANCE_EAST_PILLAR_PLACED 0x897

Set once Move has left its eastern pillar on (41, 49).

Referenced by AirsRockInsideEntranceCues, scAirsRockInsideFinishPushingPillar() and scInit().

Definition at line 31 of file airs_rock_inside.c.

FLAG_AIRS_ROCK_STATUES_FIRST_PILLAR_PLACED

#define FLAG_AIRS_ROCK_STATUES_FIRST_PILLAR_PLACED 0x89b

Set once Move has left the statues room's first pillar on (33, 79).

Referenced by AirsRockInsideStatuesCues, scAirsRockInsideFinishPushingPillar(), scAirsRockInsidePuffVents() and scInit().

Definition at line 33 of file airs_rock_inside.c.

FLAG_AIRS_ROCK_STATUES_SECOND_PILLAR_PLACED

#define FLAG_AIRS_ROCK_STATUES_SECOND_PILLAR_PLACED 0x89c

Its second, on (77, 71).

Referenced by AirsRockInsideStatuesCues, scAirsRockInsideFinishPushingPillar() and scInit().

Definition at line 35 of file airs_rock_inside.c.

FLAG_AIRS_ROCK_STATUES_THIRD_PILLAR_PLACED

#define FLAG_AIRS_ROCK_STATUES_THIRD_PILLAR_PLACED 0x89d

Its third, on (59, 65).

Referenced by AirsRockInsideStatuesCues, scAirsRockInsideFinishPushingPillar() and scInit().

Definition at line 37 of file airs_rock_inside.c.

FLAG_AIRS_ROCK_TIGHTROPES_PILLAR_PLACED

#define FLAG_AIRS_ROCK_TIGHTROPES_PILLAR_PLACED 0x89e

Set once Move has left the tightropes room's pillar on (81, 37).

Referenced by AirsRockInsideTightropesCues, scAirsRockInsideFinishPushingPillar() and scInit().

Definition at line 39 of file airs_rock_inside.c.

FLAG_AIRS_ROCK_TURNING_BRIDGE_PILLAR_MOVED

#define FLAG_AIRS_ROCK_TURNING_BRIDGE_PILLAR_MOVED 0x89f

Set once a gust has dropped the turning bridge room's pillar below its bridge (scAirsRockInsideBlowGust). The set-up sets it on every entry, so the room always shows the pillar dropped and its Move cue never runs.

Referenced by AirsRockInsideTurningBridgeCues, scAirsRockInsideBlowGust() and scInit().

Definition at line 43 of file airs_rock_inside.c.

FLAG_AIRS_ROCK_PAIRED_STAKES_PILLAR_PLACED

#define FLAG_AIRS_ROCK_PAIRED_STAKES_PILLAR_PLACED 0x8d0

Set once Move has left the paired stakes room's pillar on (43, 87).

Referenced by AirsRockInsidePairedStakesCues, scAirsRockInsideFinishPushingPillar() and scInit().

Definition at line 45 of file airs_rock_inside.c.

FLAG_AIRS_ROCK_FACE_VENTS_FIRST_PILLAR_PLACED

#define FLAG_AIRS_ROCK_FACE_VENTS_FIRST_PILLAR_PLACED 0x8d1

Set once Move has left the face vents room's first pillar on (35, 59).

Referenced by AirsRockInsideFaceVentsCues, scAirsRockInsideFinishPushingPillar() and scInit().

Definition at line 47 of file airs_rock_inside.c.

FLAG_AIRS_ROCK_FACE_VENTS_SECOND_PILLAR_PLACED

#define FLAG_AIRS_ROCK_FACE_VENTS_SECOND_PILLAR_PLACED 0x8d2

Its second, on (45, 105).

Referenced by AirsRockInsideFaceVentsCues, scAirsRockInsideFinishPushingPillar() and scInit().

Definition at line 49 of file airs_rock_inside.c.

FLAG_AIRS_ROCK_FACE_VENTS_THIRD_PILLAR_PLACED

#define FLAG_AIRS_ROCK_FACE_VENTS_THIRD_PILLAR_PLACED 0xa8f

Its third, on (23, 77).

Referenced by AirsRockInsideFaceVentsCues, scAirsRockInsideFinishPushingPillar() and scInit().

Definition at line 51 of file airs_rock_inside.c.

FLAG_AIRS_ROCK_WIND_STONE_PILLAR_PLACED

#define FLAG_AIRS_ROCK_WIND_STONE_PILLAR_PLACED 0x8d3

Set once Move has left the Wind Stone room's pillar on (45, 33).

Referenced by AirsRockInsideWindStoneCues, scAirsRockInsideFinishPushingPillar() and scInit().

Definition at line 53 of file airs_rock_inside.c.

FLAG_AIRS_ROCK_HALL_STATUE_WOKEN

#define FLAG_AIRS_ROCK_HALL_STATUE_WOKEN 0x89a

Story flags: the statues of the hall and the entrance room woken by Whirlwind, and the Reveal tablet read.

Referenced by AirsRockInsideHallCues, scAirsRockInsideWakeHallStatue() and scInit().

Definition at line 57 of file airs_rock_inside.c.

FLAG_AIRS_ROCK_ENTRANCE_STATUE_WOKEN

#define FLAG_AIRS_ROCK_ENTRANCE_STATUE_WOKEN 0x899

Referenced by AirsRockInsideEntranceCues, scAirsRockInsideBlowGust(), scAirsRockInsideWakeEntranceStatue() and scInit().

Definition at line 58 of file airs_rock_inside.c.

FLAG_REVEAL_TABLET_READ

#define FLAG_REVEAL_TABLET_READ 0x8d4

Referenced by scAirsRockInsideReadRevealTablet() and scAirsRockInsideWalkToRevealTablet().

Definition at line 59 of file airs_rock_inside.c.

FLAG_STAKE_A_DOWN

#define FLAG_STAKE_A_DOWN FLAG_SCENE_TEMP(0x00)

The paired stakes room's stakes, each set while it is down; B and C go down as the party comes in.

Referenced by AirsRockInsidePairedStakesCues and AirsRockInsidePairedStakesStakes.

Definition at line 63 of file airs_rock_inside.c.

FLAG_STAKE_B_DOWN

#define FLAG_STAKE_B_DOWN FLAG_SCENE_TEMP(0x01)

Referenced by AirsRockInsidePairedStakesCues, AirsRockInsidePairedStakesStakes and scInit().

Definition at line 64 of file airs_rock_inside.c.

FLAG_STAKE_C_DOWN

#define FLAG_STAKE_C_DOWN FLAG_SCENE_TEMP(0x02)

Referenced by AirsRockInsidePairedStakesCues, AirsRockInsidePairedStakesStakes and scInit().

Definition at line 65 of file airs_rock_inside.c.

FLAG_STAKE_D_DOWN

#define FLAG_STAKE_D_DOWN FLAG_SCENE_TEMP(0x03)

Referenced by AirsRockInsidePairedStakesCues and AirsRockInsidePairedStakesStakes.

Definition at line 66 of file airs_rock_inside.c.

FLAG_SOUTHEAST_VENT_STILL

#define FLAG_SOUTHEAST_VENT_STILL FLAG_SCENE_TEMP(0x00)

The face vents room's vents kept still by where Move leaves a pillar (scAirsRockInsideFinishPushingPillar): the vent beside each puffs in its turn (scAirsRockInsidePuffVents).

Referenced by scAirsRockInsideFinishPushingPillar(), scAirsRockInsidePuffVents() and scInit().

Definition at line 71 of file airs_rock_inside.c.

FLAG_MIDDLE_WEST_VENT_STILL

#define FLAG_MIDDLE_WEST_VENT_STILL FLAG_SCENE_TEMP(0x01)

Referenced by scAirsRockInsideFinishPushingPillar() and scAirsRockInsidePuffVents().

Definition at line 72 of file airs_rock_inside.c.

FLAG_NORTHEAST_VENT_STILL

#define FLAG_NORTHEAST_VENT_STILL FLAG_SCENE_TEMP(0x02)

Referenced by scAirsRockInsideFinishPushingPillar() and scAirsRockInsidePuffVents().

Definition at line 73 of file airs_rock_inside.c.

FLAG_STONE_VANISHED

#define FLAG_STONE_VANISHED FLAG_SCENE_TEMP(0x00)

The Reveal tablet room: set once a stepping stone has vanished, and one flag for each stone from the southernmost, set once it has.

Referenced by scAirsRockInsideStepOffVanishingStone().

Definition at line 77 of file airs_rock_inside.c.

FLAG_FIRST_STONE_VANISHED

#define FLAG_FIRST_STONE_VANISHED FLAG_SCENE_TEMP(0x02)

Referenced by scAirsRockInsideStepOffVanishingStone() and scInit().

Definition at line 78 of file airs_rock_inside.c.

FLAG_TIGHTROPES_GUST_PATH_CLEARED

#define FLAG_TIGHTROPES_GUST_PATH_CLEARED FLAG_AREA_TEMP(0x00)

What the gusts leave for the rest of the visit: the metatiles a gust clears on its path in the tightropes room (the set-up sets it on every entry, so the room always shows them cleared), a turning bridge turned from its first lie, the turning bridge room's pillar left on its bridge, and a golden barrier blown away in the paired stakes and Wind Stone rooms.

Referenced by scAirsRockInsideBlowGust() and scInit().

Definition at line 85 of file airs_rock_inside.c.

FLAG_TIGHTROPES_BRIDGE_TURNED

#define FLAG_TIGHTROPES_BRIDGE_TURNED FLAG_AREA_TEMP(0x01)

Referenced by scAirsRockInsideBlowGust() and scInit().

Definition at line 86 of file airs_rock_inside.c.

FLAG_TURNING_BRIDGE_TURNED

#define FLAG_TURNING_BRIDGE_TURNED FLAG_AREA_TEMP(0x02)

Referenced by scAirsRockInsideBlowGust() and scInit().

Definition at line 87 of file airs_rock_inside.c.

FLAG_TURNING_BRIDGE_PILLAR_ON_BRIDGE

#define FLAG_TURNING_BRIDGE_PILLAR_ON_BRIDGE FLAG_AREA_TEMP(0x03)

Referenced by scAirsRockInsideMoveTurningBridgePillar() and scInit().

Definition at line 88 of file airs_rock_inside.c.

FLAG_PAIRED_STAKES_NORTH_BARRIER_BLOWN_AWAY

#define FLAG_PAIRED_STAKES_NORTH_BARRIER_BLOWN_AWAY FLAG_AREA_TEMP(0x04)

Referenced by scAirsRockInsideBlowGust() and scInit().

Definition at line 89 of file airs_rock_inside.c.

FLAG_PAIRED_STAKES_SOUTH_BARRIER_BLOWN_AWAY

#define FLAG_PAIRED_STAKES_SOUTH_BARRIER_BLOWN_AWAY FLAG_AREA_TEMP(0x05)

Referenced by scAirsRockInsideBlowGust() and scInit().

Definition at line 90 of file airs_rock_inside.c.

FLAG_WIND_STONE_BARRIER_BLOWN_AWAY

#define FLAG_WIND_STONE_BARRIER_BLOWN_AWAY FLAG_AREA_TEMP(0x06)

Referenced by scAirsRockInsideBlowGust() and scInit().

Definition at line 91 of file airs_rock_inside.c.

TURNING_BRIDGE_PILLAR_ON_BRIDGE_X

#define TURNING_BRIDGE_PILLAR_ON_BRIDGE_X 65

The turning bridge room's pillar column, in half metatiles, that stands it on the turning bridge.

Referenced by scAirsRockInsideBlowGust() and scAirsRockInsideMoveTurningBridgePillar().

Definition at line 95 of file airs_rock_inside.c.

METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_GUST_STOP

#define METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_GUST_STOP 30

the first stop's code

Referenced by scAirsRockInsideBlowGust().

Definition at line 178 of file airs_rock_inside.c.

ACTOR_REVEAL_TABLET

#define ACTOR_REVEAL_TABLET ACTOR_FIRST_PLACED

The Reveal tablet (SPRITE_SLATE), which rises as Sheba reads it.

Referenced by scAirsRockInsideReadRevealTablet() and scInit().

Definition at line 249 of file airs_rock_inside.c.

EFFECT_SET_MODE

#define EFFECT_SET_MODE fdActorSelectAnimation

Referenced by EFFECT_SPAWN.

Definition at line 421 of file airs_rock_inside.c.

EFFECT_SET_SCRIPT

#define EFFECT_SET_SCRIPT fdActorStartScript

Referenced by EFFECT_SPAWN.

Definition at line 422 of file airs_rock_inside.c.

EFFECT_SPRITE_PRIORITY

#define EFFECT_SPRITE_PRIORITY

Definition at line 423 of file airs_rock_inside.c.

STAKE_ROW_BYTES

#define STAKE_ROW_BYTES (STAKE_ROW_TILES * TILE_SIZE_8BPP)

The bytes of one 8-pixel row of a stake's picture.

Referenced by scAirsRockInsidePoundStake() and scAirsRockInsideStepOntoStake().

Definition at line 562 of file airs_rock_inside.c.

TARGET

#define TARGET(effect) ((effect)->target)

The actor the gust is cast at: the field effect's target.

Referenced by scAirsRockInsideBlowGust().

Definition at line 1349 of file airs_rock_inside.c.

GUST_DROP

#define GUST_DROP(x, z) (((x) / 8 << 16) | (z) / 8)

The half metatile where a gust drops what it carries: x in the high half and z in the low.

Referenced by scAirsRockInsideBlowGust().

Definition at line 1353 of file airs_rock_inside.c.

GUST_DROP_X

#define GUST_DROP_X(drop) ((drop) >> 16)

Referenced by scAirsRockInsideBlowGust().

Definition at line 1354 of file airs_rock_inside.c.

PICK_UP

#define PICK_UP(actor, at)

The gust picks up an actor it passes over, to drop it at at (GUST_DROP).

Referenced by scAirsRockInsideBlowGust().

Definition at line 1357 of file airs_rock_inside.c.

SHAKE

#define SHAKE()

One shake of the walls, with the grinding of a gate.

Referenced by scAirsRockInsideBlowGust().

Definition at line 1372 of file airs_rock_inside.c.

DEFINE_AIRS_ROCK_INSIDE_TRACK_LEADER_METATILE

#define DEFINE_AIRS_ROCK_INSIDE_TRACK_LEADER_METATILE(name, n1)

As Felix steps onto a stepping stone stacked on another, three metatiles of the picture under him are saved at (73, 72) and the stack's picture kept at (72, 72) is drawn in their place.

Definition at line 2024 of file airs_rock_inside.c.

DEFINE_AIRS_ROCK_INSIDE_SET_DOORS

#define DEFINE_AIRS_ROCK_INSIDE_SET_DOORS(name, groundColumn, pictureColumn)

Defines a function that sets the Reveal tablet room's two hidden doorways, at metatiles (8, 19) and (24, 19), from the spare metatiles of row 17: their ground from column groundColumn, their pictures from column pictureColumn.

Definition at line 2849 of file airs_rock_inside.c.

DEFINE_AIRS_ROCK_INSIDE_READ_TABLET

#define DEFINE_AIRS_ROCK_INSIDE_READ_TABLET(name, sideX)

Defines a function for examining the Reveal tablet from one side: once it has been read the game only says so; before, Felix walks from sideX round to its front, faces it, and Sheba reads it.

Definition at line 3175 of file airs_rock_inside.c.

Enumerations in detail

anonymous enum

enum { ENTRANCE_HALL_FROM_REVEAL_TABLET, ENTRANCE_HALL_LANDING, ENTRANCE_ROOM_ON_THE_LIFT }

The hall's entrance from the Reveal tablet's room, and where the party lands after dropping from the entrance room (scAirsRockInsideLandInHall); the entrance room's entrance on the lift from the hall (scAirsRockInsideRiseOnLift).

EnumeratorValueDescription
ENTRANCE_HALL_FROM_REVEAL_TABLET16
ENTRANCE_HALL_LANDING11
ENTRANCE_ROOM_ON_THE_LIFT3

Definition at line 101 of file airs_rock_inside.c.

anonymous enum

enum { HALL_LAST_GREAT_HALL_ENTRANCE, HALL_LAST_NORTHEAST_ROOM_ENTRANCE }

The hall's entrances by the part of it they open on: up to the first of these the great hall itself, then its northeast room, and past the second its east room. ENTRANCE_HALL_FROM_REVEAL_TABLET, past both, takes the great hall's set-up and the east room's.

EnumeratorValueDescription
HALL_LAST_GREAT_HALL_ENTRANCE11
HALL_LAST_NORTHEAST_ROOM_ENTRANCE13

Definition at line 112 of file airs_rock_inside.c.

AIRS_ROCK_INSIDE_METATILE_BEHAVIOR

enum AIRS_ROCK_INSIDE_METATILE_BEHAVIOR

The collision codes this scene reads by name. On the overhead layer a whirlwind ends where it reaches the whirlwind's end code; on the ground the same code marks a raised stake's top. In the hall the tower's door is one code, and the entrance room is left by jumping off its ledge. The Reveal tablet room's stepping stones run north from the south end's code to the north end's on the overhead layer, the five between them vanishing, and its tablet, as the Psynergy Stone room's stone, is examined on its metatile.

EnumeratorValueDescription
METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_STONES_SOUTH_END1
METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_FIRST_VANISHING_STONE2
METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_STONES_NORTH_END7
METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_ENTRANCE_LEDGE20
METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_TOWER_DOOR30
METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_REVEAL_TABLET30
METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_PSYNERGY_STONE30
METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_STEPPING_STONE80The stepping stones Felix is drawn standing on: two kinds, a stack of two and the same one row nearer, and the Reveal tablet room's stones that light gold under him (scAirsRockInsideStampMetatileUnderLeader and the rest).
METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_OTHER_STEPPING_STONE
METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_STACKED_STONES
METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_STACKED_STONES_NEARER
METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_LIGHTING_STONE90
METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_WHIRLWIND_END212
METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_STAKE_TOP212

Definition at line 125 of file airs_rock_inside.c.

AIRS_ROCK_INSIDE_FACE_VENTS_VENT

enum AIRS_ROCK_INSIDE_FACE_VENTS_VENT

The face vents room's six vents, by the metatile in front of each on the ground layer: south of the room the west and east one, in its middle the west and east one, in its north the west and east one. A vent's puff reaching the leader there blows him down to the place below it (scAirsRockInsideRideFaceVent).

EnumeratorValueDescription
METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_SOUTHWEST_VENT50
METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_SOUTHEAST_VENT
METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_MIDDLE_WEST_VENT
METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_MIDDLE_EAST_VENT
METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_NORTHWEST_VENT
METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_NORTHEAST_VENT

Definition at line 152 of file airs_rock_inside.c.

AIRS_ROCK_INSIDE_GUST_STOP

enum AIRS_ROCK_INSIDE_GUST_STOP

Where a gust stops on the overhead layer (scAirsRockInsideBlowGust), its code less METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_GUST_STOP: up to GUST_STOP_LAST_BARRIER it blows on, clearing what blocks its path, as the golden barriers of the paired stakes and Wind Stone rooms. A turning bridge reads GUST_STOP_BRIDGE_NORTH_SOUTH while it runs north and south and GUST_STOP_BRIDGE_EAST_WEST while it lies east and west, and the gust turns it the other way.

EnumeratorValueDescription
GUST_STOP_PAIRED_STAKES_NORTH_BARRIER0
GUST_STOP_LAST_BARRIER4
GUST_STOP_BRIDGE_NORTH_SOUTH5
GUST_STOP_BRIDGE_EAST_WEST6

Definition at line 169 of file airs_rock_inside.c.

AIRS_ROCK_INSIDE_RAISED_CUE

enum AIRS_ROCK_INSIDE_RAISED_CUE

The cues this scene raises (FIELD_STATE.raisedCue) besides a statue's whirlwind carrying the leader (RAISED_RIDE_WHIRLWIND), each room reading them its own way: a vent's puff reaching him, and in the Reveal tablet room, a metatile he has left, as CUE_LEFT_METATILE plus its collision code.

EnumeratorValueDescription
CUE_PUFF_REACHES_LEADER201
CUE_LEFT_METATILE200
CUE_FIRST_VANISHING_STONECUE_LEFT_METATILE + METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_FIRST_VANISHING_STONE

Definition at line 184 of file airs_rock_inside.c.

AIRS_ROCK_INSIDE_HALL_ACTOR_ID

enum AIRS_ROCK_INSIDE_HALL_ACTOR_ID

The actors of each inner room, numbering its placement table. The statues (SPRITE_WIND_STATUE) breathe whirlwinds once Whirlwind on their room's twister rock wakes them; Whirlwind on a Wind Stone (SPRITE_WIND_STONE) sends a gust; stone pillars (SPRITE_STONE_PILLAR) are Moved.

EnumeratorValueDescription
ACTOR_HALL_WEST_STATUEACTOR_FIRST_PLACED
ACTOR_HALL_EAST_STATUE
ACTOR_HALL_TWISTER_STATUEThe statue the hall's own twister rock wakes.
ACTOR_HALL_TWISTER_ROCK
ACTOR_HALL_MOVABLE_STATUEThe statue in the hall's east room, which Move pushes onto its mark.
ACTOR_HALL_FIRST_WHIRLWINDThe three whirlwinds the movable statue breathes in turn.

Definition at line 197 of file airs_rock_inside.c.

AIRS_ROCK_INSIDE_ENTRANCE_ACTOR_ID

enum AIRS_ROCK_INSIDE_ENTRANCE_ACTOR_ID

The entrance room (AirsRockInsideEntrancePlacements).

EnumeratorValueDescription
ACTOR_ENTRANCE_STATUEACTOR_FIRST_PLACED
ACTOR_ENTRANCE_EAST_PILLAR
ACTOR_ENTRANCE_TWISTER_ROCK
ACTOR_ENTRANCE_WEST_PILLAR

Definition at line 210 of file airs_rock_inside.c.

AIRS_ROCK_INSIDE_STATUES_ACTOR_ID

enum AIRS_ROCK_INSIDE_STATUES_ACTOR_ID

The statues' room (AirsRockInsideStatuesPlacements).

EnumeratorValueDescription
ACTOR_STATUES_FIRST_PILLARACTOR_FIRST_PLACED
ACTOR_STATUES_STATUE_A
ACTOR_STATUES_STATUE_B
ACTOR_STATUES_SECOND_PILLAR
ACTOR_STATUES_THIRD_PILLAR
ACTOR_STATUES_STATUE_C

Definition at line 219 of file airs_rock_inside.c.

AIRS_ROCK_INSIDE_TIGHTROPES_ACTOR_ID

enum AIRS_ROCK_INSIDE_TIGHTROPES_ACTOR_ID

The tightropes' room (AirsRockInsideTightropesPlacements).

EnumeratorValueDescription
ACTOR_TIGHTROPES_NORTH_WIND_STONEACTOR_FIRST_PLACED
ACTOR_TIGHTROPES_PILLAR
ACTOR_TIGHTROPES_SOUTH_WIND_STONE
ACTOR_TIGHTROPES_POST_AThe posts of its five tightropes, two to a rope.
ACTOR_TIGHTROPES_POST_B
ACTOR_TIGHTROPES_POST_C
ACTOR_TIGHTROPES_POST_D
ACTOR_TIGHTROPES_POST_E
ACTOR_TIGHTROPES_POST_F
ACTOR_TIGHTROPES_POST_G
ACTOR_TIGHTROPES_POST_H
ACTOR_TIGHTROPES_POST_I
ACTOR_TIGHTROPES_POST_J

Definition at line 230 of file airs_rock_inside.c.

AIRS_ROCK_INSIDE_TURNING_BRIDGE_ACTOR_ID

enum AIRS_ROCK_INSIDE_TURNING_BRIDGE_ACTOR_ID

The turning bridge's room (AirsRockInsideTurningBridgePlacements).

EnumeratorValueDescription
ACTOR_TURNING_BRIDGE_PILLARACTOR_FIRST_PLACEDThe stone pillar scAirsRockInsideMoveTurningBridgePillar moves.
ACTOR_TURNING_BRIDGE_SOUTH_WIND_STONE
ACTOR_TURNING_BRIDGE_NORTH_WIND_STONE
ACTOR_TURNING_BRIDGE_POST_A
ACTOR_TURNING_BRIDGE_POST_B
ACTOR_TURNING_BRIDGE_POST_C
ACTOR_TURNING_BRIDGE_POST_D
ACTOR_TURNING_BRIDGE_POST_E
ACTOR_TURNING_BRIDGE_POST_F

Definition at line 252 of file airs_rock_inside.c.

AIRS_ROCK_INSIDE_PAIRED_STAKES_ACTOR_ID

enum AIRS_ROCK_INSIDE_PAIRED_STAKES_ACTOR_ID

The paired stakes' room (AirsRockInsidePairedStakesPlacements).

EnumeratorValueDescription
ACTOR_PAIRED_STAKES_PILLARACTOR_FIRST_PLACED
ACTOR_PAIRED_STAKES_PILLAR_AThe three pillars pushed among the stakes.
ACTOR_PAIRED_STAKES_PILLAR_B
ACTOR_PAIRED_STAKES_PILLAR_C
ACTOR_PAIRED_STAKES_STAKE_AThe four stakes (SPRITE_STAKE), in two pairs: as one sinks, the other rises.
ACTOR_PAIRED_STAKES_STAKE_B
ACTOR_PAIRED_STAKES_STAKE_C
ACTOR_PAIRED_STAKES_STAKE_D
ACTOR_PAIRED_STAKES_NORTH_WIND_STONE
ACTOR_PAIRED_STAKES_SOUTH_WIND_STONE

Definition at line 267 of file airs_rock_inside.c.

AIRS_ROCK_INSIDE_FACE_VENTS_ACTOR_ID

enum AIRS_ROCK_INSIDE_FACE_VENTS_ACTOR_ID

The room of the face vents (AirsRockInsideFaceVentsPlacements).

EnumeratorValueDescription
ACTOR_FACE_VENTS_FIRST_PILLARACTOR_FIRST_PLACED
ACTOR_FACE_VENTS_SECOND_PILLAR
ACTOR_FACE_VENTS_WIND_STONE
ACTOR_FACE_VENTS_STATUE
ACTOR_FACE_VENTS_THIRD_PILLAR
ACTOR_FACE_VENTS_PILLAR_A
ACTOR_FACE_VENTS_PILLAR_B

Definition at line 285 of file airs_rock_inside.c.

AIRS_ROCK_INSIDE_WIND_STONE_ACTOR_ID

enum AIRS_ROCK_INSIDE_WIND_STONE_ACTOR_ID

The Wind Stone's room (AirsRockInsideWindStonePlacements).

EnumeratorValueDescription
ACTOR_WIND_STONEACTOR_FIRST_PLACED
ACTOR_WIND_STONE_PILLAR
ACTOR_WIND_STONE_STATUE

Definition at line 297 of file airs_rock_inside.c.

anonymous enum

enum { STAKE_ROW_TILES, STAKE_DRAWN_TILES, STAKE_TOP_ROWS }

A stake's picture in OBJ VRAM (stake.png): 32 by 64 pixels of 256-colour tiles, four to each 8-pixel row, the stake itself within the first three of them. A partner rising is drawn from its target's picture: the top STAKE_TOP_ROWS rows at once, then a row a step.

EnumeratorValueDescription
STAKE_ROW_TILES4
STAKE_DRAWN_TILES3
STAKE_TOP_ROWS3

Definition at line 554 of file airs_rock_inside.c.

anonymous enum

enum { WHIRLWIND_REACH_ABOVE }

How near a whirlwind comes to catch the leader above him while others move him, in his metatile's row, in pixels; on his level it is WHIRLWIND_REACH.

EnumeratorValueDescription
WHIRLWIND_REACH_ABOVE16

Definition at line 841 of file airs_rock_inside.c.

anonymous enum

enum { SCATTERED_SPARKS }

The sparks scAirsRockInsideScatterSparks raises, 5 ticks apart.

EnumeratorValueDescription
SCATTERED_SPARKS12

Definition at line 2092 of file airs_rock_inside.c.

anonymous enum

enum { TABLET_SPARKS }

The sparks that rise from the tablet as it lifts.

EnumeratorValueDescription
TABLET_SPARKS16

Definition at line 2911 of file airs_rock_inside.c.

anonymous enum

enum { ORBITING_SPARKS, ORBITING_SPARK_TICKS }

The sparks that spiral in on Sheba, one set out every ORBITING_SPARK_TICKS.

EnumeratorValueDescription
ORBITING_SPARKS16
ORBITING_SPARK_TICKS8

Definition at line 2917 of file airs_rock_inside.c.

anonymous enum

enum { SEEKING_SPARK_PHASES }

The sparks that then close in on her start every 2 pixels up her, each circling out as far as the sine of its height in 64ths of a turn (scOrbitUpdate's phase), short of SEEKING_SPARK_PHASES, half a turn, where the sine is 0 again.

EnumeratorValueDescription
SEEKING_SPARK_PHASES32

Definition at line 2927 of file airs_rock_inside.c.

Functions in detail

scAirsRockInsideRestoreMetatileBehindLeader

void scAirsRockInsideRestoreMetatileBehindLeader(void)

Nothing visible of its own: once Felix stands still on a new metatile, the stepping stone he last stood on is drawn as before; in the Reveal tablet room, leaving a metatile with a collision code raises CUE_LEFT_METATILE plus the code, which for a vanishing stone is its cue (CUE_FIRST_VANISHING_STONE on).

References AirsRockInsideStampedHeight, AirsRockInsideStampedMetatile, AirsRockInsideStampedWidth, AirsRockInsideStampedX, AirsRockInsideStampedZ, fdActorGetById(), fdMapGridCopyMetatilesLayered(), fdPartyGetLeaderActor(), MainRoutineStateWork, scMapMetatileGetAttributes() and Sint32.

Referenced by scAirsRockInsideStartRestoringMetatiles().

Definition at lines 324 and 1880 of file airs_rock_inside.c.

scAirsRockInsideBurstDust

void scAirsRockInsideBurstDust(Sint32 x, Sint32 z)

A burst of eight puffs of dust around x, z, and the walls shake.

References scFieldEffectSpawn(), Sint32 and syRandom().

Referenced by scAirsRockInsideWakeEntranceStatue() and scAirsRockInsideWakeHallStatue().

Definition at lines 326 and 2061 of file airs_rock_inside.c.

scAirsRockInsideScatterSparks

void scAirsRockInsideScatterSparks(Sint32 x, Sint32 z)

Sparks rise one after another around x, z.

References scFieldEffectSpawn(), scFieldScriptWait(), Sint32 and syRandom().

Referenced by scAirsRockInsideWakeEntranceStatue() and scAirsRockInsideWakeHallStatue().

Definition at lines 327 and 2098 of file airs_rock_inside.c.

scAirsRockInsideStampMetatileUnderLeader

void scAirsRockInsideStampMetatileUnderLeader(void)

As Felix steps onto one of the yellow stepping stones marked with a diamond, in the great hall and the rooms around it, the stone is drawn again under his feet, in front of what lies behind it, so that he is seen standing on it; nothing else changes. The stone goes back to its own picture once he has left it (scAirsRockInsideRestoreMetatileBehindLeader).

The metatiles under him are saved at (73, 72) and the stone's picture kept at (70, 72) is copied in their place.

References AirsRockInsideStampedHeight, AirsRockInsideStampedMetatile, AirsRockInsideStampedWidth, AirsRockInsideStampedX, AirsRockInsideStampedZ, fdActorGetById(), fdMapGridCopyMetatilesLayered(), fdPartyGetLeaderActor(), MainRoutineStateWork and Sint32.

Referenced by AirsRockInsideEntranceCues, AirsRockInsideHallCues, AirsRockInsidePairedStakesCues, AirsRockInsideRevealTabletCues, AirsRockInsideStatuesCues, AirsRockInsideTurningBridgeCues, AirsRockInsideWindStoneCues and scAirsRockInsideStepOffVanishingStone().

Definition at lines 337 and 1933 of file airs_rock_inside.c.

scAirsRockInsideReadRevealTablet

void scAirsRockInsideReadRevealTablet(void)

Checking the tablet shows its message; the first time (FLAG_REVEAL_TABLET_READ) Sheba learns Reveal, as Magma Rock's tablet does for Blaze.

References fdActorFaceDirection(), fdActorFaceDirectionById(), fdActorGetById(), fdActorPlaceOnActor(), fdActorSetAnimationById(), fdActorSetDestinationById(), fdActorSetHorizontalPosWithTerrain(), fdActorSetMovementType(), fdActorSetSpeedFX(), fdActorTurnToFaceEachOther(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdActorWalkToAndWaitById(), fdActorWalkToById(), fdMapGridWaitForShakeToSettle(), fdPartyLearnAbility(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptGetFlag(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), MainRoutineStateWork, mnFieldMessageShow(), scAirsRockInsideShebaLearnsReveal(), scFieldScriptWait(), Sint32 and syGameFlagSet().

Referenced by AirsRockInsideRevealTabletCues and scAirsRockInsideWalkToRevealTablet().

Definition at lines 338 and 3071 of file airs_rock_inside.c.

scAirsRockInsideStartRestoringMetatiles

void scAirsRockInsideStartRestoringMetatiles(void)

Starts scAirsRockInsideRestoreMetatileBehindLeader with no metatile stamped yet.

References AirsRockInsideStampedMetatile, scAirsRockInsideRestoreMetatileBehindLeader(), Sint32 and sySetEvent().

Referenced by scInit().

Definition at lines 351 and 1917 of file airs_rock_inside.c.

scAirsRockInsideSetLedgeMetatilesByLevel

void scAirsRockInsideSetLedgeMetatilesByLevel(void)

An event in the great hall: as the leader climbs, two blocks of metatiles at the hall's west and east sides take the collision codes kept for the level he is at, the three levels 96 pixels apart.

References AirsRockInsideLeaderLevel, fdActorGetById(), fdMapCopyMetatileAttributeRect(), fdPartyGetLeaderActor() and Sint32.

Referenced by scInit() and scPrepareMap().

Definition at lines 352 and 3552 of file airs_rock_inside.c.

scAirsRockInsideSpawnMotes

void scAirsRockInsideSpawnMotes(void)

Eight motes of light drift about the hall, each starting a little after the last; the odd ones swell slowly, the even ones quickly.

References fdActorSetBlendMode(), fdActorSetSpriteColor(), fdActorSetSpriteFlags(), scAirsRockInsideDriftMote(), Sint32 and syImportActorCreate().

Referenced by scInit().

Definition at lines 353 and 3514 of file airs_rock_inside.c.

scAirsRockInsideRiseOnLift

void scAirsRockInsideRiseOnLift(void)

The leader rises 80 pixels on a lift into the room.

References fdActorFaceDirectionById(), fdActorGetById(), fdActorHasArrived(), fdActorRelease(), fdActorSelectAnimation(), fdActorSetAnimationById(), fdActorSetMoveTarget(), fdActorSetSpriteFlags(), fdActorWaitForMove(), fdMapGetTerrainHeight(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scActorWaitUntilLanded(), scFieldScriptWait(), scPlaceTranslucentBlackActorFX(), Sint32, syImportActorCreate(), sySoundPlay(), sySynch() and TickCount.

Referenced by scInit().

Definition at lines 355 and 3430 of file airs_rock_inside.c.

scAirsRockInsidePlaceStakes

void scAirsRockInsidePlaceStakes(Uint16 *list)

Places the stakes of a list ended by ACTOR_LIST_END, each entry three halfwords: the stake, the first of its poses and the flag that says whether it has sunk, which picks between them. The stake stands still, no longer solid, and keeps its flag in ACTOR.flag (scAirsRockInsideSetStakeMetatiles).

References fdActorGetById(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), scAirsRockInsideSetStakeMetatiles(), Sint32 and syGameFlagGet().

Referenced by scInit().

Definition at lines 357 and 634 of file airs_rock_inside.c.

scAirsRockInsideTakeOverWhirlwind

void scAirsRockInsideTakeOverWhirlwind(void)

Nothing visible happens of its own as Felix casts Whirlwind on a twister rock or a Wind Stone inside the rock; the game tells Whirlwind to leave out its usual little whirlwind, so that what follows is the rock's or the stone's own (scAirsRockInsideBlowGust, scAirsRockInsideWakeHallStatue and scAirsRockInsideWakeEntranceStatue).

Referenced by AirsRockInsideEntranceCues, AirsRockInsideFaceVentsCues, AirsRockInsideHallCues, AirsRockInsidePairedStakesCues, AirsRockInsideTightropesCues, AirsRockInsideTurningBridgeCues and AirsRockInsideWindStoneCues.

Definition at lines 358 and 499 of file airs_rock_inside.c.

scAirsRockInsideRideWhirlwind

void scAirsRockInsideRideWhirlwind(void)

The leader rides a statue's whirlwind along its path until it fades.

References fdActorGetById(), fdActorSelectAnimation(), fdActorSetMoveTarget(), fdActorSetSpriteFlags(), fdActorWaitForMove(), fdCameraFollowActor(), fdCameraGetActor(), fdCameraMoveToFX(), fdCameraWaitForArrival(), fdMapGetTerrainHeight(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetExitRequest(), fdScriptStart(), MainRoutineStateWork, PerWork, scActorWaitUntilLanded(), scMapMetatileGetAttributes(), Sint32, syGameFlagClear(), syGameFlagSet(), sySoundPlay(), sySynch() and TickCount.

Referenced by AirsRockInsideEntranceCues, AirsRockInsideFaceVentsCues, AirsRockInsideHallCues, AirsRockInsideStatuesCues and AirsRockInsideWindStoneCues.

Definition at lines 359 and 665 of file airs_rock_inside.c.

scAirsRockInsideBlowGust

void scAirsRockInsideBlowGust(void)

Whirlwind on a Wind Stone: a gust rises from it and blows away from the leader until a wall or something on the overhead layer stops it, carrying the room's pillar or statue it passes (GUST_DROP). A golden barrier in its way is blown away, and the turning bridge it reaches turns with a shake, unless the turning bridge room's pillar stands on it.

References fdActorGetById(), fdActorHasArrived(), fdActorRelease(), fdActorSelectAnimation(), fdActorSetMoveTarget(), fdActorSetSpriteColor(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdActorStartScript(), fdActorWaitForMove(), fdCameraMoveToActorById(), fdCameraMoveToFX(), fdCameraWaitForArrival(), fdMapCopyMetatileAttributeRect(), fdMapGetTerrainHeight(), fdMapGridCenterOnFollowedPoint(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdMapGridCopyMetatileTilesIndicesRect(), fdMapGridSetMetatileHeight(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), FieldEffectMediumScript, MainRoutineStateWork, scActorWaitUntilLanded(), scAirsRockInsideSpiralGust(), scAirsRockInsideWakeStatue(), scFieldActorSetMoveTargetFX(), scFieldEffectSpawn(), scFieldScriptWait(), scMapMetatileGetAttributes(), scSetActorSpritePriority(), Sint32, syCos(), syGameFlagClear(), syGameFlagGet(), syGameFlagSet(), syImportActorCreate(), syRandom(), sySin(), sySoundPlay(), sySynch() and TickCount.

Referenced by AirsRockInsideFaceVentsCues, AirsRockInsidePairedStakesCues, AirsRockInsideTightropesCues, AirsRockInsideTurningBridgeCues and AirsRockInsideWindStoneCues.

Definition at lines 360 and 1382 of file airs_rock_inside.c.

scAirsRockInsideStampOtherMetatileUnderLeader

void scAirsRockInsideStampOtherMetatileUnderLeader(void)

The same for the stepping stones of a second kind, in the hall, the entrance room, the Reveal tablet's room and the turning bridge room: the stone is drawn again under Felix's feet from the picture kept at (71, 72).

References AirsRockInsideStampedHeight, AirsRockInsideStampedMetatile, AirsRockInsideStampedWidth, AirsRockInsideStampedX, AirsRockInsideStampedZ, fdActorGetById(), fdMapGridCopyMetatilesLayered(), fdPartyGetLeaderActor(), MainRoutineStateWork and Sint32.

Referenced by AirsRockInsideEntranceCues, AirsRockInsideHallCues, AirsRockInsideRevealTabletCues and AirsRockInsideTurningBridgeCues.

Definition at lines 362 and 1980 of file airs_rock_inside.c.

scAirsRockInsideStampTallMetatileUnderLeader

void scAirsRockInsideStampTallMetatileUnderLeader(void)

DEFINE_AIRS_ROCK_INSIDE_TRACK_LEADER_METATILE( scAirsRockInsideStampTallMetatileUnderLeader, 64)

As Felix steps onto one of the stacked stepping stones in the great hall, the stack is drawn again under his feet, in front of the wall behind it, so that he is seen standing on top of it; nothing else changes.

Referenced by AirsRockInsideHallCues.

Definition at lines 363 and 2053 of file airs_rock_inside.c.

scAirsRockInsideStampTallMetatileUnderLeaderNearer

void scAirsRockInsideStampTallMetatileUnderLeaderNearer(void)

DEFINE_AIRS_ROCK_INSIDE_TRACK_LEADER_METATILE( scAirsRockInsideStampTallMetatileUnderLeaderNearer, 63)

The same for the stacked stepping stones one row nearer the screen.

Referenced by AirsRockInsideHallCues.

Definition at lines 364 and 2057 of file airs_rock_inside.c.

scAirsRockInsideWakeHallStatue

void scAirsRockInsideWakeHallStatue(void)

Felix casts Whirlwind on the twister rock in the great hall: it glows, a ball of purple light flies north up the hall to the great stone face, whose eyes light red as its mouth opens with a rumble and rocks fall, and from then on its statues breathe whirlwinds the party can ride. The rock turns grey, spent.

References BgScrollWork, fdActorConfigureSpriteColor(), fdActorGetById(), fdActorSelectAnimation(), fdActorSetSpriteColor(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdActorStartScript(), fdCameraFollowActor(), fdCameraMoveToActorById(), fdCameraMoveToFX(), fdCameraSetSpeedFX(), fdCameraSetSpeedParams(), fdCameraWaitForArrival(), fdMapGridCopyMetatilesTo(), fdMapGridCopyMetatileTilesIndicesRect(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeSetSource(), fdPaletteFadeSetTarget(), fdPaletteFadeStartInterpolation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), FieldEffectMediumScript, MainRoutineStateWork, mnWindowColorApply(), scAirsRockInsideBurstDust(), scAirsRockInsideFlickerTarget(), scAirsRockInsideScatterSparks(), scAirsRockInsideSpiralSpark(), scAirsRockInsideWakeStatue(), scFieldScriptWait(), syDecompressTaggedLZ(), syDMAXCopy(), syGameFlagSet(), syHeapAllocate(), syHeapRelease(), syImportActorCreate(), syPrintClear(), syRandom(), syResourceGetTableEntry(), sySoundPlay(), sySynch(), syWindowLoadGraphics() and TickCount.

Referenced by AirsRockInsideHallCues.

Definition at lines 365 and 2180 of file airs_rock_inside.c.

scAirsRockInsideOpenTabletRoomDoor

void scAirsRockInsideOpenTabletRoomDoor(void)

Walking north into the door at the top of the hall's tower: it opens with a thump, and the leader walks through into the Reveal tablet's room.

References fdActorGetById(), fdActorWalkToById(), fdMapGridCopyMetatileTilesIndicesRect(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetExitRequest(), fdScriptStart(), MainRoutineStateWork, scFieldScriptWait(), scMapMetatileGetAttributes(), Sint32 and sySoundPlay().

Referenced by AirsRockInsideHallCues.

Definition at lines 366 and 2330 of file airs_rock_inside.c.

scAirsRockInsideStartPushingPillar

void scAirsRockInsideStartPushingPillar(void)

Nothing visible happens of its own as Felix starts to push a pillar or a statue inside the rock, or casts Move on one; the game takes it off the metatiles it was blocking so that it can slide. In the paired stakes room it also smooths two metatiles' ground, and in the Wind Stone room the statue being moved stops breathing whirlwinds.

References AirsRockInsideEntrancePillars, AirsRockInsideFaceVentsPillars, AirsRockInsideHallPillars, AirsRockInsidePairedStakesPillars, AirsRockInsideStatuesPillars, AirsRockInsideTightropesPillars, AirsRockInsideWindStonePillars, fdActorGetById(), fdActorLiftTargetBlock(), fdMapGridSetMetatileHeight(), MainRoutineStateWork and scFieldMapGridSetMetatileHeight().

Referenced by AirsRockInsideEntranceCues, AirsRockInsideFaceVentsCues, AirsRockInsideHallCues, AirsRockInsidePairedStakesCues, AirsRockInsideStatuesCues, AirsRockInsideTightropesCues and AirsRockInsideWindStoneCues.

Definition at lines 367 and 2372 of file airs_rock_inside.c.

scAirsRockInsideFinishPushingPillar

void scAirsRockInsideFinishPushingPillar(void)

Once Felix has pushed or moved a pillar or a statue inside the rock: one left over lower ground drops onto it with a thump, and one left in the place it belongs stays there on later visits, as a shortcut or a step.

In the paired stakes' room and the face vents room the metatiles along the pillar's rows are marked or cleared again, which in the face vents room decides which vents it keeps still.

References fdActorGetById(), fdActorPlaceMovedBlock(), fdMapGetTerrainHeight(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, scActorWaitUntilLanded(), scFieldMapGridSetMetatileHeight(), scMapMetatileSetAttributes(), Sint32, syGameFlagClear(), syGameFlagSet() and sySoundPlay().

Referenced by AirsRockInsideEntranceCues, AirsRockInsideFaceVentsCues, AirsRockInsideHallCues, AirsRockInsidePairedStakesCues, AirsRockInsideStatuesCues, AirsRockInsideTightropesCues and AirsRockInsideWindStoneCues.

Definition at lines 368 and 2416 of file airs_rock_inside.c.

scAirsRockInsideWakeEntranceStatue

void scAirsRockInsideWakeEntranceStatue(void)

Felix casts Whirlwind on the twister rock in the entrance room: it glows, a ball of purple light flies north to the room's great stone face, whose eyes light red and whose mouth opens with a roar (the metatiles from (12, 77) down), and the statue below it wakes and starts breathing whirlwinds. The rock turns grey, spent.

References BgScrollWork, fdActorConfigureSpriteColor(), fdActorGetById(), fdActorSelectAnimation(), fdActorSetSpriteColor(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdActorStartScript(), fdCameraFollowActor(), fdCameraMoveToActorById(), fdCameraMoveToFX(), fdCameraSetSpeedFX(), fdCameraSetSpeedParams(), fdCameraWaitForArrival(), fdMapGridCopyMetatilesTo(), fdMapGridCopyMetatileTilesIndicesRect(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeSetSource(), fdPaletteFadeSetTarget(), fdPaletteFadeStartInterpolation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), FieldEffectMediumScript, MainRoutineStateWork, mnWindowColorApply(), scAirsRockInsideBurstDust(), scAirsRockInsideFlickerTarget(), scAirsRockInsideScatterSparks(), scAirsRockInsideSpiralSpark(), scAirsRockInsideWakeStatue(), scFieldScriptWait(), syDecompressTaggedLZ(), syDMAXCopy(), syGameFlagSet(), syHeapAllocate(), syHeapRelease(), syImportActorCreate(), syPrintClear(), syRandom(), syResourceGetTableEntry(), sySoundPlay(), sySynch(), syWindowLoadGraphics() and TickCount.

Referenced by AirsRockInsideEntranceCues.

Definition at lines 369 and 2547 of file airs_rock_inside.c.

scAirsRockInsideJumpDownLedge

void scAirsRockInsideJumpDownLedge(void)

Walking south off the entrance room's ledge: the leader jumps down, to land in the hall below (scAirsRockInsideLandInHall).

References fdActorJumpDownLedge(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetExitRequest(), fdScriptStart(), MainRoutineStateWork and scPlaceTranslucentBlackActorFX().

Referenced by AirsRockInsideEntranceCues.

Definition at lines 370 and 2693 of file airs_rock_inside.c.

scAirsRockInsideRideStatuesVent

void scAirsRockInsideRideStatuesVent(void)

A puff of steam from one of the vents in the statues room catches Felix north of the vents and, with a chime, blows him back south to metatile (23, 41) in front of them, without turning him round. South of them the puff does nothing.

References fdActorGetById(), fdActorMoveToAndWaitById(), fdActorSetSpeedParams(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork and sySoundPlay().

Referenced by AirsRockInsideStatuesCues.

Definition at lines 371 and 2710 of file airs_rock_inside.c.

scAirsRockInsideStepOffVanishingStone

void scAirsRockInsideStepOffVanishingStone(void)

Felix steps off one of the stepping stones that cross the Reveal tablet's room, and it fades away behind him with a drip, leaving a gap, for good. Stepping from a stone back onto the floor at either end of the row, the stone goes only once another already has.

The floor at the ends is read as METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_STONES_SOUTH_END and _NORTH_END on the overhead layer; FLAG_STONE_VANISHED says a stone has gone, and each stone has its own flag.

References fdActorGetById(), fdScriptGetFlag(), MainRoutineStateWork, scAirsRockInsideStampMetatileUnderLeader(), scAirsRockInsideVanishStone(), scMapMetatileGetAttributes(), Sint32, syGameFlagGet() and syGameFlagSet().

Referenced by AirsRockInsideRevealTabletCues.

Definition at lines 372 and 2782 of file airs_rock_inside.c.

scAirsRockInsideStampWideMetatileUnderLeader

void scAirsRockInsideStampWideMetatileUnderLeader(void)

As Felix steps onto one of the stepping stones on row 19 of the Reveal tablet's room, beside its two hidden doorways, it lights up gold under his feet, and goes back to yellow once he has left it.

Two metatiles of the overhead layer under him are saved at (73, 72) and the lit stone's picture kept at (70, 74) is drawn in their place.

References AirsRockInsideStampedHeight, AirsRockInsideStampedMetatile, AirsRockInsideStampedWidth, AirsRockInsideStampedX, AirsRockInsideStampedZ, fdActorGetById(), fdMapGridCopyMetatilesLayered(), fdPartyGetLeaderActor() and Sint32.

Referenced by AirsRockInsideRevealTabletCues.

Definition at lines 373 and 2818 of file airs_rock_inside.c.

scAirsRockInsideHideRevealedDoors

void scAirsRockInsideHideRevealedDoors(void)

DEFINE_AIRS_ROCK_INSIDE_SET_DOORS(scAirsRockInsideHideRevealedDoors, 26, 90)

Nothing visible of its own: as Reveal fades, the Reveal tablet room's two hidden doorways, at metatiles (8, 19) and (24, 19), are walls again.

Referenced by AirsRockInsideRevealTabletCues.

Definition at lines 374 and 2861 of file airs_rock_inside.c.

scAirsRockInsideRevealDoors

void scAirsRockInsideRevealDoors(void)

DEFINE_AIRS_ROCK_INSIDE_SET_DOORS(scAirsRockInsideRevealDoors, 25, 89)

Felix casts Reveal in the Reveal tablet's room, and two hidden doorways show in its walls, at metatiles (8, 19) and (24, 19), for as long as it lasts.

Referenced by AirsRockInsideRevealTabletCues.

Definition at lines 375 and 2865 of file airs_rock_inside.c.

scAirsRockInsideWalkToRevealTablet

void scAirsRockInsideWalkToRevealTablet(void)

Felix examines the Reveal tablet from the south: read already, it says so; otherwise he walks round to its front and Sheba reads it.

References fdActorFaceDirectionById(), fdActorWalkToAndWaitById(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, mnFieldMessageShow(), scAirsRockInsideReadRevealTablet(), scFieldScriptWait() and syGameFlagGet().

Referenced by AirsRockInsideRevealTabletCues.

Definition at lines 376 and 3151 of file airs_rock_inside.c.

scAirsRockInsideReadTabletFacingWest

void scAirsRockInsideReadTabletFacingWest(void)

DEFINE_AIRS_ROCK_INSIDE_READ_TABLET(scAirsRockInsideReadTabletFacingWest, 280)

Felix examines the Reveal tablet from its east side, facing west: he walks round to its front and Sheba reads it, as from the south (scAirsRockInsideWalkToRevealTablet).

Referenced by AirsRockInsideRevealTabletCues.

Definition at lines 377 and 3201 of file airs_rock_inside.c.

scAirsRockInsideReadTabletFacingEast

void scAirsRockInsideReadTabletFacingEast(void)

DEFINE_AIRS_ROCK_INSIDE_READ_TABLET(scAirsRockInsideReadTabletFacingEast, 248)

Felix examines the Reveal tablet from its west side, facing east: the same.

Referenced by AirsRockInsideRevealTabletCues.

Definition at lines 378 and 3204 of file airs_rock_inside.c.

scAirsRockInsideMoveTurningBridgePillar

void scAirsRockInsideMoveTurningBridgePillar(void)

Felix casts Move on the pillar in the turning bridge room; nothing more than the move shows, but the game remembers whether it now stands on the turning bridge, which then cannot turn under a gust.

References fdActorGetById(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), syGameFlagClear() and syGameFlagSet().

Referenced by AirsRockInsideTurningBridgeCues.

Definition at lines 379 and 3215 of file airs_rock_inside.c.

scAirsRockInsidePoundPairedStakesStake

void scAirsRockInsidePoundPairedStakesStake(Sint32 mode, Sint32 step)

Felix casts Pound on one of the four stakes in the paired stakes room: it sinks into the floor and the other stake of its pair rises (scAirsRockInsidePoundStake).

References scAirsRockInsidePoundStake() and Sint32.

Referenced by AirsRockInsidePairedStakesCues.

Definition at lines 380 and 3231 of file airs_rock_inside.c.

scAirsRockInsideStepOntoStake

void scAirsRockInsideStepOntoStake(void)

Stepping onto a raised stake's top: unless a pillar stands on its pair, the stake sinks under the leader and its partner rises (as scAirsRockInsidePoundStake draws it).

References AirsRockInsidePairedStakesStakes, fdActorGetById(), fdActorSelectAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, scAirsRockInsideSetStakeMetatiles(), scFieldScriptWait(), Sint32, syDMAXCopy(), syGameFlagClear(), syGameFlagSet(), sySynch() and VramCacheEntries.

Referenced by AirsRockInsidePairedStakesCues.

Definition at lines 381 and 3242 of file airs_rock_inside.c.

scAirsRockInsideRideFaceVent

void scAirsRockInsideRideFaceVent(void)

A vent's puff has reached the leader in the face vents room: standing in front of a vent, he is blown down to the place below it with a chime.

References fdActorGetById(), fdActorMoveToAndWaitById(), fdActorSetSpeedParams(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, Sint32 and sySoundPlay().

Referenced by AirsRockInsideFaceVentsCues.

Definition at lines 382 and 3328 of file airs_rock_inside.c.

scAirsRockInsideCheckPsynergyStone

void scAirsRockInsideCheckPsynergyStone(void)

Checking the Psynergy Stone restores the party's PP.

References fdPartyAddPp(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), mnFieldMessageShow(), scFieldScriptWait(), syGameFlagClear() and sySoundPlay().

Referenced by AirsRockInsidePsynergyStoneCues.

Definition at lines 383 and 3383 of file airs_rock_inside.c.

scAirsRockInsideIgnoreStep

void scAirsRockInsideIgnoreStep(void)

Nothing happens as Felix walks west into the ledge of the Reveal tablet's room.

Referenced by AirsRockInsideRevealTabletCues.

Definition at lines 384 and 3208 of file airs_rock_inside.c.

scAirsRockInsideSetStakeMetatiles

void scAirsRockInsideSetStakeMetatiles(ACTOR *actor)

Sets a stake's metatiles by its flag, set once it has sunk: a sunk stake's metatile is open ground and its height drops 32 pixels unless it stands on its ground, drawn under the leader; a raised one is a wall on the overhead layer with its top (METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_STAKE_TOP) on the ground layer, 32 pixels higher.

References fdMapGetTerrainHeight(), fdMapGridSetMetatileHeight(), scMapMetatileGetAttributes(), scMapMetatileSetAttributes(), scSetActorSpritePriority(), Sint32 and syGameFlagGet().

Referenced by scAirsRockInsidePlaceStakes(), scAirsRockInsidePoundStake() and scAirsRockInsideStepOntoStake().

Definition at lines 391, 514 and 3237 of file airs_rock_inside.c.

scPillarPlace

void scPillarPlace(Sint16 *list)

Unused: places the pillars of a list as shared/pillar_place.c does, reading its halfwords as signed.

References fdActorGetById(), fdActorSetMetatileOpen(), fdActorSetSpriteFlags() and Sint32.

Referenced by scAlhafranCaveSetUpJail(), scDehkanPlateauInitCannon(), scDehkanPlateauInitEntrance(), scDehkanPlateauInitPillars(), scDehkanPlateauInitPoundCube() and scInit().

Definition at line 395 of file airs_rock_inside.c.

scAirsRockInsideScatterMote

void scAirsRockInsideScatterMote(ACTOR *actor)

A mote of light moves on to a random spot, x 176 to 431 pixels and y and z up to 31 and 127 pixels past the leader's, to drift there for its lifetime in ticks, swelling slowly or quickly by it.

References fdActorGetById(), fdActorSelectAnimation(), MainRoutineStateWork and syRandom().

Referenced by scAirsRockInsideDriftMote().

Definition at line 435 of file airs_rock_inside.c.

scAirsRockInsideDriftMote

void scAirsRockInsideDriftMote(ACTOR *actor)

A mote's update: after its start delay it sways as it drifts upward, a sway every 64 pixels of depth and every 128 of height, scattering again when its time is up; it and the map's animations stop while a menu, Psynergy or an item is in use.

References fdActorSetAnimationSpeed(), fdTilesetAnimationResumeAll(), fdTilesetAnimationSuspendAll(), scAirsRockInsideScatterMote(), syCos() and TickCount.

Referenced by scAirsRockInsideSpawnMotes().

Definition at line 456 of file airs_rock_inside.c.

scAirsRockInsideStartWhirlwind

void scAirsRockInsideStartWhirlwind(void)

Nothing visible happens of its own as Felix starts casting Whirlwind on a twister rock or a Wind Stone inside the rock; the game clears what is pending so that the cast can go on to the rock's or stone's own whirlwind (scAirsRockInsideTakeOverWhirlwind).

References fdScriptEndLastingPsynergy().

Referenced by AirsRockInsideEntranceCues, AirsRockInsideFaceVentsCues, AirsRockInsideHallCues, AirsRockInsidePairedStakesCues, AirsRockInsideTightropesCues, AirsRockInsideTurningBridgeCues and AirsRockInsideWindStoneCues.

Definition at lines 489 and 4039 of file airs_rock_inside.c.

scAirsRockInsidePoundStake

void scAirsRockInsidePoundStake(Sint32 mode, Sint32 step)

One step of Pound on a stake: the target sinks and its partner, the other of its pair, rises. On step 0 the partner's picture is cleared and the top of the target's drawn over it, 28 pixels up; on steps 1 to 5 a row more of it is drawn as it comes down; through step 7 the target flattens. Once the fist has landed (POUND_STAGE_LANDED) both settle, the target's flag is set and the partner's cleared, they take their next poses and their metatiles are set again (scAirsRockInsideSetStakeMetatiles).

References fdActorGetById(), fdActorSelectAnimation(), scAirsRockInsideSetStakeMetatiles(), Sint32, syDMAXCopy(), syGameFlagClear(), syGameFlagSet(), sySynch() and VramCacheEntries.

Referenced by scAirsRockInsidePoundPairedStakesStake().

Definition at line 571 of file airs_rock_inside.c.

scAirsRockInsideMoveWhirlwind

void scAirsRockInsideMoveWhirlwind(ACTOR *shot)

A statue's whirlwind: it moves 1.5 pixels a tick the way it faces, upward when it faces north, and where the overhead layer reads METATILE_BEHAVIOR_AIRS_ROCK_INSIDE_WHIRLWIND_END it fades (facing north) or rises. The first time it comes within reach of the leader it carries him along (RAISED_RIDE_WHIRLWIND). It stops while the leader moves as sand, a menu or Psynergy is up, or an item is in use.

References AirsRockInsideWhirlwindFadesScript, AirsRockInsideWhirlwindRisesScript, Call2(), fdActorGetById(), fdActorPlaySoundInView(), fdActorSetAnimationSpeed(), fdActorStartScript(), fdScriptGetFlag(), MainRoutineStateWork, scMapMetatileGetAttributes(), scPosDistanceAbove(), scPosFlatDistance(), Sint32, syCos() and sySin().

Referenced by scAirsRockInsideStatueBreathesWhirlwind().

Definition at line 852 of file airs_rock_inside.c.

scAirsRockInsideStatueBreathesWhirlwind

void scAirsRockInsideStatueBreathesWhirlwind(ACTOR *actor)

A woken statue's update: while no menu, Psynergy or item is in use it counts ticks in its timer, and every WHIRLWIND_BREATH_TICKS breathes a new whirlwind 8 pixels ahead of it, with a puff of dust below and a flare unless the leader is riding one.

References fdActorPlaySoundInView(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), scAirsRockInsideMoveWhirlwind(), scFieldEffectSpawn(), syCos(), syGameFlagGet(), syImportActorCreate(), syMathMulFX() and sySin().

Referenced by scAirsRockInsideWakeStatue().

Definition at line 932 of file airs_rock_inside.c.

scAirsRockInsideWakeStatue

void scAirsRockInsideWakeStatue(ACTOR *actor, Sint16 timer, Uint8 landingLayer)

Wakes a statue unless the party keeps its place: it breathes its first whirlwind once its timer reaches WHIRLWIND_BREATH_TICKS, and its whirlwinds set the leader down on the ledge of layer landingLayer.

References scAirsRockInsideStatueBreathesWhirlwind(), Sint32 and syGameFlagGet().

Referenced by scAirsRockInsideBlowGust(), scAirsRockInsideWakeEntranceStatue(), scAirsRockInsideWakeHallStatue() and scInit().

Definition at line 987 of file airs_rock_inside.c.

scAirsRockInsideMovePooledWhirlwind

void scAirsRockInsideMovePooledWhirlwind(ACTOR *shot)

A whirlwind of the hall's movable statue, one of three it uses in turn: as scAirsRockInsideMoveWhirlwind, but it also holds still until the room's opening transition has begun (FIELD_STATE.transitionActive).

References AirsRockInsidePooledWhirlwindFadesScript, Call2(), fdActorGetById(), fdActorPlaySoundInView(), fdActorSetAnimationSpeed(), fdActorStartScript(), fdScriptGetFlag(), MainRoutineStateWork, scMapMetatileGetAttributes(), scPosDistanceAbove(), scPosFlatDistance(), Sint32, syCos() and sySin().

Referenced by scAirsRockInsideStatueBreathesPooledWhirlwind().

Definition at line 1003 of file airs_rock_inside.c.

scAirsRockInsideStatueBreathesPooledWhirlwind

void scAirsRockInsideStatueBreathesPooledWhirlwind(ACTOR *actor)

The movable statue's update: as scAirsRockInsideStatueBreathesWhirlwind, but breathing the first of its three whirlwinds that is not on its way.

References fdActorGetById(), fdActorPlaySoundInView(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), scAirsRockInsideMovePooledWhirlwind(), scFieldEffectSpawn(), Sint32, syCos(), syGameFlagGet(), syMathMulFX() and sySin().

Referenced by scAirsRockInsideWakeMovableStatue().

Definition at line 1075 of file airs_rock_inside.c.

scAirsRockInsideWakeMovableStatue

void scAirsRockInsideWakeMovableStatue(ACTOR *actor, Sint16 timer, Uint8 landingLayer)

Wakes the hall's movable statue as scAirsRockInsideWakeStatue does.

References fdActorSetSpriteFlags(), scAirsRockInsideStatueBreathesPooledWhirlwind(), Sint32 and syGameFlagGet().

Referenced by scInit().

Definition at line 1142 of file airs_rock_inside.c.

scAirsRockInsideUpdateVentPuff

void scAirsRockInsideUpdateVentPuff(ACTOR *actor)

A vent's puff of steam: it drifts and grows until its time runs out; reaching the leader it bounces back and carries him (CUE_PUFF_REACHES_LEADER), and it bounces off the room's pillars.

References fdActorGetById(), fdActorRelease(), fdActorSetAnimationSpeed(), MainRoutineStateWork, scPosFlatDistance() and Sint32.

Referenced by scAirsRockInsidePuffVent().

Definition at line 1159 of file airs_rock_inside.c.

scAirsRockInsidePuffVent

void scAirsRockInsidePuffVent(Sint32 x, Sint32 y, Sint32 z)

A puff of steam blown from a vent.

References fdActorSelectAnimation(), fdActorSetBlendMode(), fdActorSetSpriteColor(), fdActorSetSpriteFlags(), scAirsRockInsideUpdateVentPuff(), Sint32, syImportActorCreate() and syRandom().

Referenced by scAirsRockInsidePuffVents().

Definition at line 1232 of file airs_rock_inside.c.

scAirsRockInsidePuffVents

void scAirsRockInsidePuffVents(void)

An event: on two ticks in eight, while no menu, Psynergy or item is in use, a vent puffs steam (scAirsRockInsidePuffVent). In the statues room the west vent puffs, or on odd ticks the east one until its pillar is placed; in the face vents room a vent near the leader puffs, the scene's flags passing over a vent a pillar has blocked.

References fdActorGetById(), MainRoutineStateWork, scAirsRockInsidePuffVent(), Sint32, syGameFlagGet() and TickCount.

Referenced by scInit().

Definition at lines 1255 and 3673 of file airs_rock_inside.c.

scAirsRockInsideFollowGust

void scAirsRockInsideFollowGust(ACTOR *actor)

An actor a gust carries: it rides 8 pixels above the gust, its draw order flickering.

References TickCount.

Definition at line 1337 of file airs_rock_inside.c.

scAirsRockInsideSpiralGust

void scAirsRockInsideSpiralGust(ACTOR *actor)

A gust's spark: circles the centre kept in bounce and sceneWord, a lap every 32 ticks, its radius growing as it rises above the ground.

References syCos() and sySin().

Referenced by scAirsRockInsideBlowGust().

Definition at lines 1346 and 2128 of file airs_rock_inside.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References AirsRockInsideEntrances, AirsRockInsideHallEntrances and MainRoutineStateWork.

Definition at line 1835 of file airs_rock_inside.c.

scGetExitRegions

const SCENE_REGION *scGetExitRegions(void)

Definition at line 1842 of file airs_rock_inside.c.

scGetExits

const Uint32 *scGetExits(void)

References SceneExits.

Definition at line 1847 of file airs_rock_inside.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References AirsRockInsideEntrancePlacements, AirsRockInsideFaceVentsPlacements, AirsRockInsideHallPlacements, AirsRockInsidePairedStakesPlacements, AirsRockInsidePlacements, AirsRockInsideRevealTabletPlacements, AirsRockInsideStatuesPlacements, AirsRockInsideTightropesPlacements, AirsRockInsideTurningBridgePlacements, AirsRockInsideWindStonePlacements and MainRoutineStateWork.

Definition at line 1852 of file airs_rock_inside.c.

scAirsRockInsideSpiralSpark

void scAirsRockInsideSpiralSpark(ACTOR *actor)

A spark: circles the centre kept in bounce and sceneWord on an ellipse twice as wide as deep, the radius growing with its height; it rises by its gravity each tick and turns blue (SPRITE_COLOR_BLUE_TINT) and back every two ticks.

References fdActorSetSpriteColor(), Sint32, syCos(), sySin() and TickCount.

Referenced by scAirsRockInsideWakeEntranceStatue() and scAirsRockInsideWakeHallStatue().

Definition at line 2146 of file airs_rock_inside.c.

scAirsRockInsideFlickerTarget

void scAirsRockInsideFlickerTarget(ACTOR *actor)

A Whirlwind target's update while the gust gathers: it flickers to the colour mode in sceneCount (a SPR_COL_MODE), at the rate sceneByte sets.

References fdActorSetSpriteColor(), Sint32 and TickCount.

Referenced by scAirsRockInsideWakeEntranceStatue() and scAirsRockInsideWakeHallStatue().

Definition at line 2168 of file airs_rock_inside.c.

scAirsRockInsideVanishStone

void scAirsRockInsideVanishStone(Sint32 x, Sint32 y)

A stepping stone the leader has crossed fades with a drip and is gone.

References fdActorRelease(), fdActorSetSpriteFlags(), fdMapGridCopyMetatilesTo(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), scMapMetatileSetAttributes(), scSetActorSpritePriority(), Sint32, syImportActorCreate(), sySoundPlay() and sySynch().

Referenced by scAirsRockInsideStepOffVanishingStone().

Definition at line 2730 of file airs_rock_inside.c.

scAirsRockInsideOrbitAnchor

Bool scAirsRockInsideOrbitAnchor(ORBITER *orbiter)

An orbiter's update: circles 8 pixels above its anchor, closing in 4 pixels a step and leaving sparks, until its countdown ends; 1 once it is 2 pixels out.

References scFieldVectorAddPolarOffsetFX(), scOrbitSparkSpawn(), Sint32 and syVectorAddPolarOffset().

Referenced by AirsRockInsideOrbitingSparkScript.

Definition at line 2871 of file airs_rock_inside.c.

scAirsRockInsideShebaLearnsReveal

void scAirsRockInsideShebaLearnsReveal(Sint32 tabletId, Sint32 shebaId)

The tablet rises in a rumble, sparks circle Sheba and she learns Reveal.

References AirsRockInsideOrbitingSparkScript, AirsRockInsideRisingSparkScript, fdActorConfigureSpriteColor(), fdActorGetById(), fdActorSelectAnimation(), fdActorSetBlendMode(), fdActorSetMovementTypeById(), fdActorSetSpriteColor(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdActorStartScript(), fdCameraMoveWithinMapBounds(), fdCameraSetSpeedParams(), fdPaletteFadeSetSource(), fdPaletteFadeSetTarget(), fdPaletteFadeStartInterpolation(), gmPlayMusic(), LessonAdeptRiseScript, LessonAdeptSettleScript, LessonSeekingSparkScript, LessonTabletRiseScript, LessonTabletSettleScript, scActorEmitSparkles(), scFieldActorCreate(), scFieldScriptWait(), scFieldVectorAddPolarOffsetFX(), scSetActorSpritePriority(), Sint32, syImportActorCreate(), syRandom(), sySoundPlay() and sySynch().

Referenced by scAirsRockInsideReadRevealTablet().

Definition at line 2933 of file airs_rock_inside.c.

scGetCues

const CUE *scGetCues(void)

The cue table for the current room.

References AirsRockInsideEntranceCues, AirsRockInsideFaceVentsCues, AirsRockInsideHallCues, AirsRockInsidePairedStakesCues, AirsRockInsidePsynergyStoneCues, AirsRockInsideRevealTabletCues, AirsRockInsideStatuesCues, AirsRockInsideTightropesCues, AirsRockInsideTurningBridgeCues, AirsRockInsideWindStoneCues and MainRoutineStateWork.

Definition at line 3402 of file airs_rock_inside.c.

scAirsRockInsideLandInHall

void scAirsRockInsideLandInHall(void)

Dropping from the entrance room: the leader falls 130 pixels into the hall and lands in a ring of dust.

References fdActorGetById(), fdActorSetAnimationById(), fdCameraMoveToFX(), fdEffectAdvanceMotion(), fdEffectSetAttached(), fdMapGridCenterOnFollowedPoint(), fdMapGridWaitForShakeToSettle(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldEffectSpawn(), scFieldScriptWait(), Sint32, syCos(), sySin(), sySoundPlay() and sySynch().

Referenced by scInit().

Definition at line 3607 of file airs_rock_inside.c.

scInit

Sint32 scInit(void)

References AirsRockInsideEntrancePillars, AirsRockInsideFaceVentsPillars, AirsRockInsideHallPillars, AirsRockInsidePairedStakesPillars, AirsRockInsidePairedStakesStakes, AirsRockInsideStatuesPillars, AirsRockInsideTightropesPillars, AirsRockInsideWindStonePillars, fdActorGetById(), fdActorPlaceBlocks(), fdActorSetMovementType(), fdActorSetPosFX(), fdActorSetSpriteColor(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdMapGridCenterOnFollowedPoint(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdQueueMusic(), fdTightropeInit(), fdTightropePlace(), MainRoutineStateWork, scAirsRockInsideLandInHall(), scAirsRockInsidePlaceStakes(), scAirsRockInsidePuffVents(), scAirsRockInsideRiseOnLift(), scAirsRockInsideSetLedgeMetatilesByLevel(), scAirsRockInsideSpawnMotes(), scAirsRockInsideStartRestoringMetatiles(), scAirsRockInsideWakeMovableStatue(), scAirsRockInsideWakeStatue(), scFieldMapMetatileSetAttributes(), scMapMetatileSetAttributes(), Sint32, syGameFlagGet(), syGameFlagSet(), sySetEvent() and sySynch().

Definition at line 3675 of file airs_rock_inside.c.

scPrepareMap

Sint32 scPrepareMap(void)

References MainRoutineStateWork, scAirsRockInsideSetLedgeMetatilesByLevel() and Sint32.

Definition at line 4032 of file airs_rock_inside.c.

Variables in detail

AirsRockInsideStampedMetatile

extern Sint32 AirsRockInsideStampedMetatile

Sint32 AirsRockInsideStampedMetatile

The metatile stampers keep their last metatile and the block they copy.

References Sint32.

Referenced by scAirsRockInsideRestoreMetatileBehindLeader(), scAirsRockInsideStampMetatileUnderLeader(), scAirsRockInsideStampOtherMetatileUnderLeader(), scAirsRockInsideStampWideMetatileUnderLeader() and scAirsRockInsideStartRestoringMetatiles().

Definition at lines 305 and 4412 of file airs_rock_inside.c.

AirsRockInsideStampedWidth

Sint32 AirsRockInsideStampedWidth

References Sint32.

Referenced by scAirsRockInsideRestoreMetatileBehindLeader(), scAirsRockInsideStampMetatileUnderLeader(), scAirsRockInsideStampOtherMetatileUnderLeader() and scAirsRockInsideStampWideMetatileUnderLeader().

Definition at line 306 of file airs_rock_inside.c.

AirsRockInsideStampedHeight

Sint32 AirsRockInsideStampedHeight

References Sint32.

Referenced by scAirsRockInsideRestoreMetatileBehindLeader(), scAirsRockInsideStampMetatileUnderLeader(), scAirsRockInsideStampOtherMetatileUnderLeader() and scAirsRockInsideStampWideMetatileUnderLeader().

Definition at line 307 of file airs_rock_inside.c.

AirsRockInsideStampedX

Sint32 AirsRockInsideStampedX

References Sint32.

Referenced by scAirsRockInsideRestoreMetatileBehindLeader(), scAirsRockInsideStampMetatileUnderLeader(), scAirsRockInsideStampOtherMetatileUnderLeader() and scAirsRockInsideStampWideMetatileUnderLeader().

Definition at line 308 of file airs_rock_inside.c.

AirsRockInsideStampedZ

Sint32 AirsRockInsideStampedZ

References Sint32.

Referenced by scAirsRockInsideRestoreMetatileBehindLeader(), scAirsRockInsideStampMetatileUnderLeader(), scAirsRockInsideStampOtherMetatileUnderLeader() and scAirsRockInsideStampWideMetatileUnderLeader().

Definition at line 309 of file airs_rock_inside.c.

AirsRockInsidePlacements

extern ACTOR_PLACE AirsRockInsidePlacements[]

ACTOR_PLACE AirsRockInsidePlacements[]

Referenced by scGetActorPlacements().

Definition at lines 318 and 4234 of file airs_rock_inside.c.

AirsRockInsideHallPlacements

extern ACTOR_PLACE AirsRockInsideHallPlacements[]

ACTOR_PLACE AirsRockInsideHallPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 319 and 4238 of file airs_rock_inside.c.

AirsRockInsideEntrancePlacements

extern ACTOR_PLACE AirsRockInsideEntrancePlacements[]

ACTOR_PLACE AirsRockInsideEntrancePlacements[]

Referenced by scGetActorPlacements().

Definition at lines 320 and 4258 of file airs_rock_inside.c.

AirsRockInsideStatuesPlacements

extern ACTOR_PLACE AirsRockInsideStatuesPlacements[]

ACTOR_PLACE AirsRockInsideStatuesPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 321 and 4270 of file airs_rock_inside.c.

AirsRockInsideRevealTabletPlacements

extern ACTOR_PLACE AirsRockInsideRevealTabletPlacements[]

ACTOR_PLACE AirsRockInsideRevealTabletPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 322 and 4325 of file airs_rock_inside.c.

AirsRockInsideHallPillars

extern Sint16 AirsRockInsideHallPillars[]

Sint16 AirsRockInsideHallPillars[]

The blocks Move pushes in each room (fdActorPlaceBlocks), ended by -1: the hall's statue.

Referenced by scAirsRockInsideStartPushingPillar() and scInit().

Definition at lines 329 and 4048 of file airs_rock_inside.c.

AirsRockInsideEntrancePillars

extern Sint16 AirsRockInsideEntrancePillars[]

Sint16 AirsRockInsideEntrancePillars[]

The entrance room's two pillars.

Referenced by scAirsRockInsideStartPushingPillar() and scInit().

Definition at lines 330 and 4053 of file airs_rock_inside.c.

AirsRockInsideStatuesPillars

extern Sint16 AirsRockInsideStatuesPillars[]

Sint16 AirsRockInsideStatuesPillars[]

The statues room's three pillars and its statue.

Referenced by scAirsRockInsideStartPushingPillar() and scInit().

Definition at lines 331 and 4058 of file airs_rock_inside.c.

AirsRockInsideTightropesPillars

extern Sint16 AirsRockInsideTightropesPillars[]

Sint16 AirsRockInsideTightropesPillars[]

The tightropes room's pillar.

Referenced by scAirsRockInsideStartPushingPillar() and scInit().

Definition at lines 332 and 4067 of file airs_rock_inside.c.

AirsRockInsidePairedStakesPillars

extern Sint16 AirsRockInsidePairedStakesPillars[]

Sint16 AirsRockInsidePairedStakesPillars[]

The paired stakes room's four pillars.

Referenced by scAirsRockInsideStartPushingPillar() and scInit().

Definition at lines 333 and 4072 of file airs_rock_inside.c.

AirsRockInsideFaceVentsPillars

extern Sint16 AirsRockInsideFaceVentsPillars[]

Sint16 AirsRockInsideFaceVentsPillars[]

The face vents room's five pillars.

Referenced by scAirsRockInsideStartPushingPillar() and scInit().

Definition at lines 334 and 4079 of file airs_rock_inside.c.

AirsRockInsideWindStonePillars

extern Sint16 AirsRockInsideWindStonePillars[]

Sint16 AirsRockInsideWindStonePillars[]

The Wind Stone room's pillar and statue.

Referenced by scAirsRockInsideStartPushingPillar() and scInit().

Definition at lines 335 and 4086 of file airs_rock_inside.c.

AirsRockInsideHallCues

extern CUE AirsRockInsideHallCues[]

CUE AirsRockInsideHallCues[]

References scAirsRockInsideFinishPushingPillar(), scAirsRockInsideOpenTabletRoomDoor(), scAirsRockInsideRideWhirlwind(), scAirsRockInsideStampMetatileUnderLeader(), scAirsRockInsideStampOtherMetatileUnderLeader(), scAirsRockInsideStampTallMetatileUnderLeader(), scAirsRockInsideStampTallMetatileUnderLeaderNearer(), scAirsRockInsideStartPushingPillar(), scAirsRockInsideStartWhirlwind(), scAirsRockInsideTakeOverWhirlwind() and scAirsRockInsideWakeHallStatue().

Referenced by scGetCues().

Definition at lines 340 and 4414 of file airs_rock_inside.c.

AirsRockInsideEntranceCues

extern CUE AirsRockInsideEntranceCues[]

CUE AirsRockInsideEntranceCues[]

References scAirsRockInsideFinishPushingPillar(), scAirsRockInsideJumpDownLedge(), scAirsRockInsideRideWhirlwind(), scAirsRockInsideStampMetatileUnderLeader(), scAirsRockInsideStampOtherMetatileUnderLeader(), scAirsRockInsideStartPushingPillar(), scAirsRockInsideStartWhirlwind(), scAirsRockInsideTakeOverWhirlwind() and scAirsRockInsideWakeEntranceStatue().

Referenced by scGetCues().

Definition at lines 341 and 4459 of file airs_rock_inside.c.

AirsRockInsideStatuesCues

extern CUE AirsRockInsideStatuesCues[]

CUE AirsRockInsideStatuesCues[]

References scAirsRockInsideFinishPushingPillar(), scAirsRockInsideRideStatuesVent(), scAirsRockInsideRideWhirlwind(), scAirsRockInsideStampMetatileUnderLeader() and scAirsRockInsideStartPushingPillar().

Referenced by scGetCues().

Definition at lines 342 and 4490 of file airs_rock_inside.c.

AirsRockInsideTightropesCues

extern CUE AirsRockInsideTightropesCues[]

CUE AirsRockInsideTightropesCues[]

References scAirsRockInsideBlowGust(), scAirsRockInsideFinishPushingPillar(), scAirsRockInsideStartPushingPillar(), scAirsRockInsideStartWhirlwind() and scAirsRockInsideTakeOverWhirlwind().

Referenced by scGetCues().

Definition at lines 343 and 4520 of file airs_rock_inside.c.

AirsRockInsideRevealTabletCues

extern CUE AirsRockInsideRevealTabletCues[]

CUE AirsRockInsideRevealTabletCues[]

References scAirsRockInsideHideRevealedDoors(), scAirsRockInsideIgnoreStep(), scAirsRockInsideReadRevealTablet(), scAirsRockInsideReadTabletFacingEast(), scAirsRockInsideReadTabletFacingWest(), scAirsRockInsideRevealDoors(), scAirsRockInsideStampMetatileUnderLeader(), scAirsRockInsideStampOtherMetatileUnderLeader(), scAirsRockInsideStampWideMetatileUnderLeader(), scAirsRockInsideStepOffVanishingStone() and scAirsRockInsideWalkToRevealTablet().

Referenced by scGetCues().

Definition at lines 344 and 4550 of file airs_rock_inside.c.

AirsRockInsideTurningBridgeCues

extern CUE AirsRockInsideTurningBridgeCues[]

CUE AirsRockInsideTurningBridgeCues[]

References scAirsRockInsideBlowGust(), scAirsRockInsideMoveTurningBridgePillar(), scAirsRockInsideStampMetatileUnderLeader(), scAirsRockInsideStampOtherMetatileUnderLeader(), scAirsRockInsideStartWhirlwind() and scAirsRockInsideTakeOverWhirlwind().

Referenced by scGetCues().

Definition at lines 345 and 4585 of file airs_rock_inside.c.

AirsRockInsidePairedStakesCues

extern CUE AirsRockInsidePairedStakesCues[]

CUE AirsRockInsidePairedStakesCues[]

References scAirsRockInsideBlowGust(), scAirsRockInsideFinishPushingPillar(), scAirsRockInsidePoundPairedStakesStake(), scAirsRockInsideStampMetatileUnderLeader(), scAirsRockInsideStartPushingPillar(), scAirsRockInsideStartWhirlwind(), scAirsRockInsideStepOntoStake() and scAirsRockInsideTakeOverWhirlwind().

Referenced by scGetCues().

Definition at lines 346 and 4614 of file airs_rock_inside.c.

AirsRockInsideFaceVentsCues

extern CUE AirsRockInsideFaceVentsCues[]

CUE AirsRockInsideFaceVentsCues[]

References scAirsRockInsideBlowGust(), scAirsRockInsideFinishPushingPillar(), scAirsRockInsideRideFaceVent(), scAirsRockInsideRideWhirlwind(), scAirsRockInsideStartPushingPillar(), scAirsRockInsideStartWhirlwind() and scAirsRockInsideTakeOverWhirlwind().

Referenced by scGetCues().

Definition at lines 347 and 4669 of file airs_rock_inside.c.

AirsRockInsideWindStoneCues

extern CUE AirsRockInsideWindStoneCues[]

CUE AirsRockInsideWindStoneCues[]

References scAirsRockInsideBlowGust(), scAirsRockInsideFinishPushingPillar(), scAirsRockInsideRideWhirlwind(), scAirsRockInsideStampMetatileUnderLeader(), scAirsRockInsideStartPushingPillar(), scAirsRockInsideStartWhirlwind() and scAirsRockInsideTakeOverWhirlwind().

Referenced by scGetCues().

Definition at lines 348 and 4713 of file airs_rock_inside.c.

AirsRockInsidePsynergyStoneCues

extern CUE AirsRockInsidePsynergyStoneCues[]

CUE AirsRockInsidePsynergyStoneCues[]

References scAirsRockInsideCheckPsynergyStone().

Referenced by scGetCues().

Definition at lines 349 and 4735 of file airs_rock_inside.c.

AirsRockInsideWindStoneScript

extern Uint32 AirsRockInsideWindStoneScript[]

Uint32 AirsRockInsideWindStoneScript[]

Referenced by AirsRockInsideFaceVentsPlacements, AirsRockInsidePairedStakesPlacements, AirsRockInsideTightropesPlacements, AirsRockInsideTurningBridgePlacements and AirsRockInsideWindStonePlacements.

Definition at lines 387 and 4142 of file airs_rock_inside.c.

AirsRockInsideTightropesPlacements

extern ACTOR_PLACE AirsRockInsideTightropesPlacements[]

ACTOR_PLACE AirsRockInsideTightropesPlacements[]

References AirsRockInsideWindStoneScript and Sint32.

Referenced by scGetActorPlacements().

Definition at lines 426 and 4286 of file airs_rock_inside.c.

AirsRockInsideTurningBridgePlacements

extern ACTOR_PLACE AirsRockInsideTurningBridgePlacements[]

ACTOR_PLACE AirsRockInsideTurningBridgePlacements[]

References AirsRockInsideWindStoneScript and Sint32.

Referenced by scGetActorPlacements().

Definition at lines 427 and 4333 of file airs_rock_inside.c.

AirsRockInsidePairedStakesPlacements

extern ACTOR_PLACE AirsRockInsidePairedStakesPlacements[]

ACTOR_PLACE AirsRockInsidePairedStakesPlacements[]

References AirsRockInsideWindStoneScript and Sint32.

Referenced by scGetActorPlacements().

Definition at lines 428 and 4360 of file airs_rock_inside.c.

AirsRockInsideFaceVentsPlacements

extern ACTOR_PLACE AirsRockInsideFaceVentsPlacements[]

ACTOR_PLACE AirsRockInsideFaceVentsPlacements[]

References AirsRockInsideWindStoneScript and Sint32.

Referenced by scGetActorPlacements().

Definition at lines 429 and 4384 of file airs_rock_inside.c.

AirsRockInsideWindStonePlacements

extern ACTOR_PLACE AirsRockInsideWindStonePlacements[]

ACTOR_PLACE AirsRockInsideWindStonePlacements[]

References AirsRockInsideWindStoneScript and Sint32.

Referenced by scGetActorPlacements().

Definition at lines 430 and 4402 of file airs_rock_inside.c.

AirsRockInsideWhirlwindFadesScript

extern Uint32 AirsRockInsideWhirlwindFadesScript[]

Uint32 AirsRockInsideWhirlwindFadesScript[]

Referenced by scAirsRockInsideMoveWhirlwind().

Definition at lines 836 and 4126 of file airs_rock_inside.c.

AirsRockInsideWhirlwindRisesScript

extern Uint32 AirsRockInsideWhirlwindRisesScript[]

Uint32 AirsRockInsideWhirlwindRisesScript[]

Referenced by scAirsRockInsideMoveWhirlwind().

Definition at lines 837 and 4119 of file airs_rock_inside.c.

AirsRockInsidePooledWhirlwindFadesScript

extern Uint32 AirsRockInsidePooledWhirlwindFadesScript[]

Uint32 AirsRockInsidePooledWhirlwindFadesScript[]

Referenced by scAirsRockInsideMovePooledWhirlwind().

Definition at lines 998 and 4134 of file airs_rock_inside.c.

AirsRockInsideEntrances

extern SCENE_ENTRANCE AirsRockInsideEntrances[]

SCENE_ENTRANCE AirsRockInsideEntrances[]

Referenced by scGetEntrances().

Definition at lines 1832 and 4159 of file airs_rock_inside.c.

AirsRockInsideHallEntrances

extern SCENE_ENTRANCE AirsRockInsideHallEntrances[]

SCENE_ENTRANCE AirsRockInsideHallEntrances[]

Referenced by scGetEntrances().

Definition at lines 1833 and 4164 of file airs_rock_inside.c.

OrbitSparkScript

extern Uint32 OrbitSparkScript[]

Uint32 OrbitSparkScript[]

Referenced by scOrbitSparkSpawn().

Definition at lines 2844 and 4090 of file airs_rock_inside.c.

AirsRockInsideRisingSparkScript

extern Uint32 AirsRockInsideRisingSparkScript[]

Uint32 AirsRockInsideRisingSparkScript[]

Referenced by scAirsRockInsideShebaLearnsReveal().

Definition at lines 2903 and 4096 of file airs_rock_inside.c.

AirsRockInsideOrbitingSparkScript

extern Sint32 AirsRockInsideOrbitingSparkScript[]

Sint32 AirsRockInsideOrbitingSparkScript[]

References scAirsRockInsideOrbitAnchor() and Sint32.

Referenced by scAirsRockInsideShebaLearnsReveal().

Definition at lines 2904 and 4103 of file airs_rock_inside.c.

AirsRockInsidePairedStakesStakes

extern Uint16 AirsRockInsidePairedStakesStakes[]

Uint16 AirsRockInsidePairedStakesStakes[]

The paired stakes room's four stakes, as scAirsRockInsidePlaceStakes reads them: each stake, its first pose and the flag set while it is sunk.

Referenced by scAirsRockInsideStepOntoStake() and scInit().

Definition at lines 3236 and 4151 of file airs_rock_inside.c.

AirsRockInsideLeaderLevel

extern Sint32 AirsRockInsideLeaderLevel

Sint32 AirsRockInsideLeaderLevel

The great hall's level the leader stood at when its ledge metatiles were last set; -1 before.

References Sint32.

Referenced by scAirsRockInsideSetLedgeMetatilesByLevel().

Definition at lines 3547 and 4744 of file airs_rock_inside.c.

FieldEffectDurationScripts

const Sint32 *FieldEffectDurationScripts[]

References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.

Referenced by fdEffectSpawnResident(), scFieldEffectSpawn() and scFieldEffectSpawnLocal().

Definition at line 4113 of file airs_rock_inside.c.

SceneExits

Uint32 SceneExits[]

Referenced by scGetExits().

Definition at line 4184 of file airs_rock_inside.c.

On this page

MacrosEnumerationsFunctionsVariablesDescriptionMacros in detailFLAG_AIRS_ROCK_HALL_MOVABLE_STATUE_PLACEDFLAG_AIRS_ROCK_ENTRANCE_WEST_PILLAR_PLACEDFLAG_AIRS_ROCK_ENTRANCE_EAST_PILLAR_PLACEDFLAG_AIRS_ROCK_STATUES_FIRST_PILLAR_PLACEDFLAG_AIRS_ROCK_STATUES_SECOND_PILLAR_PLACEDFLAG_AIRS_ROCK_STATUES_THIRD_PILLAR_PLACEDFLAG_AIRS_ROCK_TIGHTROPES_PILLAR_PLACEDFLAG_AIRS_ROCK_TURNING_BRIDGE_PILLAR_MOVEDFLAG_AIRS_ROCK_PAIRED_STAKES_PILLAR_PLACEDFLAG_AIRS_ROCK_FACE_VENTS_FIRST_PILLAR_PLACEDFLAG_AIRS_ROCK_FACE_VENTS_SECOND_PILLAR_PLACEDFLAG_AIRS_ROCK_FACE_VENTS_THIRD_PILLAR_PLACEDFLAG_AIRS_ROCK_WIND_STONE_PILLAR_PLACEDFLAG_AIRS_ROCK_HALL_STATUE_WOKENFLAG_AIRS_ROCK_ENTRANCE_STATUE_WOKENFLAG_REVEAL_TABLET_READFLAG_STAKE_A_DOWNFLAG_STAKE_B_DOWNFLAG_STAKE_C_DOWNFLAG_STAKE_D_DOWNFLAG_SOUTHEAST_VENT_STILLFLAG_MIDDLE_WEST_VENT_STILLFLAG_NORTHEAST_VENT_STILLFLAG_STONE_VANISHEDFLAG_FIRST_STONE_VANISHEDFLAG_TIGHTROPES_GUST_PATH_CLEAREDFLAG_TIGHTROPES_BRIDGE_TURNEDFLAG_TURNING_BRIDGE_TURNEDFLAG_TURNING_BRIDGE_PILLAR_ON_BRIDGEFLAG_PAIRED_STAKES_NORTH_BARRIER_BLOWN_AWAYFLAG_PAIRED_STAKES_SOUTH_BARRIER_BLOWN_AWAYFLAG_WIND_STONE_BARRIER_BLOWN_AWAYTURNING_BRIDGE_PILLAR_ON_BRIDGE_XMETATILE_BEHAVIOR_AIRS_ROCK_INSIDE_GUST_STOPACTOR_REVEAL_TABLETEFFECT_SET_MODEEFFECT_SET_SCRIPTEFFECT_SPRITE_PRIORITYSTAKE_ROW_BYTESTARGETGUST_DROPGUST_DROP_XPICK_UPSHAKEDEFINE_AIRS_ROCK_INSIDE_TRACK_LEADER_METATILEDEFINE_AIRS_ROCK_INSIDE_SET_DOORSDEFINE_AIRS_ROCK_INSIDE_READ_TABLETEnumerations in detailanonymous enumanonymous enumAIRS_ROCK_INSIDE_METATILE_BEHAVIORAIRS_ROCK_INSIDE_FACE_VENTS_VENTAIRS_ROCK_INSIDE_GUST_STOPAIRS_ROCK_INSIDE_RAISED_CUEAIRS_ROCK_INSIDE_HALL_ACTOR_IDAIRS_ROCK_INSIDE_ENTRANCE_ACTOR_IDAIRS_ROCK_INSIDE_STATUES_ACTOR_IDAIRS_ROCK_INSIDE_TIGHTROPES_ACTOR_IDAIRS_ROCK_INSIDE_TURNING_BRIDGE_ACTOR_IDAIRS_ROCK_INSIDE_PAIRED_STAKES_ACTOR_IDAIRS_ROCK_INSIDE_FACE_VENTS_ACTOR_IDAIRS_ROCK_INSIDE_WIND_STONE_ACTOR_IDanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumFunctions in detailscAirsRockInsideRestoreMetatileBehindLeaderscAirsRockInsideBurstDustscAirsRockInsideScatterSparksscAirsRockInsideStampMetatileUnderLeaderscAirsRockInsideReadRevealTabletscAirsRockInsideStartRestoringMetatilesscAirsRockInsideSetLedgeMetatilesByLevelscAirsRockInsideSpawnMotesscAirsRockInsideRiseOnLiftscAirsRockInsidePlaceStakesscAirsRockInsideTakeOverWhirlwindscAirsRockInsideRideWhirlwindscAirsRockInsideBlowGustscAirsRockInsideStampOtherMetatileUnderLeaderscAirsRockInsideStampTallMetatileUnderLeaderscAirsRockInsideStampTallMetatileUnderLeaderNearerscAirsRockInsideWakeHallStatuescAirsRockInsideOpenTabletRoomDoorscAirsRockInsideStartPushingPillarscAirsRockInsideFinishPushingPillarscAirsRockInsideWakeEntranceStatuescAirsRockInsideJumpDownLedgescAirsRockInsideRideStatuesVentscAirsRockInsideStepOffVanishingStonescAirsRockInsideStampWideMetatileUnderLeaderscAirsRockInsideHideRevealedDoorsscAirsRockInsideRevealDoorsscAirsRockInsideWalkToRevealTabletscAirsRockInsideReadTabletFacingWestscAirsRockInsideReadTabletFacingEastscAirsRockInsideMoveTurningBridgePillarscAirsRockInsidePoundPairedStakesStakescAirsRockInsideStepOntoStakescAirsRockInsideRideFaceVentscAirsRockInsideCheckPsynergyStonescAirsRockInsideIgnoreStepscAirsRockInsideSetStakeMetatilesscPillarPlacescAirsRockInsideScatterMotescAirsRockInsideDriftMotescAirsRockInsideStartWhirlwindscAirsRockInsidePoundStakescAirsRockInsideMoveWhirlwindscAirsRockInsideStatueBreathesWhirlwindscAirsRockInsideWakeStatuescAirsRockInsideMovePooledWhirlwindscAirsRockInsideStatueBreathesPooledWhirlwindscAirsRockInsideWakeMovableStatuescAirsRockInsideUpdateVentPuffscAirsRockInsidePuffVentscAirsRockInsidePuffVentsscAirsRockInsideFollowGustscAirsRockInsideSpiralGustscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscAirsRockInsideSpiralSparkscAirsRockInsideFlickerTargetscAirsRockInsideVanishStonescAirsRockInsideOrbitAnchorscAirsRockInsideShebaLearnsRevealscGetCuesscAirsRockInsideLandInHallscInitscPrepareMapVariables in detailAirsRockInsideStampedMetatileAirsRockInsideStampedWidthAirsRockInsideStampedHeightAirsRockInsideStampedXAirsRockInsideStampedZAirsRockInsidePlacementsAirsRockInsideHallPlacementsAirsRockInsideEntrancePlacementsAirsRockInsideStatuesPlacementsAirsRockInsideRevealTabletPlacementsAirsRockInsideHallPillarsAirsRockInsideEntrancePillarsAirsRockInsideStatuesPillarsAirsRockInsideTightropesPillarsAirsRockInsidePairedStakesPillarsAirsRockInsideFaceVentsPillarsAirsRockInsideWindStonePillarsAirsRockInsideHallCuesAirsRockInsideEntranceCuesAirsRockInsideStatuesCuesAirsRockInsideTightropesCuesAirsRockInsideRevealTabletCuesAirsRockInsideTurningBridgeCuesAirsRockInsidePairedStakesCuesAirsRockInsideFaceVentsCuesAirsRockInsideWindStoneCuesAirsRockInsidePsynergyStoneCuesAirsRockInsideWindStoneScriptAirsRockInsideTightropesPlacementsAirsRockInsideTurningBridgePlacementsAirsRockInsidePairedStakesPlacementsAirsRockInsideFaceVentsPlacementsAirsRockInsideWindStonePlacementsAirsRockInsideWhirlwindFadesScriptAirsRockInsideWhirlwindRisesScriptAirsRockInsidePooledWhirlwindFadesScriptAirsRockInsideEntrancesAirsRockInsideHallEntrancesOrbitSparkScriptAirsRockInsideRisingSparkScriptAirsRockInsideOrbitingSparkScriptAirsRockInsidePairedStakesStakesAirsRockInsideLeaderLevelFieldEffectDurationScriptsSceneExits