Skip to Content
The Alchemy Project

src/scene/gabomba_statue.c

Inside the Gabomba Statue at Kibombo, the seven rooms of this overlay: halls of turning cogs and pinions that Felix rides and hops across. More…

Structures

NameDescription
structSPR_VIEWA sprite as the depth queue takes it (QUEUED_SPR), its affine mode and matrix written as bytes.
structSCENE_STATEThe channel puzzle's state: its grid of pieces, laid from a random seed, and the blocks and arrows drawn over it.
structCLOCK_WORKThe offering's countdown clock, MM:SS:T drawn as sprites: the digits that change shrink and grow back each second as it ticks.

Macros

NameDescription
#defineOWN_fdActorStartIdleThis unit declares its own form of fdActorStartIdle, below.
#defineFLAG_GABOMBA_COGS_TURNED_BACK 0x8cdBoth stakes have been Pounded and the cogs turned the other way.
#defineFLAG_GABOMBA_SAW_HOW_IT_WORKS 0x8f6The party has watched how the statue's works run.
#defineFLAG_GABOMBA_TIMING_NOTICED 0x9ecKraden has said it is when the charges arrive that matters ("Maybe we need to look at when the two magical charges reach the statue in the middle").
#defineFLAG_GABOMBA_FIRST_STAKE_POUNDED 0x8ceThe west stake.
#defineFLAG_GABOMBA_SECOND_STAKE_POUNDED 0x8cfThe east stake.
#defineFLAG_GABOMBA_MOUSE_SEEN 0xa6cThe mouse that shows the way across the cogs of its room has been seen.
#defineFLAG_GABOMBA_CHARGES_REACHED_APART 0x9ebThe two magical charges reached the statue in the middle at different times.
#defineFLAG_LADDER_TOP_BLOCKS_DRAWN FLAG_SCENE_TEMP(0x00)The ladder-top blocks are drawn (scGabombaStatueRestoreLadderTopBlocks).
#defineFLAG_GABOMBA_FIRST_ROPE_TIED FLAG_SCENE_TEMP(0x01)Tied by fdRopePlace.
#defineFLAG_GABOMBA_SECOND_ROPE_TIED FLAG_SCENE_TEMP(0x02)Tied by fdRopePlace.
#defineFLAG_COGS_STOPPED FLAG_SCENE_TEMP(0x03)A tied rope has stopped the cogs (scGabombaStatueLashRope).
#defineFLAG_LANDED_BESIDE_STEEL FLAG_SCENE_TEMP(0x04)The party has fallen in beside Steel, who can then be talked to.
#defineFLAG_OFFERING_HEARD FLAG_SCENE_TEMP(0x05)The offering below has been heard (scGabombaStatueHearTheOffering).
#defineEFFECT_SET_MODE fdActorSelectAnimation
#defineEFFECT_SET_SCRIPT fdActorStartScript
#defineHEADING_BIT (heading) (1 << (heading))A heading's bit in a set of headings.
#defineHEADING_ALL_TRIEDA path's tried headings once every one has been tried.
#defineCHARGE_STEP (heading, piece) (((heading) << 8) + (piece))A charge's step along the channel: where it heads and the piece under it.
#defineSceneStateWork (*(SCENE_STATE *)SceneStateWork)The scene's view of SceneStateWork (system/globals.h).
#defineDIFF_WITHIN (a, b, limit)Whether a and b are at most limit apart.
#defineDEFINE_GABOMBA_STATUE_STEP_WHEN_HELD (A ladder down that Felix takes only when he walks into it: from the squares beside it on row, pushing east or west, or from the one south of it, pushing north.
#defineDEFINE_GABOMBA_STATUE_STEP_WHEN_HELD_FOUR (name,The same for a ladder down with a square to walk in from on each of its four sides.
#defineDEFINE_GABOMBA_STATUE_WALK_LEADER_TO (name, x, z)Felix walks into the gap between two turning pinions, which grind and pull him through to (x, z) on the other side.
#defineDEFINE_GABOMBA_STATUE_HIDE_LADDER_TOP_BLOCKS (name, first, count)Gives a room's ladder-top blocks SPRITE_COLOR_HIDDEN and holds them 36 pixels up.
#defineCOG_METATILE (behavior, attributes, pictureFlags)A cog's metatile word: its collision code (the metatile behavior), the attribute bits above it and the flags of its metatile tiles, ORed into the map's.
#defineMARK (at, shape, bits)Gives a metatile under a cog its shape on both layers and adds bits to both its shape words.
#definePATH_KEEP_HEADING_CHANCE 32768The chance, out of syRandom's 65,536, that a try keeps the path's heading; the other half of the time it tries a random one.
#defineCLOCK_DEPTH 236The depth the clock is drawn at, in front of the room's actors.
#defineCLOCK_STATEThe clock's state, kept 256 bytes into the inventory snapshot's spare room.

Enumerations

NameDescription
enumanonymous enum { ACTOR_MOUSE }The mouse that runs ahead across the cogs of its room and shows the way (scGabombaStatueMouseShowsTheWay).
enumanonymous enum { ACTOR_KRADEN, ACTOR_AKAFUBU }The eyes room's Kraden, who works out the channel with the party, and Akafubu, who comes up into the statue once the ceremony has worked (scGabombaStatueSeeHowItWorks, scGabombaStatueSawEnergyFlow).
enumanonymous enum { ACTOR_CORRIDORS_LADDER_TOP_BLOCK }Each room's placed actors.
enumanonymous enum { ACTOR_FIRST_ROPE_POST_A, ACTOR_FIRST_ROPE_POST_B, ACTOR_SECO … }The lower cogs room.
enumanonymous enum { ACTOR_STEEL_GREEN_COGS, ACTOR_STEEL_BLUE_COGS, ACTOR_STEEL_R … }Steel's room.
enumanonymous enum { ACTOR_MOUSE_GREEN_COGS, ACTOR_MOUSE_BLUE_COGS, ACTOR_MOUSE_R … }The mouse's room.
enumanonymous enum { ACTOR_UPPER_COGS_ROPE_POST_A, ACTOR_UPPER_COGS_ROPE_POST_B, … }The upper cogs room.
enumanonymous enum { ACTOR_MIDDLE_STATUE, ACTOR_BLUE_ORB_STATUE, ACTOR_RED_ORB_ST … }The eyes room: the statue in the middle, where the charges must arrive, the statues holding the blue and the red orb whose charges run along the channel, the stake whose Pound raises the blocks, and the seven loose blocks of the channel ("It looks like the energy charge is supposed to run over these blocks.").
enumanonymous enum { ANIM_MOSSY_STAKE_STANDING, ANIM_MOSSY_STAKE_SUNK }The eyes room's stake as fdActorSetMetatileOpen draws a mossy stone stake: standing, and sunk by Pound.
enumanonymous enum { ANIM_MOUSE_SITTING_UP }The mouse's animation as it shows the way: sitting, it rears up on its hind legs now and then and sits again (mouse.tsv, pictures 0, 3, 6 and 9).
enumanonymous enum { ANIM_HAND_POINTING }The pointing hand's animation over the break in the channel: the hand bobs down and back, pointing (pointing_hand.tsv, pictures 0 to 2 over 32 ticks).
enumanonymous enum { ANIM_CHARGE_CIRCLING, ANIM_CHARGE_BURSTING, ANIM_CHARGE_RUNN … }The charges' animations, by where the scene picks them: circling their orb statue (and as one shrinks away), bursting off the channel (and as one is taken off the map), and running along it.
enumanonymous enum { ACTOR_PINION_A, ACTOR_PINION_B, ACTOR_PINION_C, ACTOR_PINION … }The entrance hall.
enumGABOMBA_STATUE_METATILE_BEHAVIOR { METATILE_BEHAVIOR_FIRST_LADDER_DOWN, METATILE_BEHAVIOR_SECON … }The metatile behaviors of the rooms' cue tables.
enumGABOMBA_STATUE_ARROW_METATILE_BEHAVIOR { METATILE_BEHAVIOR_AROUND_LEFT_ARROW, METATILE_BEHAVIOR_LEFT_ … }The eyes room's: the panel with an arrow, and the metatiles around it that raise it again once the leader steps off.
enumanonymous enum { RAISED_COGS_TURN_BACK, RAISED_STAKE_STANDS_UP, RAISED_OFFERI … }The cues this overlay raises: both stakes Pounded, the eyes room's stake Pounded, and the offering's clock run out.
enumanonymous enum { ACTOR_STEEL }Steel, the Venus Djinni waiting in Steel's room.
enumanonymous enum { FIRST_ROPE, SECOND_ROPE }A room's ropes, by the index the rope functions take; the lower cogs room has two.
enumanonymous enum { COG_TOOTH_STEPS }The steps of a cog tooth's turn: its phase, kept in the tooth's sceneCount, counts them, two degrees each.
enumanonymous enum { CHANNEL_COLUMNS, CHANNEL_ROWS, CHANNEL_METATILES, CHANNEL_OR … }The eyes room's channel: a grid of blocks, eleven columns by eight rows, from the map's metatile (19, 11).
enumCHANNEL_HEADING { HEADING_EAST, HEADING_SOUTH, HEADING_WEST, HEADING_NORTH }The way a charge runs along the channel, and the way a path leaves a metatile.
enumCHANNEL_PIECE { PIECE_NONE, PIECE_NORTH_SOUTH, PIECE_EAST_WEST, PIECE_CROSSI … }The pieces of the channel, by the sides of the metatile they join, which are also the rows of the metatile tiles the map keeps for them.
enumanonymous enum { PATH_BIT_BLUE_WEST, PATH_BIT_RED_EAST, PATH_BIT_BLUE_EAST, P … }The four charges' paths, by the bit of PUZZLE_METATILE.state that marks a metatile one runs through (scGabombaStatueLayPath takes the bit's number).
enumCHANNEL_PATH { PATH_BLUE_WEST, PATH_RED_EAST, PATH_BLUE_EAST, PATH_RED_WEST … }The bits of PUZZLE_METATILE.state: which of the four charges' paths run through the metatile.
enumanonymous enum { BLOCK_NONE, BLOCK_IN_PLACE, BLOCK_RAISED }What stands on a metatile of the channel (PUZZLE_METATILE.occupied).
enumanonymous enum { CHARGE_STOPPED, CHARGE_RUNNING, CHARGE_LEAVING, CHARGE_ARRIV … }ACTOR.chargeState.
enumanonymous enum { CHANNEL_BLOCKS }The blocks of the channel, one for each of the room's block actors.
enumanonymous enum { POUND_LAND_TICK }A Pound handler runs each tick of the fist's fall with (landed, tick): landed is 1 on the tick the fist lands, POUND_LAND_TICK, and what it strikes sinks a step on each tick before.
enumanonymous enum { BLOCK_ANIM_TURN_CLOCKWISE, BLOCK_ANIM_TURN_COUNTERCLOCKWISE }The channel blocks' animations, which all the blocks share with the first: the green crystal spins one way as the right arrow panel turns them clockwise, and back as the left turns them counterclockwise.
enumanonymous enum { TURN_COUNTERCLOCKWISE, TURN_CLOCKWISE }The two ways a block turns (scGabombaStatueTurnBlockPiece).
enumanonymous enum { CIRCLE_STEP }How far a charge circles its orb statue each tick, in 256ths of a turn.
enumanonymous enum { ROPE_STOP_TICKS }The ticks the cog's tooth takes to settle as the rope pulls taut.
enumCHARGE_ARRIVAL { CHARGE_ARRIVAL_TOGETHER, CHARGE_ARRIVAL_BLUE_FIRST, CHARGE_A … }How the charges reached the statue in the middle (scGabombaStatueRunCharges), which decides how the ceremony outside goes on.
enumanonymous enum { COG_SHAPE_GREEN_COG, COG_SHAPE_TOP, COG_SHAPE_NORTHWEST, COG … }The map shapes of the cogs' metatiles, from COG_SHAPE_FIRST: the scene writes GabombaStatueCogShapes over the map's own entries there.
enumanonymous enum { BLOCK_PICTURE_BYTES }A raised block's picture: 16 pixels square in 256 colours, one for each piece in CHANNEL_PIECE's order.
enumanonymous enum { EAST_PATH_METATILES, WEST_PATH_METATILES, PATH_TO_CROSSING_M … }The metatiles of the charges' paths to the statue in the middle: the two sent east run EAST_PATH_METATILES and the two sent west WEST_PATH_METATILES, so that a blue and a red charge arrive together.
enumanonymous enum { PATH_ATTEMPTS_MAX, PATH_TRIES_PER_STEP }How long scGabombaStatueLayPath searches: the steps it takes in all before it gives up, and the random headings it tries from a metatile before backing up.
enumanonymous enum { BLOCK_TURN_TICKS }The ticks the raised blocks take to turn a quarter turn.
enumanonymous enum { RIGHT_ARROW_PANEL_COLUMN, LEFT_ARROW_PANEL_COLUMN, ARROW_PAN … }The arrow panels' metatiles, which the map keeps at metatiles (0, 12) to (1, 13): a column for each panel, a row for each of its two states.
enumanonymous enum { RAISED_BLOCK_DEPTH }A raised block's slot in the depth list past its position's, as fdRenderApplyProjectedPlacement queues an actor's sprite 62 past its own and the actor's shadow 60.
enumanonymous enum { CHARGE_STEPS_PER_METATILE, CHARGE_METATILES_MAX }The ticks a charge takes to cross a metatile of the channel, and the metatiles a run of the charges crosses at most.
enumanonymous enum { CLOCK_PICTURE_BYTES, CLOCK_SHEET_PICTURES, CLOCK_SHOWN_PICTU … }The clock's digit sprite sheet: the pictures of 0 to 9 and the colon, 8 by 16 pixels each, then the five shown.

Functions

NameDescription
Sint32fdActorStartIdle ()Declared as these rooms' code calls it, with no parameter list and an Sint32 result, though it takes the actor and returns nothing: scGabombaStatueRunCharges once calls it with no actor.
voidscGabombaStatueFightSteel (void)Talking to Steel, beside whom Felix lands after riding a pink drum off the mouse's room, starts its battle.
Sint32scGabombaStatueLookAround (ACTOR *actor)A member of the party looking about: it turns between its two headings every 10 to 49 ticks.
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.
Sint32scGabombaStatueFlashCog (ACTOR *actor)The flashing cog's update: its colours swap between two orders every ten ticks.
voidscGabombaStatueGetToothPos (ACTOR *actor, FIXED *x, FIXED *z)Where the cog's tooth an actor rides is now: the rope's target hook, so that a rope tied to it follows the turning cog.
Sint32scGabombaStatueTurnTooth (ACTOR *actor)A cog tooth's update: it turns about the cog's centre by the cogs' direction.
Sint32scGabombaStatueCircleOwner (ACTOR *actor)Each tick, keeps an actor circling the actor it watches.
const Uint8 *scGetActorPlacements (void)The scene's actor placements: a room of names for its entrance, else the debug room's.
voidscGabombaStatueLashRope (void)Lash on the rope by the cogs in the north-west of the lower cogs room, between the posts at metatiles (18, 5) and (20, 5), ties it to a tooth of the blue cog.
ACTOR *scGabombaStatueFindCogUnder (ACTOR *origin, Sint32 id)The cog of sprite id within 24 pixels of origin, or null.
ACTOR *scGabombaStatueFindCogAhead (ACTOR *origin, Sint32 id)As scGabombaStatueFindCogUnder, but around the point 16 pixels ahead of origin in its facing.
voidscGabombaStatueHopOffCog (ACTOR *actor, Sint32 dx, Sint32 dz, Sint32 velocity)The leader hops off a cog by dx, dz.
voidscGabombaStatueTurnWithCog (void)Standing on a green cog turns the leader with it.
voidscGabombaStatueRideBlueCog (void)Standing on a blue cog carries the leader round with it, unless a wall stops him.
voidscGabombaStatueRideSlidingCog (void)Standing on a red cog carries the leader east or west as it slides, kept on its middle; 20 pixels from its centre he hops off the end.
voidscGabombaStatueEndRide (ACTOR *actor)The ride on a pink drum of the mouse's room ends at its south end: the leader drops off it to the room below.
voidscGabombaStatueRideRoller (void)Standing on a roller carries the leader north or south as it rolls, a blue pillar one way and a pink drum the other, kept on its middle; 20 pixels from its centre he hops off the end.
voidscGabombaStatueHopAcrossEastOrWest (void)Walking east or west off a sliding cog hops the leader to the next.
voidscGabombaStatueHopAcrossNorthOrSouth (void)Walking north or south off a roller hops the leader to the next.
voidscGabombaStatueMouseShowsTheWay (ACTOR *actor)When Felix walks to the far west of the mouse's room, metatile (14, 10), a little mouse pops up, squeaks, and hops from cog to cog, showing the way across.
voidscGabombaStatueSendCharge (Sint32 id, Sint32 colorMode, Sint32 statueId, Sint32 angle)Sets charge id circling the orb statue statueId from the angle given, tinted colorMode.
voidscGabombaStatueResetCharge (Sint32 id)Takes charge id off the map, stopped.
voidscGabombaStatueReleaseCharges (void)Sends the four charges circling out of the orb statues, the blue statue's green-tinted and the red's red-tinted.
voidscGabombaStatueHearTheOffering (void)The offering's clock has run out: Akafubu offers the jewel below ("O Great Gabomba!
const Uint8 *scGetCues (void)The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's.
voidscGabombaStatueClimbDownLadder (Sint32 x, Sint32 z)Felix walks to the top of the ladder at x, z, turns his back and climbs down it, and the screen closes on him as he leaves for the room below by the ladder's exit.
DEFINE_GABOMBA_STATUE_STEP_WHEN_HELD(scGabombaStatueClimbDownCorridorsLadder , 11, 18, 20, 19, 12, 312, 180)Felix climbs down the ladder in the north of the corridors room, where the Mimic and the Bone Armlet's chest are, at metatile (19, 11), back to the entrance hall below, when he walks into it from the west, the east or the south.
DEFINE_GABOMBA_STATUE_STEP_WHEN_HELD_FOUR(scGabombaStatueClimbDownLowerCogsLadder , 29, 11, 13, 12, 28, 30, 472, 196)Felix climbs down the ladder in the north of the lower cogs room, at metatile (29, 12), back to the corridors room below, when he walks into it from any side.
voidscGabombaStatueClimbDownSteelNortheastLadder (void)Felix climbs down the ladder in the north-east of Steel's room, at metatile (33, 7), to the north-east of the lower cogs room below, when he walks into it from the west or the south.
voidscGabombaStatueClimbDownSteelWestLadder (void)Felix climbs down the ladder in the west of Steel's room, at metatile (6, 13), to the west of the lower cogs room below, when he walks into it from any side.
voidscGabombaStatueClimbDownSteelEastLadder (void)Felix climbs down the ladder in the east of Steel's room, at metatile (42, 13), to the east of the lower cogs room below, when he walks into it from the north, the west or the south.
DEFINE_GABOMBA_STATUE_STEP_WHEN_HELD(scGabombaStatueClimbDownMouseNorthLadder , 7, 23, 25, 24, 8, 392, 112)Felix climbs down the ladder in the north of the mouse's room, at metatile (24, 7), to Steel's room below, when he walks into it from the west, the east or the south.
DEFINE_GABOMBA_STATUE_STEP_WHEN_HELD(scGabombaStatueClimbDownMouseWestLadder , 9, 5, 7, 6, 10, 104, 146)Felix climbs down the ladder in the west of the mouse's room, at metatile (6, 9), to the west of Steel's room below, when he walks into it from the west, the east or the south.
voidscGabombaStatueClimbDownMouseEastLadder (void)Felix climbs down the ladder in the east of the mouse's room, beside its east blue cog at metatile (42, 9), to the east of Steel's room below, when he walks into it from the east or the south.
DEFINE_GABOMBA_STATUE_STEP_WHEN_HELD_FOUR(scGabombaStatueClimbDownUpperCogsLadder , 27, 17, 19, 18, 26, 28, 440, 288)Felix climbs down the ladder in the middle of the upper cogs room, below the small idol's chamber, at metatile (27, 18), back to the mouse's room, when he walks into it from any side.
voidscGabombaStatueClimbDownEyesLadder (void)Felix climbs down the ladder in the north-east of the eyes room, at metatile (29, 9), back to the small idol's chamber below, when he walks into it from the west or the south.
DEFINE_GABOMBA_STATUE_WALK_LEADER_TO(scGabombaStatuePinionsCarryLeaderNorth , 152, 424)Walking into the gap between the pinions in the south-west of the entrance hall, metatile (9, 28), Felix is pulled through them to the north.
voidscGabombaStatuePinionsThrowLeaderSouth (void)Once the cogs turn the other way, the pinions in the south-west of the entrance hall throw Felix back out to the south when he walks into their gap, and he lands with a rattle, leaning back.
DEFINE_GABOMBA_STATUE_WALK_LEADER_TO(scGabombaStatueLowerCogsPinionsCarryLeaderSouth , 376, 200)Walking into the gap between the pinions in the north of the lower cogs room, metatile (23, 9), Felix is pulled through them to the south.
DEFINE_GABOMBA_STATUE_WALK_LEADER_TO(scGabombaStatueLowerCogsPinionsCarryLeaderNorth , 376, 136)Once the cogs turn the other way, the pinions in the south of the lower cogs room, metatile (24, 22), pull Felix through them to the north.
DEFINE_GABOMBA_STATUE_WALK_LEADER_TO(scGabombaStatueUpperCogsPinionsCarryLeaderSouth , 440, 248)Walking into the gap between the pinions in the upper cogs room, metatile (27, 12), Felix is pulled through them to the south.
DEFINE_GABOMBA_STATUE_WALK_LEADER_TO(scGabombaStatueUpperCogsPinionsCarryLeaderNorth , 440, 184)Once the cogs turn the other way, the pinions east of the first in the upper cogs room, metatile (35, 13), pull Felix through them to the north.
voidscGabombaStatueSetLadderTopBlocksDrawn (Sint32 show)Draws the room's ladder-top blocks, or hides them.
voidscGabombaStatueDrawLadderTopBlocks (void)Unused: draws the ladder-top blocks.
voidscGabombaStatueHideLadderTopBlocks (void)Hides the ladder-top blocks.
voidscGabombaStatuePoundStake (Sint32 landed, Sint32 tick)Pound on one of the two stakes either side of the flashing cog in the south of its room, metatiles (20, 30) and (24, 30), drives it into the floor.
voidscGabombaStatueCogsTurnBack (void)When the second stake by the flashing cog is Pounded, the view pans to the cog between the two stakes, the cogs stop with a clank, the flashing cog bobs up and settles, and every cog starts turning the other way.
voidscGabombaStatuePoundEyesStake (Sint32 landed)Pound on the eyes room's stake raises the channel's blocks.
voidscGabombaStatueStakeStandsUp (void)Once the blocks have risen, the Pounded stake stands up again to a rising chime.
voidscGabombaStatueCheckOfferingClock (void)Each tick: once the offering's clock has run out, the offering is made.
voidscGabombaStatueHideActor (Sint32 id)Hides actor id (SPRITE_COLOR_HIDDEN) and fixes it in place, sorted behind the others.
voidscGabombaStatueRestoreLadderTopBlocks (void)Coming back to the same spot hides the ladder-top blocks again unless they were drawn when the party left; otherwise they are drawn.
DEFINE_GABOMBA_STATUE_HIDE_LADDER_TOP_BLOCKS(scGabombaStatueHideCorridorsLadderTopBlock , ACTOR_CORRIDORS_LADDER_TOP_BLOCK, 1)The corridors room, as it is set up: its one ladder-top block.
DEFINE_GABOMBA_STATUE_HIDE_LADDER_TOP_BLOCKS(scGabombaStatueHideLowerCogsLadderTopBlocks , ACTOR_LOWER_COGS_WEST_LADDER_TOP_BLOCK, 2)The lower cogs room, as it is set up: its two ladder-top blocks.
voidscGabombaStatuePauseCogsInMenus (void)Each tick: while a menu or Psynergy is up, the cogs and the rope posts stand still.
voidscGabombaStatueDrawCogMetatiles (void)Gives the metatiles under every cog of the room their shapes and the metatile behaviors that carry the leader with it, and fixes the cogs in place.
voidscGabombaStatueFadeByDepth (void)Blends the room's layers by how far south the camera is: from 232 pixels, a step of the blend's sixteen every 8 pixels.
voidscGabombaStatueSetCogTurn (Sint32 id, Sint32 direction, Sint32 ticks)Sets the row of cogs led by id turning by direction, its current picture held for ticks more ticks: each room gives its rows 0 to 4, so that they do not all step on the same tick.
voidscGabombaStatueTurnCogs (Sint32 direction)Sets the cogs' direction and turns every cog of the room that way.
voidscGabombaStatueLandFromFall (void)Felix drops off the south end of a pink drum in the mouse's room above and falls into Steel's room, landing with a thump in a ring of dust; he sits a moment as the screen shakes, then stands.
voidscGabombaStatueFocusEnergies (void)Coming up the hole into the eyes room as the ceremony starts below: Akafubu calls "Focus your energies!", and Kraden calls the party over to watch.
voidscGabombaStatueWatchTheChargesStick (void)The party watches the orb statues' charges run along the broken channel, and is sent back down as the ceremony fails.
voidscGabombaStatueSeeHowItWorks (void)Kraden sees how the statue works, and the party agrees to mend the channel for Akafubu's ceremony.
voidscGabombaStatueSawEnergyFlow (void)Once the Gabomba has responded, Akafubu comes up into the statue, and the party tells him how it mended the channel and where the orb went.
voidscGabombaStatueKradenNoticesTiming (void)Back from a failed ceremony whose charges reached the statue in the middle apart, Kraden notices it is their timing that matters, and the clock starts again.
Sint32scInit (void)Sets up whichever room of the statue is being entered: its cogs turning, stopped by the rope or turned the other way by the stakes, then the room's own things.
Sint32scPrepareMap (void)Coming into the entrance hall from outside sets the cogs and the stakes back as they were.
voidscGabombaStatueInitCorridors (void)Sets up the corridors room.
static inline voidscFieldRopePlace (Sint32 index, Sint32 flag, Sint32 firstPost, Sint32 secondPost)Places rope index between two posts, tied when its flag is set, else coiled: the script inline over the scene's import of fdRopePlace, as script_inline.h writes them.
voidscGabombaStatueInitLowerCogs (void)Sets up the lower cogs room: its pinions let go of the leader coming in from the west or the east of Steel's room, the stakes, the flashing cog raised until both are Pounded, and the two ropes.
voidscGabombaStatueInitSteel (void)Sets up Steel's room: its rope, and the fall in from the mouse's room.
voidscGabombaStatueInitUpperCogs (void)Sets up the upper cogs room, below the small idol's chamber: its rope, coiled.
Sint32scGabombaStatueGetPuzzleSeed (void)Which of the channel's seeds this game lays it from: the letters of the leader's name added up.
voidscGabombaStatueInitEyes (void)Sets up the eyes room: its orb statues, its charges and the channel.
voidscGabombaStatueInitEntrance (void)Sets up the entrance hall; coming in from outside, Retreat leads back to it.
static __inline__ void *scMemAllocate (Sint32 size)
voidscGabombaStatueLoadBlockPictures (void)Loads the blocks' pictures into the VRAM cache.
Sint32scGabombaStatueIsMetatileTaken (Uint32 x, Uint32 z)Whether channel metatile (x, z) is taken: blocked, holding a block, or a stop; 0 outside the grid.
BoolscGabombaStatueHasTakenNeighbor (Sint32 x, Sint32 z)Whether a metatile beside channel metatile (x, z) is taken.
voidscGabombaStatueRedrawChannel (void)Redraws the channel as the party left it: a raised block's socket open, the other blocks in place, and once the Gabomba has responded every block set back in.
Sint32scGabombaStatueTurnBlockPiece (Sint32 x, Sint32 z, Sint32 direction)Turns the block at channel metatile (x, z) a quarter turn, and returns its new piece.
Sint32scGabombaStatueLayChannel (Sint32 seed)Lays the channel from seed, trying the seeds after it until each charge's path reaches the statue in the middle as the puzzle needs, then breaks the circuit and loosens the seven blocks, turned at random.
Sint32scGabombaStatueLayPath (Sint32 startX, Sint32 startZ, Sint32 endX, Sint32 endZ, Sint32 length, Sint32 direction, Sint32 lastHeading, Sint32 pathBit)Lays a random path of length metatiles across the channel from (startX, startZ), heading direction, to (endX, endZ), which it leaves by lastHeading; the pieces it passes are joined to it, and each metatile is marked with the path's bit, pathBit.
Sint32scGabombaStatuePickPiece (Sint32 enter, Sint32 leave, Sint32 existing)The piece joining the heading a path enters a metatile by to the one it leaves by, merged with the piece already there.
voidscGabombaStatueWritePiece (Sint32 x, Sint32 z, Sint32 kind, Sint32 state)Puts piece kind, with the paths state, at channel metatile (x, z).
voidscGabombaStatueSetBlocksRaised (Sint32 id, Sint32 raised)Raises the blocks over the room, their sockets open, or sets them in place: each block's actor, numbered from id, stands over its metatile while it is raised.
voidscGabombaStatueRaiseBlocks (Sint32 landed, Sint32 tick)A step of the Pound on the eyes room's stake: it sinks, and as it ends the blocks rise.
voidscGabombaStatuePoundBlock (Sint32 landed)Pounding a raised block sets it back into its place in the channel as the fist lands.
voidscGabombaStatueSetBlockAnimation (Sint32 animation)Sets the channel blocks' animation (BLOCK_ANIM_TURN_*).
voidscGabombaStatueTurnBlocks (Sint32 direction)Turns every raised block a quarter turn.
voidscGabombaStatuePressLeftArrowPanel (void)Stepping onto the left arrow panel presses it, and with the blocks raised turns them a quarter turn counterclockwise.
voidscGabombaStatueReleaseLeftArrowPanel (void)Stepping off the left arrow panel raises it again.
voidscGabombaStatuePressRightArrowPanel (void)The right arrow panel: as the left, turning the blocks clockwise.
voidscGabombaStatueReleaseRightArrowPanel (void)Stepping off the right arrow panel raises it again.
voidscGabombaStatueDrawRaisedBlocks (void)Each tick: draws the raised blocks over the room, turning while an arrow panel turns them.
Sint32scGabombaStatueSetUpChannelPuzzle (Sint32 x, Sint32 z, Sint32 seed, Sint32 id)Sets up the channel puzzle on entering the eyes room: its grid from the map's metatile (x, z), laid from seed, its blocks the actors from id.
voidscGabombaStatueMoveCharge (ACTOR *charge, Sint32 step, Sint32 id)A tick of a charge's run along the channel: it follows the piece under it, bursts where that piece does not go on its way, and shrinks away where it is stopped short of the statue in the middle or reaches a raised block's socket.
Sint32scGabombaStatueRunCharges (Sint32 first, Sint32 check)Runs the four charges from the orb statues along the channel until each has stopped and, with check, tells how they reached the statue in the middle.
voidscGabombaStatueFindBrokenMetatile (Uint32 *columnOut, Uint32 *rowOut)Finds the metatile where the circuit is broken: a block with no piece on it.
voidscGabombaStatueFormatClock (Sint32 time, Uint8 *text)Converts the remaining ticks into minutes, seconds and tenths (MM:SS:T).
Sint32scGabombaStatueTickClock (Sint32 time)Plays the clock's tick each second and returns the scale of the changing digits, which shrink out of sight and grow back over the last third of each second, as the clock counts down to its tick.
voidscGabombaStatueDrawClock (void)Draws the clock's minutes and seconds, doubled in size, the colon and each digit about to change taking the ticking scale.
voidscGabombaStatueCountDownShowingClock (void)Counts the clock down while no menu is open, and draws it.
voidscGabombaStatueCountDown (void)Counts the clock down while no menu is open.
voidscGabombaStatueStartClock (Sint32 shown)Starts the clock at one minute, shown or hidden.
voidscGabombaStatueStopClock (void)Stops the clock's countdown.
voidscGabombaStatueRestartClock (void)Starts the clock counting down from a minute.
Sint32scGabombaStatueGetClock (void)The ticks left on the clock.
voidscGabombaStatueResetClock (void)Sets the clock back to a minute.
voidscGabombaStatuePlaceSwitchActors (const Uint16 *entry)Puts out the stakes of a table of rows (actor, kind, flag), ended by -1, each standing or driven down as its flag says.

Variables

NameDescription
extern const Sint32 *FieldEffectDurationScripts []The field effects' three scripts by how long an effect lasts: short, medium and long.
extern SCENE_REGIONGabombaStatueEntranceExitRegions []
extern SCENE_REGIONGabombaStatueCorridorsExitRegions []
extern SCENE_REGIONGabombaStatueLowerCogsExitRegions []
extern SCENE_REGIONGabombaStatueSteelExitRegions []
extern SCENE_REGIONGabombaStatueMouseExitRegions []
extern SCENE_REGIONGabombaStatueUpperCogsExitRegions []
extern Sint32GabombaStatueCogDirection
extern Sint8GabombaStatueCogAnimations []Each cog's animation by the cogs' direction + 1: turning back, stopped and turning.
extern ACTOR_PLACEGabombaStatuePlacements []
extern ACTOR_PLACEGabombaStatueCorridorsActorPlacements []
extern ACTOR_PLACEGabombaStatueLowerCogsActorPlacements []
extern ACTOR_PLACEGabombaStatueSteelActorPlacements []
extern ACTOR_PLACEGabombaStatueMouseActorPlacements []
extern ACTOR_PLACEGabombaStatueUpperCogsActorPlacements []
extern ACTOR_PLACEGabombaStatueEyesActorPlacements []
extern ACTOR_PLACEGabombaStatueEntranceActorPlacements []
extern Sint8GabombaStatueRopeStopSteps []How the tooth the first rope is tied to rocks as the rope pulls taut, a step of its turn each tick.
extern CUEGabombaStatueCues []
extern CUEGabombaStatueCorridorsCues []
extern CUEGabombaStatueLowerCogsCues []
extern CUEGabombaStatueSteelCues []
extern CUEGabombaStatueMouseCues []
extern CUEGabombaStatueUpperCogsCues []
extern CUEGabombaStatueEyesCues []
extern CUEGabombaStatueEntranceCues []
extern Sint16GabombaStatueStakes []The stakes beside the flashing cog: actor, its look, and the flag Pounding it sets.
extern Sint32GabombaStatueChargeScript []
extern Uint32GabombaStatueLeaderFocusScript []
extern Uint32GabombaStatueChannelSeeds [16]The random seeds a game's channel is laid from, one picked by the leader's name (scGabombaStatueGetPuzzleSeed).
Uint8GabombaStatuePathHeadings [32]scGabombaStatueLayPath's steps so far: each step's heading, metatile, piece, headings tried and the paths through its metatile before it was joined.
Uint8GabombaStatuePathColumns [32]
Uint8GabombaStatuePathRows [32]
Uint8GabombaStatuePathPieces [32]
Uint8GabombaStatuePathTried [32]
Uint8GabombaStatuePathMetatilePaths [32]
extern Sint8GabombaStatuePathSteps []The step along each heading as (column, row).
extern Uint8GabombaStatuePieceJoins []The headings each piece joins, a bit each; a crossing, two curves and a stop let no new path in.
extern Uint8GabombaStatuePieceTable []The piece joining each heading a path enters a metatile by (a row of four) to each it leaves by.
extern Uint8GabombaStatueTurnedPieces []Each piece turned a quarter turn counterclockwise and clockwise, a pair a piece in CHANNEL_PIECE's order.
extern Sint32GabombaStatueChargeShrinkScript []
extern Uint32GabombaStatueChargeBurstScript []
Uint32GabombaStatueCogShapes []The shapes scGabombaStatueDrawCogMetatiles writes over the map's from COG_SHAPE_FIRST.
Uint32GabombaStatuePinionReleaseScript []
LATE_DATA Uint8GabombaStatueUnusedTurnedPieces []Unused: GabombaStatueTurnedPieces from its second byte to its 21st.
LATE_DATASint32The way the cogs turn, which each tooth an actor rides steps by.
LATE_DATA Uint32GabombaStatueJennaFocusScript []
LATE_DATA Uint32GabombaStatuePiersFocusScript []
LATE_DATA Uint32GabombaStatueKradenFocusScript []
LATE_DATA Uint32GabombaStatueKradenPointsScript []
LATE_DATA Uint32GabombaStatueLookAtChannelScript []
LATE_DATA Sint32GabombaStatueLookNorthAndEastScript []The party looking about as the charges run, each turning between north and north-east (or north-west) by scGabombaStatueLookAround: the timer and user words are where the actor keeps lookFacing and lookOtherFacing.
LATE_DATA Sint32GabombaStatueLookNorthAndWestScript []
LATE_DATA Uint32GabombaStatueJennaWatchesScript []
LATE_DATA Uint32GabombaStatueAkafubuComesUpScript []
LATE_DATA SCENE_ENTRANCESceneEntrances []Besides the party's return to the pier after the ship is stolen, four unused spots about the mast: below the huge block, on the dock by its crate, on the deck, and at the top of the sail's east pole.
LATE_DATA Uint32SceneExits []The room has no exits of its own.
LATE_DATA Sint32GabombaStatueFlashCogScript []
LATE_DATA Sint32GabombaStatueTurnToothScript []

Description

Inside the Gabomba Statue at Kibombo, the seven rooms of this overlay: halls of turning cogs and pinions that Felix rides and hops across.

From the statue grounds the party comes into the entrance hall, whose turning pinions in the south-west pull Felix through to the north. Above lie the corridors room with the Bone Armlet's chest, and the lower cogs room with the flashing cog, where Lash on a rope stops every cog (scGabombaStatueLashRope) so that Felix can cross to the ladder up to Steel's room and the mouse's room, where a mouse shows how to hop from cog to cog (scGabombaStatueMouseShowsTheWay). Back in the lower cogs room, Pound on the two stakes beside the flashing cog turns all the cogs the other way (scGabombaStatuePoundStake); a pink drum in the mouse's room then drops Felix beside the Venus Djinni Steel. The way on leads through the pinions of the upper cogs room below the small idol's chamber, up to the chamber and to the eyes room behind the statue's eyes. There the party watches the ceremony's two magical charges stick in a broken channel and mends it (scGabombaStatueFocusEnergies to scGabombaStatueKradenNoticesTiming): Pound on the stake raises the channel's blocks, the arrow panels turn them, and Pound sets each back in, until the blue and the red orb statues' charges reach the statue in the middle at once.

Macros in detail

OWN_fdActorStartIdle

#define OWN_fdActorStartIdle

This unit declares its own form of fdActorStartIdle, below.

Definition at line 23 of file gabomba_statue.c.

FLAG_GABOMBA_COGS_TURNED_BACK

#define FLAG_GABOMBA_COGS_TURNED_BACK 0x8cd

Both stakes have been Pounded and the cogs turned the other way.

Referenced by GabombaStatueLowerCogsCues, scGabombaStatueCogsTurnBack(), scInit() and scPrepareMap().

Definition at line 34 of file gabomba_statue.c.

FLAG_GABOMBA_SAW_HOW_IT_WORKS

#define FLAG_GABOMBA_SAW_HOW_IT_WORKS 0x8f6

The party has watched how the statue's works run.

Referenced by scGabombaStatueInitEyes() and scGabombaStatueSeeHowItWorks().

Definition at line 36 of file gabomba_statue.c.

FLAG_GABOMBA_TIMING_NOTICED

#define FLAG_GABOMBA_TIMING_NOTICED 0x9ec

Kraden has said it is when the charges arrive that matters ("Maybe we need to look at when the two magical charges reach the statue in the middle").

Referenced by scGabombaStatueInitEyes() and scGabombaStatueKradenNoticesTiming().

Definition at line 39 of file gabomba_statue.c.

FLAG_GABOMBA_FIRST_STAKE_POUNDED

#define FLAG_GABOMBA_FIRST_STAKE_POUNDED 0x8ce

The west stake.

Referenced by GabombaStatueLowerCogsCues, GabombaStatueStakes, scGabombaStatueInitLowerCogs(), scGabombaStatuePoundStake() and scPrepareMap().

Definition at line 41 of file gabomba_statue.c.

FLAG_GABOMBA_SECOND_STAKE_POUNDED

#define FLAG_GABOMBA_SECOND_STAKE_POUNDED 0x8cf

The east stake.

Referenced by GabombaStatueLowerCogsCues, GabombaStatueStakes, scGabombaStatueInitLowerCogs(), scGabombaStatuePoundStake() and scPrepareMap().

Definition at line 43 of file gabomba_statue.c.

FLAG_GABOMBA_MOUSE_SEEN

#define FLAG_GABOMBA_MOUSE_SEEN 0xa6c

The mouse that shows the way across the cogs of its room has been seen.

Referenced by GabombaStatueMouseActorPlacements, GabombaStatueMouseCues and scGabombaStatueMouseShowsTheWay().

Definition at line 45 of file gabomba_statue.c.

FLAG_GABOMBA_CHARGES_REACHED_APART

#define FLAG_GABOMBA_CHARGES_REACHED_APART 0x9eb

The two magical charges reached the statue in the middle at different times.

Referenced by scGabombaStatueInitEyes() and scGabombaStatueRunCharges().

Definition at line 47 of file gabomba_statue.c.

FLAG_LADDER_TOP_BLOCKS_DRAWN

#define FLAG_LADDER_TOP_BLOCKS_DRAWN FLAG_SCENE_TEMP(0x00)

The ladder-top blocks are drawn (scGabombaStatueRestoreLadderTopBlocks).

Referenced by scGabombaStatueDrawLadderTopBlocks(), scGabombaStatueHideLadderTopBlocks() and scGabombaStatueRestoreLadderTopBlocks().

Definition at line 50 of file gabomba_statue.c.

FLAG_GABOMBA_FIRST_ROPE_TIED

#define FLAG_GABOMBA_FIRST_ROPE_TIED FLAG_SCENE_TEMP(0x01)

Tied by fdRopePlace.

Referenced by GabombaStatueLowerCogsCues, GabombaStatueSteelCues, scGabombaStatueInitLowerCogs() and scGabombaStatueInitSteel().

Definition at line 52 of file gabomba_statue.c.

FLAG_GABOMBA_SECOND_ROPE_TIED

#define FLAG_GABOMBA_SECOND_ROPE_TIED FLAG_SCENE_TEMP(0x02)

Tied by fdRopePlace.

Referenced by GabombaStatueLowerCogsCues and scGabombaStatueInitLowerCogs().

Definition at line 54 of file gabomba_statue.c.

FLAG_COGS_STOPPED

#define FLAG_COGS_STOPPED FLAG_SCENE_TEMP(0x03)

A tied rope has stopped the cogs (scGabombaStatueLashRope).

Referenced by scGabombaStatueLashRope() and scInit().

Definition at line 56 of file gabomba_statue.c.

FLAG_LANDED_BESIDE_STEEL

#define FLAG_LANDED_BESIDE_STEEL FLAG_SCENE_TEMP(0x04)

The party has fallen in beside Steel, who can then be talked to.

Referenced by GabombaStatueSteelCues and scGabombaStatueInitSteel().

Definition at line 58 of file gabomba_statue.c.

FLAG_OFFERING_HEARD

#define FLAG_OFFERING_HEARD FLAG_SCENE_TEMP(0x05)

The offering below has been heard (scGabombaStatueHearTheOffering).

Referenced by GabombaStatueEyesCues and scGabombaStatueHearTheOffering().

Definition at line 60 of file gabomba_statue.c.

EFFECT_SET_MODE

#define EFFECT_SET_MODE fdActorSelectAnimation

Referenced by EFFECT_SPAWN.

Definition at line 271 of file gabomba_statue.c.

EFFECT_SET_SCRIPT

#define EFFECT_SET_SCRIPT fdActorStartScript

Referenced by EFFECT_SPAWN.

Definition at line 272 of file gabomba_statue.c.

HEADING_BIT

#define HEADING_BIT(heading) (1 << (heading))

A heading's bit in a set of headings.

Referenced by GabombaStatuePieceJoins.

Definition at line 405 of file gabomba_statue.c.

HEADING_ALL_TRIED

#define HEADING_ALL_TRIED

A path's tried headings once every one has been tried.

Referenced by GabombaStatuePieceJoins and scGabombaStatueLayPath().

Definition at line 408 of file gabomba_statue.c.

CHARGE_STEP

#define CHARGE_STEP(heading, piece) (((heading) << 8) + (piece))

A charge's step along the channel: where it heads and the piece under it.

Referenced by scGabombaStatueMoveCharge().

Definition at line 508 of file gabomba_statue.c.

SceneStateWork

#define SceneStateWork (*(SCENE_STATE *)SceneStateWork)

The scene's view of SceneStateWork (system/globals.h).

Referenced by scContigoOfferLuckyDice(), scContigoOfferSuperLuckyDice(), scContigoReportCoinChange(), scGabombaStatueDrawRaisedBlocks(), scGabombaStatueFindBrokenMetatile(), scGabombaStatueIsMetatileTaken(), scGabombaStatueLayChannel(), scGabombaStatueLayPath(), scGabombaStatueLoadBlockPictures(), scGabombaStatueMoveCharge(), scGabombaStatuePoundBlock(), scGabombaStatuePressLeftArrowPanel(), scGabombaStatuePressRightArrowPanel(), scGabombaStatueRaiseBlocks(), scGabombaStatueRedrawChannel(), scGabombaStatueReleaseLeftArrowPanel(), scGabombaStatueReleaseRightArrowPanel(), scGabombaStatueSetBlockAnimation(), scGabombaStatueSetBlocksRaised(), scGabombaStatueSetUpChannelPuzzle(), scGabombaStatueTurnBlockPiece(), scGabombaStatueTurnBlocks(), scGabombaStatueWritePiece(), scGaiaRockInsideStartPlatforms(), scGaiaRockInsideSwayPlatforms(), scInit(), scIsletsDriftIcebergs(), scIsletsInitEastTundaria(), scIsletsStepDownOntoIceberg(), scSeaOfTimeTimeWaves(), scTaopoSwampResetMud(), scTaopoSwampRiseOnBubble(), scTaopoSwampSaveFirmGround(), scTaopoSwampSinkInMud(), scTaopoSwampStepOnFirmGround(), scTrialRoadMoveRival(), scTrialRoadPlayRivalRecording(), scTrialRoadRivalIsWaiting(), scTrialRoadStartRival(), scTrialRoadStopRival() and scTrialRoadWaitForRival().

Definition at line 585 of file gabomba_statue.c.

DIFF_WITHIN

#define DIFF_WITHIN(a, b, limit)

Whether a and b are at most limit apart.

Referenced by scGabombaStatueFindCogAhead() and scGabombaStatueFindCogUnder().

Definition at line 653 of file gabomba_statue.c.

DEFINE_GABOMBA_STATUE_STEP_WHEN_HELD

#define DEFINE_GABOMBA_STATUE_STEP_WHEN_HELD(

A ladder down that Felix takes only when he walks into it: from the squares beside it on row, pushing east or west, or from the one south of it, pushing north. Brushing past it does nothing.

Definition at line 1323 of file gabomba_statue.c.

DEFINE_GABOMBA_STATUE_STEP_WHEN_HELD_FOUR

#define DEFINE_GABOMBA_STATUE_STEP_WHEN_HELD_FOUR(name,

The same for a ladder down with a square to walk in from on each of its four sides.

Definition at line 1354 of file gabomba_statue.c.

DEFINE_GABOMBA_STATUE_WALK_LEADER_TO

#define DEFINE_GABOMBA_STATUE_WALK_LEADER_TO(name, x, z)

Felix walks into the gap between two turning pinions, which grind and pull him through to (x, z) on the other side.

Definition at line 1542 of file gabomba_statue.c.

DEFINE_GABOMBA_STATUE_HIDE_LADDER_TOP_BLOCKS

#define DEFINE_GABOMBA_STATUE_HIDE_LADDER_TOP_BLOCKS(name, first, count)

Gives a room's ladder-top blocks SPRITE_COLOR_HIDDEN and holds them 36 pixels up.

Definition at line 1728 of file gabomba_statue.c.

COG_METATILE

#define COG_METATILE(behavior, attributes, pictureFlags)

A cog's metatile word: its collision code (the metatile behavior), the attribute bits above it and the flags of its metatile tiles, ORed into the map's.

Referenced by scGabombaStatueDrawCogMetatiles().

Definition at line 1826 of file gabomba_statue.c.

MARK

#define MARK(at, shape, bits)

Gives a metatile under a cog its shape on both layers and adds bits to both its shape words.

Referenced by scGabombaStatueDrawCogMetatiles().

Definition at line 1831 of file gabomba_statue.c.

PATH_KEEP_HEADING_CHANCE

#define PATH_KEEP_HEADING_CHANCE 32768

The chance, out of syRandom's 65,536, that a try keeps the path's heading; the other half of the time it tries a random one.

Referenced by scGabombaStatueLayPath().

Definition at line 3393 of file gabomba_statue.c.

CLOCK_DEPTH

#define CLOCK_DEPTH 236

The depth the clock is drawn at, in front of the room's actors.

Referenced by scGabombaStatueDrawClock().

Definition at line 4327 of file gabomba_statue.c.

CLOCK_STATE

#define CLOCK_STATE

The clock's state, kept 256 bytes into the inventory snapshot's spare room.

Referenced by scGabombaStatueCountDown(), scGabombaStatueCountDownShowingClock(), scGabombaStatueDrawClock(), scGabombaStatueGetClock(), scGabombaStatueResetClock(), scGabombaStatueRestartClock(), scGabombaStatueStartClock(), scGabombaStatueStopClock() and scGabombaStatueTickClock().

Definition at line 4346 of file gabomba_statue.c.

Enumerations in detail

anonymous enum

enum { ACTOR_MOUSE }

The mouse that runs ahead across the cogs of its room and shows the way (scGabombaStatueMouseShowsTheWay).

EnumeratorValueDescription
ACTOR_MOUSE39

Definition at line 64 of file gabomba_statue.c.

anonymous enum

enum { ACTOR_KRADEN, ACTOR_AKAFUBU }

The eyes room's Kraden, who works out the channel with the party, and Akafubu, who comes up into the statue once the ceremony has worked (scGabombaStatueSeeHowItWorks, scGabombaStatueSawEnergyFlow).

EnumeratorValueDescription
ACTOR_KRADEN23
ACTOR_AKAFUBU24

Definition at line 72 of file gabomba_statue.c.

anonymous enum

enum { ACTOR_CORRIDORS_LADDER_TOP_BLOCK }

Each room's placed actors. A row of cogs that share one sprite is named by the first of them: turning its animation turns them all. A Lashed rope runs between two posts, its second post riding a cog's tooth. A ladder-top block is a black square (SPRITE_UNSEEN_BLOCK) at the top of a ladder up to the room above, held 36 pixels up in SPRITE_COLOR_HIDDEN, so that nothing of it shows (scGabombaStatueHideActor).

Drawn or hidden, the ladder-top blocks change nothing on screen: SPRITE_COLOR_HIDDEN draws every pixel of them transparent, and the display has no sprite window they could cut.

EnumeratorValueDescription
ACTOR_CORRIDORS_LADDER_TOP_BLOCK8

Definition at line 88 of file gabomba_statue.c.

anonymous enum

enum { ACTOR_FIRST_ROPE_POST_A, ACTOR_FIRST_ROPE_POST_B, ACTOR_SECOND_ROPE_POST_A, ACTOR_SECOND_ROPE_POST_B, … }

The lower cogs room.

EnumeratorValueDescription
ACTOR_FIRST_ROPE_POST_A8
ACTOR_FIRST_ROPE_POST_B
ACTOR_SECOND_ROPE_POST_A
ACTOR_SECOND_ROPE_POST_B
ACTOR_FIRST_STAKE
ACTOR_SECOND_STAKE
ACTOR_LOWER_COGS_GREEN_COGS
ACTOR_LOWER_COGS_BLUE_COGS21
ACTOR_FLASHING_COG26The blue cog that flashes until both stakes are Pounded.
ACTOR_LOWER_COGS_PINION_A
ACTOR_LOWER_COGS_PINION_B
ACTOR_LOWER_COGS_WEST_LADDER_TOP_BLOCK
ACTOR_LOWER_COGS_EAST_LADDER_TOP_BLOCK

Definition at line 94 of file gabomba_statue.c.

anonymous enum

enum { ACTOR_STEEL_GREEN_COGS, ACTOR_STEEL_BLUE_COGS, ACTOR_STEEL_RED_COGS, ACTOR_STEEL_BLUE_PILLARS, … }

Steel's room.

EnumeratorValueDescription
ACTOR_STEEL_GREEN_COGS8
ACTOR_STEEL_BLUE_COGS15
ACTOR_STEEL_RED_COGS20
ACTOR_STEEL_BLUE_PILLARS25
ACTOR_STEEL_PINK_DRUMS29
ACTOR_STEEL_ROPE_POST_A31
ACTOR_STEEL_ROPE_POST_B

Definition at line 113 of file gabomba_statue.c.

anonymous enum

enum { ACTOR_MOUSE_GREEN_COGS, ACTOR_MOUSE_BLUE_COGS, ACTOR_MOUSE_RED_COGS, ACTOR_MOUSE_BLUE_PILLAR_A, … }

The mouse's room.

EnumeratorValueDescription
ACTOR_MOUSE_GREEN_COGS8
ACTOR_MOUSE_BLUE_COGS21
ACTOR_MOUSE_RED_COGS29
ACTOR_MOUSE_BLUE_PILLAR_A34
ACTOR_MOUSE_BLUE_PILLAR_B
ACTOR_MOUSE_PINK_DRUM_A37
ACTOR_MOUSE_PINK_DRUM_B

Definition at line 125 of file gabomba_statue.c.

anonymous enum

enum { ACTOR_UPPER_COGS_ROPE_POST_A, ACTOR_UPPER_COGS_ROPE_POST_B, ACTOR_UPPER_COGS_RED_COGS, ACTOR_UPPER_COGS_PINION_A, … }

The upper cogs room.

EnumeratorValueDescription
ACTOR_UPPER_COGS_ROPE_POST_A8
ACTOR_UPPER_COGS_ROPE_POST_B
ACTOR_UPPER_COGS_RED_COGS
ACTOR_UPPER_COGS_PINION_A12
ACTOR_UPPER_COGS_PINION_B

Definition at line 137 of file gabomba_statue.c.

anonymous enum

enum { ACTOR_MIDDLE_STATUE, ACTOR_BLUE_ORB_STATUE, ACTOR_RED_ORB_STATUE, ACTOR_CHARGE_A, … }

The eyes room: the statue in the middle, where the charges must arrive, the statues holding the blue and the red orb whose charges run along the channel, the stake whose Pound raises the blocks, and the seven loose blocks of the channel ("It looks like the energy charge is supposed to run over these blocks.").

EnumeratorValueDescription
ACTOR_MIDDLE_STATUE8
ACTOR_BLUE_ORB_STATUE
ACTOR_RED_ORB_STATUE
ACTOR_CHARGE_Athe blue orb's two charges, then the red orb's
ACTOR_CHARGE_B
ACTOR_CHARGE_C
ACTOR_CHARGE_D
ACTOR_EYES_STAKE
ACTOR_BLOCK_A
ACTOR_BLOCK_B
ACTOR_BLOCK_C
ACTOR_BLOCK_D
ACTOR_BLOCK_E
ACTOR_BLOCK_F
ACTOR_BLOCK_G

Definition at line 151 of file gabomba_statue.c.

anonymous enum

enum { ANIM_MOSSY_STAKE_STANDING, ANIM_MOSSY_STAKE_SUNK }

The eyes room's stake as fdActorSetMetatileOpen draws a mossy stone stake: standing, and sunk by Pound.

EnumeratorValueDescription
ANIM_MOSSY_STAKE_STANDING5
ANIM_MOSSY_STAKE_SUNK

Definition at line 172 of file gabomba_statue.c.

anonymous enum

enum { ANIM_MOUSE_SITTING_UP }

The mouse's animation as it shows the way: sitting, it rears up on its hind legs now and then and sits again (mouse.tsv, pictures 0, 3, 6 and 9).

EnumeratorValueDescription
ANIM_MOUSE_SITTING_UP1

Definition at line 180 of file gabomba_statue.c.

anonymous enum

enum { ANIM_HAND_POINTING }

The pointing hand's animation over the break in the channel: the hand bobs down and back, pointing (pointing_hand.tsv, pictures 0 to 2 over 32 ticks).

EnumeratorValueDescription
ANIM_HAND_POINTING1

Definition at line 187 of file gabomba_statue.c.

anonymous enum

enum { ANIM_CHARGE_CIRCLING, ANIM_CHARGE_BURSTING, ANIM_CHARGE_RUNNING }

The charges' animations, by where the scene picks them: circling their orb statue (and as one shrinks away), bursting off the channel (and as one is taken off the map), and running along it.

EnumeratorValueDescription
ANIM_CHARGE_CIRCLING
ANIM_CHARGE_BURSTING
ANIM_CHARGE_RUNNING

Definition at line 195 of file gabomba_statue.c.

anonymous enum

enum { ACTOR_PINION_A, ACTOR_PINION_B, ACTOR_PINION_C, ACTOR_PINION_D, … }

The entrance hall.

EnumeratorValueDescription
ACTOR_PINION_A8
ACTOR_PINION_B
ACTOR_PINION_C
ACTOR_PINION_D
ACTOR_PINION_E

Definition at line 203 of file gabomba_statue.c.

GABOMBA_STATUE_METATILE_BEHAVIOR

enum GABOMBA_STATUE_METATILE_BEHAVIOR

The metatile behaviors of the rooms' cue tables. A hole is the top of a ladder down to the room below, and its number is that of the exit it leaves by. Between two pinions the leader is pulled through to the other side, the metatiles taking the second behavior while the cogs turn back (scGabombaStatueTurnCogs copies them in). The metatiles under a cog (scGabombaStatueDrawCogMetatiles) carry the leader with it, and the metatiles past a cog's ends hop him across to the next.

EnumeratorValueDescription
METATILE_BEHAVIOR_FIRST_LADDER_DOWN1
METATILE_BEHAVIOR_SECOND_LADDER_DOWN
METATILE_BEHAVIOR_THIRD_LADDER_DOWN
METATILE_BEHAVIOR_PINION_GAP10
METATILE_BEHAVIOR_PINION_GAP_TURNED_BACK
METATILE_BEHAVIOR_MOUSE77Where the mouse pops up.
METATILE_BEHAVIOR_GREEN_COG80
METATILE_BEHAVIOR_BLUE_COG
METATILE_BEHAVIOR_RED_COG
METATILE_BEHAVIOR_ROLLERA roller: a blue pillar or a pink
METATILE_BEHAVIOR_COG_ENDdrum.
METATILE_BEHAVIOR_PINK_DRUM_SOUTH_ENDThe metatile past a pink drum's south end, which no cue reads.

Definition at line 219 of file gabomba_statue.c.

GABOMBA_STATUE_ARROW_METATILE_BEHAVIOR

enum GABOMBA_STATUE_ARROW_METATILE_BEHAVIOR

The eyes room's: the panel with an arrow, and the metatiles around it that raise it again once the leader steps off.

EnumeratorValueDescription
METATILE_BEHAVIOR_AROUND_LEFT_ARROW80
METATILE_BEHAVIOR_LEFT_ARROW
METATILE_BEHAVIOR_AROUND_RIGHT_ARROW
METATILE_BEHAVIOR_RIGHT_ARROW

Definition at line 240 of file gabomba_statue.c.

anonymous enum

enum { RAISED_COGS_TURN_BACK, RAISED_STAKE_STANDS_UP, RAISED_OFFERING_HEARD }

The cues this overlay raises: both stakes Pounded, the eyes room's stake Pounded, and the offering's clock run out.

EnumeratorValueDescription
RAISED_COGS_TURN_BACK200
RAISED_STAKE_STANDS_UP200
RAISED_OFFERING_HEARD201

Definition at line 250 of file gabomba_statue.c.

anonymous enum

enum { ACTOR_STEEL }

Steel, the Venus Djinni waiting in Steel's room.

EnumeratorValueDescription
ACTOR_STEEL33

Definition at line 276 of file gabomba_statue.c.

anonymous enum

enum { FIRST_ROPE, SECOND_ROPE }

A room's ropes, by the index the rope functions take; the lower cogs room has two.

EnumeratorValueDescription
FIRST_ROPE
SECOND_ROPE

Definition at line 363 of file gabomba_statue.c.

anonymous enum

enum { COG_TOOTH_STEPS }

The steps of a cog tooth's turn: its phase, kept in the tooth's sceneCount, counts them, two degrees each.

EnumeratorValueDescription
COG_TOOTH_STEPS180

Definition at line 371 of file gabomba_statue.c.

anonymous enum

enum { CHANNEL_COLUMNS, CHANNEL_ROWS, CHANNEL_METATILES, CHANNEL_ORIGIN_COLUMN, … }

The eyes room's channel: a grid of blocks, eleven columns by eight rows, from the map's metatile (19, 11). The statue in the middle, where the charges must arrive, stands on its metatile (5, 3), and the two orb statues on (1, 7) and (9, 7).

EnumeratorValueDescription
CHANNEL_COLUMNS11
CHANNEL_ROWS8
CHANNEL_METATILESCHANNEL_COLUMNS * CHANNEL_ROWS
CHANNEL_ORIGIN_COLUMN19
CHANNEL_ORIGIN_ROW11
CHANNEL_MIDDLE_STATUE_COLUMN5
CHANNEL_MIDDLE_STATUE_ROW3
CHANNEL_BLUE_STATUE_COLUMN1
CHANNEL_RED_STATUE_COLUMN9
CHANNEL_STATUES_ROW7

Definition at line 380 of file gabomba_statue.c.

CHANNEL_HEADING

enum CHANNEL_HEADING

The way a charge runs along the channel, and the way a path leaves a metatile.

EnumeratorValueDescription
HEADING_EAST
HEADING_SOUTH
HEADING_WEST
HEADING_NORTH

Definition at line 396 of file gabomba_statue.c.

CHANNEL_PIECE

enum CHANNEL_PIECE

The pieces of the channel, by the sides of the metatile they join, which are also the rows of the metatile tiles the map keeps for them.

EnumeratorValueDescription
PIECE_NONE
PIECE_NORTH_SOUTH
PIECE_EAST_WEST
PIECE_CROSSING
PIECE_EAST_SOUTH
PIECE_SOUTH_WEST
PIECE_WEST_NORTH
PIECE_NORTH_EAST
PIECE_EAST_SOUTH_AND_WEST_NORTHtwo curves
PIECE_SOUTH_WEST_AND_NORTH_EASTtwo curves
PIECE_STOPno channel: statues and blocks with no piece stop a charge
PIECE_SOCKETthe hole a raised block leaves
PIECE_KINDS

Definition at line 414 of file gabomba_statue.c.

anonymous enum

enum { PATH_BIT_BLUE_WEST, PATH_BIT_RED_EAST, PATH_BIT_BLUE_EAST, PATH_BIT_RED_WEST }

The four charges' paths, by the bit of PUZZLE_METATILE.state that marks a metatile one runs through (scGabombaStatueLayPath takes the bit's number). Each orb statue sends one charge west and one east.

EnumeratorValueDescription
PATH_BIT_BLUE_WEST
PATH_BIT_RED_EAST
PATH_BIT_BLUE_EAST
PATH_BIT_RED_WEST

Definition at line 435 of file gabomba_statue.c.

CHANNEL_PATH

enum CHANNEL_PATH

The bits of PUZZLE_METATILE.state: which of the four charges' paths run through the metatile.

EnumeratorValueDescription
PATH_BLUE_WEST1 << PATH_BIT_BLUE_WEST
PATH_RED_EAST1 << PATH_BIT_RED_EAST
PATH_BLUE_EAST1 << PATH_BIT_BLUE_EAST
PATH_RED_WEST1 << PATH_BIT_RED_WEST
PATH_BLUEPATH_BLUE_WEST | PATH_BLUE_EAST
PATH_REDPATH_RED_WEST | PATH_RED_EAST

Definition at line 445 of file gabomba_statue.c.

anonymous enum

enum { BLOCK_NONE, BLOCK_IN_PLACE, BLOCK_RAISED }

What stands on a metatile of the channel (PUZZLE_METATILE.occupied). The map keeps each piece's metatile tiles in a row of their own (CHANNEL_PIECE), a column for each of these: the column fdMapGridCopyMetatiles copies from is what stands on the metatile.

EnumeratorValueDescription
BLOCK_NONEits piece is part of the floor
BLOCK_IN_PLACEa loose block lies in it, to be turned or raised
BLOCK_RAISEDits block floats over the room, the socket open

Definition at line 459 of file gabomba_statue.c.

anonymous enum

enum { CHARGE_STOPPED, CHARGE_RUNNING, CHARGE_LEAVING, CHARGE_ARRIVED }

ACTOR.chargeState. While a charge circles its orb statue before the run, the same byte holds its actor id (scGabombaStatueSendCharge); the end of its burst or shrink script sets CHARGE_STOPPED.

EnumeratorValueDescription
CHARGE_STOPPED0
CHARGE_RUNNING1
CHARGE_LEAVING2bursting or shrinking away off the channel
CHARGE_ARRIVED7at the statue in the middle

Definition at line 469 of file gabomba_statue.c.

anonymous enum

enum { CHANNEL_BLOCKS }

The blocks of the channel, one for each of the room's block actors.

EnumeratorValueDescription
CHANNEL_BLOCKS7

Definition at line 478 of file gabomba_statue.c.

anonymous enum

enum { POUND_LAND_TICK }

A Pound handler runs each tick of the fist's fall with (landed, tick): landed is 1 on the tick the fist lands, POUND_LAND_TICK, and what it strikes sinks a step on each tick before.

EnumeratorValueDescription
POUND_LAND_TICK8

Definition at line 486 of file gabomba_statue.c.

anonymous enum

enum { BLOCK_ANIM_TURN_CLOCKWISE, BLOCK_ANIM_TURN_COUNTERCLOCKWISE }

The channel blocks' animations, which all the blocks share with the first: the green crystal spins one way as the right arrow panel turns them clockwise, and back as the left turns them counterclockwise.

EnumeratorValueDescription
BLOCK_ANIM_TURN_CLOCKWISE2
BLOCK_ANIM_TURN_COUNTERCLOCKWISE3

Definition at line 494 of file gabomba_statue.c.

anonymous enum

enum { TURN_COUNTERCLOCKWISE, TURN_CLOCKWISE }

The two ways a block turns (scGabombaStatueTurnBlockPiece).

EnumeratorValueDescription
TURN_COUNTERCLOCKWISE
TURN_CLOCKWISE

Definition at line 501 of file gabomba_statue.c.

anonymous enum

enum { CIRCLE_STEP }

How far a charge circles its orb statue each tick, in 256ths of a turn.

EnumeratorValueDescription
CIRCLE_STEP16

Definition at line 589 of file gabomba_statue.c.

anonymous enum

enum { ROPE_STOP_TICKS }

The ticks the cog's tooth takes to settle as the rope pulls taut.

EnumeratorValueDescription
ROPE_STOP_TICKS25

Definition at line 647 of file gabomba_statue.c.

CHARGE_ARRIVAL

enum CHARGE_ARRIVAL

How the charges reached the statue in the middle (scGabombaStatueRunCharges), which decides how the ceremony outside goes on.

EnumeratorValueDescription
CHARGE_ARRIVAL_TOGETHER0a blue and a red charge at the same moment
CHARGE_ARRIVAL_BLUE_FIRST1a blue one alone, or before the red
CHARGE_ARRIVAL_RED_FIRST2a red one alone, or before the blue
CHARGE_ARRIVAL_NONE3

Definition at line 1150 of file gabomba_statue.c.

anonymous enum

enum { COG_SHAPE_GREEN_COG, COG_SHAPE_TOP, COG_SHAPE_NORTHWEST, COG_SHAPE_NORTHEAST, … }

The map shapes of the cogs' metatiles, from COG_SHAPE_FIRST: the scene writes GabombaStatueCogShapes over the map's own entries there.

EnumeratorValueDescription
COG_SHAPE_GREEN_COG116The green cog's own metatile.
COG_SHAPE_TOPThe flat top every other cog stands on.
COG_SHAPE_NORTHWESTA blue cog's four corners.
COG_SHAPE_NORTHEAST
COG_SHAPE_SOUTHWEST
COG_SHAPE_SOUTHEAST
COG_SHAPE_WESTA red cog's sides.
COG_SHAPE_EAST
COG_SHAPE_NORTHA roller's sides.
COG_SHAPE_SOUTH
COG_SHAPE_PINK_DRUM_SOUTH_END
COG_SHAPE_ENDThe metatiles beyond a red cog's or a roller's ends.
COG_SHAPE_FIRSTCOG_SHAPE_GREEN_COG
COG_SHAPE_COUNTCOG_SHAPE_END + 1 - COG_SHAPE_FIRST

Definition at line 1802 of file gabomba_statue.c.

anonymous enum

enum { BLOCK_PICTURE_BYTES }

A raised block's picture: 16 pixels square in 256 colours, one for each piece in CHANNEL_PIECE's order.

EnumeratorValueDescription
BLOCK_PICTURE_BYTES16 * 16

Definition at line 2961 of file gabomba_statue.c.

anonymous enum

enum { EAST_PATH_METATILES, WEST_PATH_METATILES, PATH_TO_CROSSING_METATILES }

The metatiles of the charges' paths to the statue in the middle: the two sent east run EAST_PATH_METATILES and the two sent west WEST_PATH_METATILES, so that a blue and a red charge arrive together. The paths from the statues' inner sides meet after PATH_TO_CROSSING_METATILES on the crossing's own metatile.

EnumeratorValueDescription
EAST_PATH_METATILES17
WEST_PATH_METATILES19
PATH_TO_CROSSING_METATILES4

Definition at line 3069 of file gabomba_statue.c.

anonymous enum

enum { PATH_ATTEMPTS_MAX, PATH_TRIES_PER_STEP }

How long scGabombaStatueLayPath searches: the steps it takes in all before it gives up, and the random headings it tries from a metatile before backing up.

EnumeratorValueDescription
PATH_ATTEMPTS_MAX1280
PATH_TRIES_PER_STEP63

Definition at line 3385 of file gabomba_statue.c.

anonymous enum

enum { BLOCK_TURN_TICKS }

The ticks the raised blocks take to turn a quarter turn.

EnumeratorValueDescription
BLOCK_TURN_TICKS20

Definition at line 3744 of file gabomba_statue.c.

anonymous enum

enum { RIGHT_ARROW_PANEL_COLUMN, LEFT_ARROW_PANEL_COLUMN, ARROW_PANEL_RAISED_ROW, ARROW_PANEL_PRESSED_ROW }

The arrow panels' metatiles, which the map keeps at metatiles (0, 12) to (1, 13): a column for each panel, a row for each of its two states.

EnumeratorValueDescription
RIGHT_ARROW_PANEL_COLUMN0
LEFT_ARROW_PANEL_COLUMN1
ARROW_PANEL_RAISED_ROW12
ARROW_PANEL_PRESSED_ROW13

Definition at line 3751 of file gabomba_statue.c.

anonymous enum

enum { RAISED_BLOCK_DEPTH }

A raised block's slot in the depth list past its position's, as fdRenderApplyProjectedPlacement queues an actor's sprite 62 past its own and the actor's shadow 60.

EnumeratorValueDescription
RAISED_BLOCK_DEPTH58

Definition at line 3863 of file gabomba_statue.c.

anonymous enum

enum { CHARGE_STEPS_PER_METATILE, CHARGE_METATILES_MAX }

The ticks a charge takes to cross a metatile of the channel, and the metatiles a run of the charges crosses at most.

EnumeratorValueDescription
CHARGE_STEPS_PER_METATILE16
CHARGE_METATILES_MAX128

Definition at line 3958 of file gabomba_statue.c.

anonymous enum

enum { CLOCK_PICTURE_BYTES, CLOCK_SHEET_PICTURES, CLOCK_SHOWN_PICTURES }

The clock's digit sprite sheet: the pictures of 0 to 9 and the colon, 8 by 16 pixels each, then the five shown.

EnumeratorValueDescription
CLOCK_PICTURE_BYTES64
CLOCK_SHEET_PICTURES11
CLOCK_SHOWN_PICTURES5

Definition at line 4319 of file gabomba_statue.c.

Functions in detail

scGabombaStatueFightSteel

void scGabombaStatueFightSteel(void)

Talking to Steel, beside whom Felix lands after riding a pink drum off the mouse's room, starts its battle.

References fdRequestDjinnBattle().

Referenced by GabombaStatueSteelCues.

Definition at line 283 of file gabomba_statue.c.

scGabombaStatueLookAround

Sint32 scGabombaStatueLookAround(ACTOR *actor)

A member of the party looking about: it turns between its two headings every 10 to 49 ticks.

References Sint32.

Referenced by GabombaStatueLookNorthAndEastScript and GabombaStatueLookNorthAndWestScript.

Definition at line 290 of file gabomba_statue.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SceneEntrances.

Definition at line 313 of file gabomba_statue.c.

scGetExitRegions

const SCENE_REGION *scGetExitRegions(void)

References GabombaStatueCorridorsExitRegions, GabombaStatueEntranceExitRegions, GabombaStatueLowerCogsExitRegions, GabombaStatueMouseExitRegions, GabombaStatueSteelExitRegions, GabombaStatueUpperCogsExitRegions and MainRoutineStateWork.

Definition at line 325 of file gabomba_statue.c.

scGetExits

const Uint32 *scGetExits(void)

References SceneExits.

Definition at line 344 of file gabomba_statue.c.

scGabombaStatueFlashCog

Sint32 scGabombaStatueFlashCog(ACTOR *actor)

The flashing cog's update: its colours swap between two orders every ten ticks.

References Sint32 and TickCount.

Referenced by GabombaStatueFlashCogScript.

Definition at line 351 of file gabomba_statue.c.

scGabombaStatueGetToothPos

void scGabombaStatueGetToothPos(ACTOR *actor, FIXED *x, FIXED *z)

Where the cog's tooth an actor rides is now: the rope's target hook, so that a rope tied to it follows the turning cog.

References GabombaStatueCogDirection and Sint32.

Referenced by scGabombaStatueTurnTooth().

Definition at line 513 of file gabomba_statue.c.

scGabombaStatueTurnTooth

Sint32 scGabombaStatueTurnTooth(ACTOR *actor)

A cog tooth's update: it turns about the cog's centre by the cogs' direction.

References GabombaStatueCogDirection, scGabombaStatueGetToothPos() and Sint32.

Referenced by GabombaStatueTurnToothScript.

Definition at line 528 of file gabomba_statue.c.

scGabombaStatueCircleOwner

Sint32 scGabombaStatueCircleOwner(ACTOR *actor)

Each tick, keeps an actor circling the actor it watches.

References Sint32.

Referenced by GabombaStatueChargeScript.

Definition at line 595 of file gabomba_statue.c.

scGetActorPlacements

const Uint8 *scGetActorPlacements(void)

References GabombaStatueCorridorsActorPlacements, GabombaStatueEntranceActorPlacements, GabombaStatueEyesActorPlacements, GabombaStatueLowerCogsActorPlacements, GabombaStatueMouseActorPlacements, GabombaStatuePlacements, GabombaStatueSteelActorPlacements, GabombaStatueUpperCogsActorPlacements and MainRoutineStateWork.

Definition at line 622 of file gabomba_statue.c.

scGabombaStatueLashRope

void scGabombaStatueLashRope(void)

Lash on the rope by the cogs in the north-west of the lower cogs room, between the posts at metatiles (18, 5) and (20, 5), ties it to a tooth of the blue cog. As it pulls taut the tooth rocks to a halt, and every cog in the room stops, so Felix can cross them to the ladder on the east side.

References fdActorGet(), fdRopeGetState(), fdScriptSetFlag(), GabombaStatueCogDirection, GabombaStatueRopeStopSteps, scGabombaStatueTurnCogs(), Sint32 and sySynch().

Referenced by GabombaStatueLowerCogsCues.

Definition at line 660 of file gabomba_statue.c.

scGabombaStatueFindCogUnder

ACTOR *scGabombaStatueFindCogUnder(ACTOR *origin, Sint32 id)

The cog of sprite id within 24 pixels of origin, or null.

References fdActorGet() and Sint32.

Referenced by scGabombaStatueRideBlueCog(), scGabombaStatueRideRoller(), scGabombaStatueRideSlidingCog() and scGabombaStatueTurnWithCog().

Definition at line 681 of file gabomba_statue.c.

scGabombaStatueFindCogAhead

ACTOR *scGabombaStatueFindCogAhead(ACTOR *origin, Sint32 id)

As scGabombaStatueFindCogUnder, but around the point 16 pixels ahead of origin in its facing.

References fdActorGet() and Sint32.

Referenced by scGabombaStatueHopAcrossEastOrWest() and scGabombaStatueHopAcrossNorthOrSouth().

Definition at line 703 of file gabomba_statue.c.

scGabombaStatueHopOffCog

void scGabombaStatueHopOffCog(ACTOR *actor, Sint32 dx, Sint32 dz, Sint32 velocity)

The leader hops off a cog by dx, dz.

References fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdScriptPlaySound(), scFieldActorSetMoveTargetFX(), scFieldActorWaitForMove(), Sint32, syImportLeaderStopMoving() and sySynch().

Referenced by scGabombaStatueHopAcrossEastOrWest(), scGabombaStatueHopAcrossNorthOrSouth(), scGabombaStatueRideRoller() and scGabombaStatueRideSlidingCog().

Definition at line 728 of file gabomba_statue.c.

scGabombaStatueTurnWithCog

void scGabombaStatueTurnWithCog(void)

Standing on a green cog turns the leader with it.

References fdActorGet(), GabombaStatueCogDirection, scFieldPartyGetLeaderActor(), scGabombaStatueFindCogUnder() and Sint32.

Referenced by GabombaStatueMouseCues, GabombaStatueSteelCues and GabombaStatueUpperCogsCues.

Definition at line 757 of file gabomba_statue.c.

scGabombaStatueRideBlueCog

void scGabombaStatueRideBlueCog(void)

Standing on a blue cog carries the leader round with it, unless a wall stops him.

References fdActorGetById(), fdMapGridCheckCollision(), fdPartyGetLeaderActor(), GabombaStatueCogDirection, scGabombaStatueFindCogUnder(), Sint32, syCos() and sySin().

Referenced by GabombaStatueMouseCues, GabombaStatueSteelCues and GabombaStatueUpperCogsCues.

Definition at line 781 of file gabomba_statue.c.

scGabombaStatueRideSlidingCog

void scGabombaStatueRideSlidingCog(void)

Standing on a red cog carries the leader east or west as it slides, kept on its middle; 20 pixels from its centre he hops off the end.

References fdActorGet(), GabombaStatueCogDirection, scFieldPartyGetLeaderActor(), scGabombaStatueFindCogUnder(), scGabombaStatueHopOffCog() and Sint32.

Referenced by GabombaStatueMouseCues, GabombaStatueSteelCues and GabombaStatueUpperCogsCues.

Definition at line 850 of file gabomba_statue.c.

scGabombaStatueEndRide

void scGabombaStatueEndRide(ACTOR *actor)

The ride on a pink drum of the mouse's room ends at its south end: the leader drops off it to the room below.

References fdActorSetAnimation(), fdActorSetAttachedEffect(), fdActorSetSpriteFlags(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptStart(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scFieldScriptWait() and sySynch().

Referenced by scGabombaStatueRideRoller().

Definition at line 897 of file gabomba_statue.c.

scGabombaStatueRideRoller

void scGabombaStatueRideRoller(void)

Standing on a roller carries the leader north or south as it rolls, a blue pillar one way and a pink drum the other, kept on its middle; 20 pixels from its centre he hops off the end. A drum of the mouse's room carries him off its south end and down to Steel's room.

References fdActorGet(), GabombaStatueCogDirection, MainRoutineStateWork, scFieldPartyGetLeaderActor(), scFieldScriptSetExitRequest(), scGabombaStatueEndRide(), scGabombaStatueFindCogUnder(), scGabombaStatueHopOffCog() and Sint32.

Referenced by GabombaStatueMouseCues, GabombaStatueSteelCues and GabombaStatueUpperCogsCues.

Definition at line 939 of file gabomba_statue.c.

scGabombaStatueHopAcrossEastOrWest

void scGabombaStatueHopAcrossEastOrWest(void)

Walking east or west off a sliding cog hops the leader to the next.

References fdActorGet(), GabombaStatueCogDirection, scFieldPartyGetLeaderActor(), scGabombaStatueFindCogAhead(), scGabombaStatueHopOffCog() and Sint32.

Referenced by GabombaStatueMouseCues, GabombaStatueSteelCues and GabombaStatueUpperCogsCues.

Definition at line 1018 of file gabomba_statue.c.

scGabombaStatueHopAcrossNorthOrSouth

void scGabombaStatueHopAcrossNorthOrSouth(void)

Walking north or south off a roller hops the leader to the next.

References fdActorGet(), GabombaStatueCogDirection, scFieldPartyGetLeaderActor(), scGabombaStatueFindCogAhead(), scGabombaStatueHopOffCog() and Sint32.

Referenced by GabombaStatueMouseCues, GabombaStatueSteelCues and GabombaStatueUpperCogsCues.

Definition at line 1043 of file gabomba_statue.c.

scGabombaStatueMouseShowsTheWay

void scGabombaStatueMouseShowsTheWay(ACTOR *actor)

When Felix walks to the far west of the mouse's room, metatile (14, 10), a little mouse pops up, squeaks, and hops from cog to cog, showing the way across. It does so once.

References fdActorFaceActor(), fdActorFaceDirection(), fdActorGet(), fdActorSetAnimation(), fdActorShowEmote(), fdActorWalkToAndWait(), fdScriptEnd(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), MainRoutineStateWork, scFieldActorWatchAndSetScript(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), scScriptCameraFollowActor() and Sint32.

Referenced by GabombaStatueMouseCues.

Definition at line 1071 of file gabomba_statue.c.

scGabombaStatueSendCharge

void scGabombaStatueSendCharge(Sint32 id, Sint32 colorMode, Sint32 statueId, Sint32 angle)

Sets charge id circling the orb statue statueId from the angle given, tinted colorMode.

References fdActorGet(), fdActorSelectAnimation(), fdActorSetSpriteColorMode(), fdActorSetSpriteFlags(), fdActorStartScript(), GabombaStatueChargeScript and Sint32.

Referenced by scGabombaStatueReleaseCharges().

Definition at lines 1143 and 2114 of file gabomba_statue.c.

scGabombaStatueResetCharge

void scGabombaStatueResetCharge(Sint32 id)

Takes charge id off the map, stopped.

References fdActorSetAnimation(), scFieldActorStop() and Sint32.

Referenced by scGabombaStatueReleaseCharges().

Definition at line 1159 of file gabomba_statue.c.

scGabombaStatueReleaseCharges

void scGabombaStatueReleaseCharges(void)

Sends the four charges circling out of the orb statues, the blue statue's green-tinted and the red's red-tinted.

References scGabombaStatueResetCharge() and scGabombaStatueSendCharge().

Referenced by scGabombaStatueHearTheOffering() and scGabombaStatueWatchTheChargesStick().

Definition at line 1168 of file gabomba_statue.c.

scGabombaStatueHearTheOffering

void scGabombaStatueHearTheOffering(void)

The offering's clock has run out: Akafubu offers the jewel below ("O Great Gabomba! Please accept this, our humble gift!"), the orb statues send their charges along the channel, and how they reach the statue in the middle decides how the ceremony outside goes.

References fdActorGet(), fdActorSetSpriteFlags(), fdActorTableSnapshot(), fdCameraWaitForArrival(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeInterpolate(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptShowMessage(), fdScriptStart(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, result, scFieldActorSetSpriteColor(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest(), scFieldScriptSetMessageId(), scFieldScriptWait(), scGabombaStatueReleaseCharges(), scGabombaStatueRunCharges(), scGabombaStatueStopClock(), Sint32 and sySynch().

Referenced by GabombaStatueEyesCues.

Definition at line 1194 of file gabomba_statue.c.

scGetCues

const Uint8 *scGetCues(void)

References GabombaStatueCorridorsCues, GabombaStatueCues, GabombaStatueEntranceCues, GabombaStatueEyesCues, GabombaStatueLowerCogsCues, GabombaStatueMouseCues, GabombaStatueSteelCues, GabombaStatueUpperCogsCues and MainRoutineStateWork.

Definition at line 1271 of file gabomba_statue.c.

scGabombaStatueClimbDownLadder

void scGabombaStatueClimbDownLadder(Sint32 x, Sint32 z)

Felix walks to the top of the ladder at x, z, turns his back and climbs down it, and the screen closes on him as he leaves for the room below by the ladder's exit.

References fdActorFaceDirection(), fdActorGet(), fdActorSetAnimation(), fdActorSetSpriteFlags(), fdActorWalkToAndWait(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptStart(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldActorWaitForMove(), scFieldActorWaitForScriptEndById(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest() and Sint32.

Referenced by scGabombaStatueClimbDownMouseEastLadder(), scGabombaStatueClimbDownSteelEastLadder(), scGabombaStatueClimbDownSteelNortheastLadder() and scGabombaStatueClimbDownSteelWestLadder().

Definition at line 1296 of file gabomba_statue.c.

scGabombaStatueClimbDownCorridorsLadder

DEFINE_GABOMBA_STATUE_STEP_WHEN_HELD( scGabombaStatueClimbDownCorridorsLadder, 11, 18, 20, 19, 12, 312, 180)

Felix climbs down the ladder in the north of the corridors room, where the Mimic and the Bone Armlet's chest are, at metatile (19, 11), back to the entrance hall below, when he walks into it from the west, the east or the south.

Referenced by GabombaStatueCorridorsCues.

Definition at line 1349 of file gabomba_statue.c.

scGabombaStatueClimbDownLowerCogsLadder

DEFINE_GABOMBA_STATUE_STEP_WHEN_HELD_FOUR( scGabombaStatueClimbDownLowerCogsLadder, 29, 11, 13, 12, 28, 30, 472, 196)

Felix climbs down the ladder in the north of the lower cogs room, at metatile (29, 12), back to the corridors room below, when he walks into it from any side.

Referenced by GabombaStatueLowerCogsCues.

Definition at line 1388 of file gabomba_statue.c.

scGabombaStatueClimbDownSteelNortheastLadder

void scGabombaStatueClimbDownSteelNortheastLadder(void)

Felix climbs down the ladder in the north-east of Steel's room, at metatile (33, 7), to the north-east of the lower cogs room below, when he walks into it from the west or the south.

References fdActorGet(), MainRoutineStateWork, PerWork, scGabombaStatueClimbDownLadder() and Sint32.

Referenced by GabombaStatueSteelCues.

Definition at line 1394 of file gabomba_statue.c.

scGabombaStatueClimbDownSteelWestLadder

void scGabombaStatueClimbDownSteelWestLadder(void)

Felix climbs down the ladder in the west of Steel's room, at metatile (6, 13), to the west of the lower cogs room below, when he walks into it from any side.

References fdActorGet(), MainRoutineStateWork, PerWork, scGabombaStatueClimbDownLadder() and Sint32.

Referenced by GabombaStatueSteelCues.

Definition at line 1415 of file gabomba_statue.c.

scGabombaStatueClimbDownSteelEastLadder

void scGabombaStatueClimbDownSteelEastLadder(void)

Felix climbs down the ladder in the east of Steel's room, at metatile (42, 13), to the east of the lower cogs room below, when he walks into it from the north, the west or the south.

References fdActorGet(), MainRoutineStateWork, PerWork, scGabombaStatueClimbDownLadder() and Sint32.

Referenced by GabombaStatueSteelCues.

Definition at line 1441 of file gabomba_statue.c.

scGabombaStatueClimbDownMouseNorthLadder

DEFINE_GABOMBA_STATUE_STEP_WHEN_HELD( scGabombaStatueClimbDownMouseNorthLadder, 7, 23, 25, 24, 8, 392, 112)

Felix climbs down the ladder in the north of the mouse's room, at metatile (24, 7), to Steel's room below, when he walks into it from the west, the east or the south.

Referenced by GabombaStatueMouseCues.

Definition at line 1473 of file gabomba_statue.c.

scGabombaStatueClimbDownMouseWestLadder

DEFINE_GABOMBA_STATUE_STEP_WHEN_HELD( scGabombaStatueClimbDownMouseWestLadder, 9, 5, 7, 6, 10, 104, 146)

Felix climbs down the ladder in the west of the mouse's room, at metatile (6, 9), to the west of Steel's room below, when he walks into it from the west, the east or the south.

Referenced by GabombaStatueMouseCues.

Definition at line 1479 of file gabomba_statue.c.

scGabombaStatueClimbDownMouseEastLadder

void scGabombaStatueClimbDownMouseEastLadder(void)

Felix climbs down the ladder in the east of the mouse's room, beside its east blue cog at metatile (42, 9), to the east of Steel's room below, when he walks into it from the east or the south.

References fdActorGet(), MainRoutineStateWork, PerWork, scGabombaStatueClimbDownLadder() and Sint32.

Referenced by GabombaStatueMouseCues.

Definition at line 1485 of file gabomba_statue.c.

scGabombaStatueClimbDownUpperCogsLadder

DEFINE_GABOMBA_STATUE_STEP_WHEN_HELD_FOUR( scGabombaStatueClimbDownUpperCogsLadder, 27, 17, 19, 18, 26, 28, 440, 288)

Felix climbs down the ladder in the middle of the upper cogs room, below the small idol's chamber, at metatile (27, 18), back to the mouse's room, when he walks into it from any side.

Referenced by GabombaStatueUpperCogsCues.

Definition at line 1501 of file gabomba_statue.c.

scGabombaStatueClimbDownEyesLadder

void scGabombaStatueClimbDownEyesLadder(void)

Felix climbs down the ladder in the north-east of the eyes room, at metatile (29, 9), back to the small idol's chamber below, when he walks into it from the west or the south.

References fdActorFaceDirection(), fdActorGet(), fdActorSetAnimation(), fdActorSetSpriteFlags(), fdActorWalkToAndWait(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptStart(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, PerWork, scFieldActorWaitForMove(), scFieldActorWaitForScriptEndById(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest() and Sint32.

Referenced by GabombaStatueEyesCues.

Definition at line 1507 of file gabomba_statue.c.

scGabombaStatuePinionsCarryLeaderNorth

DEFINE_GABOMBA_STATUE_WALK_LEADER_TO(scGabombaStatuePinionsCarryLeaderNorth, 152, 424)

Walking into the gap between the pinions in the south-west of the entrance hall, metatile (9, 28), Felix is pulled through them to the north.

Referenced by GabombaStatueEntranceCues.

Definition at line 1556 of file gabomba_statue.c.

scGabombaStatuePinionsThrowLeaderSouth

void scGabombaStatuePinionsThrowLeaderSouth(void)

Once the cogs turn the other way, the pinions in the south-west of the entrance hall throw Felix back out to the south when he walks into their gap, and he lands with a rattle, leaning back.

References fdActorGet(), fdActorMoveToAndWait(), fdActorSetAnimation(), fdScriptEnd(), fdScriptPlaySound(), fdScriptStart(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy() and scFieldScriptWait().

Referenced by GabombaStatueEntranceCues.

Definition at line 1563 of file gabomba_statue.c.

scGabombaStatueLowerCogsPinionsCarryLeaderSouth

DEFINE_GABOMBA_STATUE_WALK_LEADER_TO( scGabombaStatueLowerCogsPinionsCarryLeaderSouth, 376, 200)

Walking into the gap between the pinions in the north of the lower cogs room, metatile (23, 9), Felix is pulled through them to the south.

Referenced by GabombaStatueLowerCogsCues.

Definition at line 1585 of file gabomba_statue.c.

scGabombaStatueLowerCogsPinionsCarryLeaderNorth

DEFINE_GABOMBA_STATUE_WALK_LEADER_TO( scGabombaStatueLowerCogsPinionsCarryLeaderNorth, 376, 136)

Once the cogs turn the other way, the pinions in the south of the lower cogs room, metatile (24, 22), pull Felix through them to the north.

Referenced by GabombaStatueLowerCogsCues.

Definition at line 1590 of file gabomba_statue.c.

scGabombaStatueUpperCogsPinionsCarryLeaderSouth

DEFINE_GABOMBA_STATUE_WALK_LEADER_TO( scGabombaStatueUpperCogsPinionsCarryLeaderSouth, 440, 248)

Walking into the gap between the pinions in the upper cogs room, metatile (27, 12), Felix is pulled through them to the south.

Referenced by GabombaStatueUpperCogsCues.

Definition at line 1595 of file gabomba_statue.c.

scGabombaStatueUpperCogsPinionsCarryLeaderNorth

DEFINE_GABOMBA_STATUE_WALK_LEADER_TO( scGabombaStatueUpperCogsPinionsCarryLeaderNorth, 440, 184)

Once the cogs turn the other way, the pinions east of the first in the upper cogs room, metatile (35, 13), pull Felix through them to the north.

Referenced by GabombaStatueUpperCogsCues.

Definition at line 1600 of file gabomba_statue.c.

scGabombaStatueSetLadderTopBlocksDrawn

void scGabombaStatueSetLadderTopBlocksDrawn(Sint32 show)

Draws the room's ladder-top blocks, or hides them.

References MainRoutineStateWork, scActorsSetDrawn() and Sint32.

Referenced by scGabombaStatueDrawLadderTopBlocks() and scGabombaStatueHideLadderTopBlocks().

Definition at line 1604 of file gabomba_statue.c.

scGabombaStatueDrawLadderTopBlocks

void scGabombaStatueDrawLadderTopBlocks(void)

Unused: draws the ladder-top blocks.

References fdScriptSetFlag() and scGabombaStatueSetLadderTopBlocksDrawn().

Definition at line 1615 of file gabomba_statue.c.

scGabombaStatueHideLadderTopBlocks

void scGabombaStatueHideLadderTopBlocks(void)

Hides the ladder-top blocks.

References fdScriptClearFlag() and scGabombaStatueSetLadderTopBlocksDrawn().

Referenced by scGabombaStatueRestoreLadderTopBlocks().

Definition at line 1622 of file gabomba_statue.c.

scGabombaStatuePoundStake

void scGabombaStatuePoundStake(Sint32 landed, Sint32 tick)

Pound on one of the two stakes either side of the flashing cog in the south of its room, metatiles (20, 30) and (24, 30), drives it into the floor. Once both are down, the cogs turn the other way.

References fdPoundSinkTarget(), fdScriptGetFlag(), GabombaStatueStakes and Sint32.

Referenced by GabombaStatueLowerCogsCues.

Definition at line 1633 of file gabomba_statue.c.

scGabombaStatueCogsTurnBack

void scGabombaStatueCogsTurnBack(void)

When the second stake by the flashing cog is Pounded, the view pans to the cog between the two stakes, the cogs stop with a clank, the flashing cog bobs up and settles, and every cog starts turning the other way.

References fdActorGet(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), scGabombaStatueTurnCogs() and scScriptCameraGetActor().

Referenced by GabombaStatueLowerCogsCues.

Definition at line 1644 of file gabomba_statue.c.

scGabombaStatuePoundEyesStake

void scGabombaStatuePoundEyesStake(Sint32 landed)

Pound on the eyes room's stake raises the channel's blocks. It passes scGabombaStatueRaiseBlocks no tick, so how far the stake sinks before the fist lands is left to whatever that argument holds.

References scGabombaStatueRaiseBlocks() and Sint32.

Referenced by GabombaStatueEyesCues.

Definition at line 1672 of file gabomba_statue.c.

scGabombaStatueStakeStandsUp

void scGabombaStatueStakeStandsUp(void)

Once the blocks have risen, the Pounded stake stands up again to a rising chime.

References fdActorGet(), fdActorSelectAnimation(), fdScriptEnd(), fdScriptPlaySound(), fdScriptStart(), scFieldScriptEndLastingPsynergy() and scFieldScriptWait().

Referenced by GabombaStatueEyesCues.

Definition at line 1681 of file gabomba_statue.c.

scGabombaStatueCheckOfferingClock

void scGabombaStatueCheckOfferingClock(void)

Each tick: once the offering's clock has run out, the offering is made.

References scGabombaStatueGetClock().

Referenced by scGabombaStatueInitEyes().

Definition at line 1695 of file gabomba_statue.c.

scGabombaStatueHideActor

void scGabombaStatueHideActor(Sint32 id)

Hides actor id (SPRITE_COLOR_HIDDEN) and fixes it in place, sorted behind the others.

References fdActorDisableById(), fdActorGet(), scFieldActorSetSpriteColor(), scFieldActorSetSpritePriority() and Sint32.

Definition at line 1703 of file gabomba_statue.c.

scGabombaStatueRestoreLadderTopBlocks

void scGabombaStatueRestoreLadderTopBlocks(void)

Coming back to the same spot hides the ladder-top blocks again unless they were drawn when the party left; otherwise they are drawn.

References fdScriptGetFlag(), fdScriptSetFlag() and scGabombaStatueHideLadderTopBlocks().

Definition at line 1713 of file gabomba_statue.c.

scGabombaStatueHideCorridorsLadderTopBlock

DEFINE_GABOMBA_STATUE_HIDE_LADDER_TOP_BLOCKS( scGabombaStatueHideCorridorsLadderTopBlock, ACTOR_CORRIDORS_LADDER_TOP_BLOCK, 1)

The corridors room, as it is set up: its one ladder-top block.

Referenced by scGabombaStatueInitCorridors().

Definition at line 1744 of file gabomba_statue.c.

scGabombaStatueHideLowerCogsLadderTopBlocks

DEFINE_GABOMBA_STATUE_HIDE_LADDER_TOP_BLOCKS( scGabombaStatueHideLowerCogsLadderTopBlocks, ACTOR_LOWER_COGS_WEST_LADDER_TOP_BLOCK, 2)

The lower cogs room, as it is set up: its two ladder-top blocks.

Referenced by scGabombaStatueInitLowerCogs().

Definition at line 1750 of file gabomba_statue.c.

scGabombaStatuePauseCogsInMenus

void scGabombaStatuePauseCogsInMenus(void)

Each tick: while a menu or Psynergy is up, the cogs and the rope posts stand still.

References fdActorGet(), fdActorSetAnimationSpeed(), fdScriptGetFlag() and Sint32.

Referenced by scGabombaStatueDrawCogMetatiles().

Definition at line 1757 of file gabomba_statue.c.

scGabombaStatueDrawCogMetatiles

void scGabombaStatueDrawCogMetatiles(void)

Gives the metatiles under every cog of the room their shapes and the metatile behaviors that carry the leader with it, and fixes the cogs in place.

References fdActorGetById(), fdActorSetSpriteFlags(), GabombaStatueCogShapes, MapGridShapes, scGabombaStatuePauseCogsInMenus(), Sint32 and sySetTickEvent().

Referenced by scInit().

Definition at line 1842 of file gabomba_statue.c.

scGabombaStatueFadeByDepth

void scGabombaStatueFadeByDepth(void)

Blends the room's layers by how far south the camera is: from 232 pixels, a step of the blend's sixteen every 8 pixels.

References Sint32.

Referenced by scGabombaStatueInitEyes().

Definition at line 2011 of file gabomba_statue.c.

scGabombaStatueSetCogTurn

void scGabombaStatueSetCogTurn(Sint32 id, Sint32 direction, Sint32 ticks)

Sets the row of cogs led by id turning by direction, its current picture held for ticks more ticks: each room gives its rows 0 to 4, so that they do not all step on the same tick.

References fdActorGet(), fdActorSelectAnimation(), fdSpriteSetAnimationTimers(), GabombaStatueCogAnimations and Sint32.

Referenced by scGabombaStatueTurnCogs().

Definition at line 2026 of file gabomba_statue.c.

scGabombaStatueTurnCogs

void scGabombaStatueTurnCogs(Sint32 direction)

Sets the cogs' direction and turns every cog of the room that way.

References fdActorGet(), fdActorSetAnimation(), fdActorSetSpriteFlags(), fdMapGridCopyMetatileAttributes(), GabombaStatueCogDirection, MainRoutineStateWork, scGabombaStatueSetCogTurn() and Sint32.

Referenced by scGabombaStatueCogsTurnBack(), scGabombaStatueLashRope() and scInit().

Definition at line 2038 of file gabomba_statue.c.

scGabombaStatueLandFromFall

void scGabombaStatueLandFromFall(void)

Felix drops off the south end of a pink drum in the mouse's room above and falls into Steel's room, landing with a thump in a ring of dust; he sits a moment as the screen shakes, then stands. One of the two drums lands him beside Steel, who can then be talked to.

References fdActorGet(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdEffectAdvanceMotion(), fdMapGridCenterOnFollowedPoint(), fdScriptEnd(), fdScriptPlaySound(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldEffectSpawn(), scFieldMapGridWaitForShakeToSettle(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), Sint32, syCos(), sySin() and sySynch().

Referenced by scGabombaStatueInitSteel().

Definition at line 2148 of file gabomba_statue.c.

scGabombaStatueFocusEnergies

void scGabombaStatueFocusEnergies(void)

Coming up the hole into the eyes room as the ceremony starts below: Akafubu calls "Focus your energies!", and Kraden calls the party over to watch.

References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorGet(), fdActorPlaceOnActor(), fdActorRunScriptAndWait(), fdActorSetScript(), fdActorWalkTo(), fdCameraWaitForArrival(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeInterpolate(), fdScriptShowMessage(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), GabombaStatueJennaFocusScript, GabombaStatueKradenFocusScript, GabombaStatueKradenPointsScript, GabombaStatueLeaderFocusScript, GabombaStatuePiersFocusScript, MainRoutineStateWork, scFieldActorWaitForScriptEndById(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest(), scFieldScriptSetMessageId(), scFieldScriptWait(), scScriptCameraGetActor() and sySynch().

Referenced by scGabombaStatueInitEyes().

Definition at line 2217 of file gabomba_statue.c.

scGabombaStatueWatchTheChargesStick

void scGabombaStatueWatchTheChargesStick(void)

The party watches the orb statues' charges run along the broken channel, and is sent back down as the ceremony fails.

References fdActorFaceDirection(), fdActorGet(), fdActorSetPosAndFacing(), fdActorSetScript(), fdActorShowEmote(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeInterpolate(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), GabombaStatueLookNorthAndEastScript, GabombaStatueLookNorthAndWestScript, MainRoutineStateWork, scFieldActorSetSpriteColor(), scFieldActorShowEmote(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest(), scFieldScriptWait(), scGabombaStatueReleaseCharges(), scGabombaStatueRunCharges(), Sint32 and sySynch().

Referenced by scGabombaStatueInitEyes().

Definition at line 2288 of file gabomba_statue.c.

scGabombaStatueSeeHowItWorks

void scGabombaStatueSeeHowItWorks(void)

Kraden sees how the statue works, and the party agrees to mend the channel for Akafubu's ceremony.

References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorRunScriptAndWait(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetPosAndFacing(), fdActorSetScript(), fdActorTableSnapshot(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdScriptFinishScreenTransition(), fdScriptOpenMessage(), fdScriptSetFlag(), fdScriptShowMessage(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), GabombaStatueLookAtChannelScript, MainRoutineStateWork, scFieldActorShowEmote(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest(), scFieldScriptSetMessageId(), scFieldScriptWait(), scScriptCameraGetActor(), Sint32 and sySynch().

Referenced by scGabombaStatueInitEyes().

Definition at line 2369 of file gabomba_statue.c.

scGabombaStatueSawEnergyFlow

void scGabombaStatueSawEnergyFlow(void)

Once the Gabomba has responded, Akafubu comes up into the statue, and the party tells him how it mended the channel and where the orb went.

References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorGet(), fdActorRelease(), fdActorRunScriptAndWait(), fdActorSelectAnimation(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetPosAndFacing(), fdActorSetScript(), fdActorSetSpriteFlags(), fdActorShowEmote(), fdActorWalkToAndWait(), fdCameraMoveToFX(), fdCameraWaitForArrival(), fdMapGridCenterOnFollowedPoint(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeInterpolate(), fdScriptClearFlag(), fdScriptShowMessage(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), GabombaStatueAkafubuComesUpScript, GabombaStatueChannelSeeds, GabombaStatueJennaWatchesScript, MainRoutineStateWork, scFieldActorCreate(), scFieldActorJump(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest(), scFieldScriptSetMessageId(), scFieldScriptWait(), scGabombaStatueFindBrokenMetatile(), scGabombaStatueGetPuzzleSeed(), scGabombaStatueSetUpChannelPuzzle(), Sint32, syAtan() and sySynch().

Referenced by scGabombaStatueInitEyes().

Definition at line 2540 of file gabomba_statue.c.

scGabombaStatueKradenNoticesTiming

void scGabombaStatueKradenNoticesTiming(void)

Back from a failed ceremony whose charges reached the statue in the middle apart, Kraden notices it is their timing that matters, and the clock starts again.

References fdActorGet(), fdActorPlaceOnActor(), fdScriptSetFlag(), fdScriptShowMessage(), MainRoutineStateWork, scFieldActorSetSpriteColor(), scFieldScriptSetMessageId(), scGabombaStatueRestartClock(), scGabombaStatueStopClock() and sySynch().

Referenced by scGabombaStatueInitEyes().

Definition at line 2668 of file gabomba_statue.c.

scInit

Sint32 scInit(void)

Sets up whichever room of the statue is being entered: its cogs turning, stopped by the rope or turned the other way by the stakes, then the room's own things.

References fdActorGet(), fdMapGridCopyMetatileAttributes(), fdScriptGetFlag(), MainRoutineStateWork, scFieldPartyGetLeaderActor(), scGabombaStatueDrawCogMetatiles(), scGabombaStatueInitCorridors(), scGabombaStatueInitEntrance(), scGabombaStatueInitEyes(), scGabombaStatueInitLowerCogs(), scGabombaStatueInitSteel(), scGabombaStatueInitUpperCogs(), scGabombaStatueTurnCogs() and Sint32.

Definition at line 2686 of file gabomba_statue.c.

scPrepareMap

Sint32 scPrepareMap(void)

Coming into the entrance hall from outside sets the cogs and the stakes back as they were.

References fdScriptClearFlag(), fdScriptGetFlag(), MainRoutineStateWork and Sint32.

Definition at line 2742 of file gabomba_statue.c.

scGabombaStatueInitCorridors

void scGabombaStatueInitCorridors(void)

Sets up the corridors room.

References scGabombaStatueHideCorridorsLadderTopBlock().

Referenced by scInit().

Definition at line 2757 of file gabomba_statue.c.

scFieldRopePlace

static inline void scFieldRopePlace(Sint32 index, Sint32 flag, Sint32 firstPost, Sint32 secondPost)

Places rope index between two posts, tied when its flag is set, else coiled: the script inline over the scene's import of fdRopePlace, as script_inline.h writes them.

References scGabombaStatuePlaceRope() and Sint32.

Referenced by scGabombaStatueInitLowerCogs(), scGabombaStatueInitSteel(), scInit(), scMadraCatacombsSetUpChampaTunnel(), scMadraCatacombsSetUpVillage() and scSettlementsSetUpKaltIsland().

Definition at line 2765 of file gabomba_statue.c.

scGabombaStatueInitLowerCogs

void scGabombaStatueInitLowerCogs(void)

Sets up the lower cogs room: its pinions let go of the leader coming in from the west or the east of Steel's room, the stakes, the flashing cog raised until both are Pounded, and the two ropes.

References fdActorGet(), fdActorSetScript(), fdMapGridCopyMetatileAttributes(), fdRopeInit(), fdScriptGetFlag(), GabombaStatuePinionReleaseScript, GabombaStatueStakes, MainRoutineStateWork, scFieldRopePlace(), scGabombaStatueHideLowerCogsLadderTopBlocks() and scGabombaStatuePlaceSwitchActors().

Referenced by scInit().

Definition at line 2774 of file gabomba_statue.c.

scGabombaStatueInitSteel

void scGabombaStatueInitSteel(void)

Sets up Steel's room: its rope, and the fall in from the mouse's room.

References fdRopeInit(), fdScriptGetFlag(), fdScriptSetFlag(), MainRoutineStateWork, scFieldRopePlace() and scGabombaStatueLandFromFall().

Referenced by scInit().

Definition at line 2804 of file gabomba_statue.c.

scGabombaStatueInitUpperCogs

void scGabombaStatueInitUpperCogs(void)

Sets up the upper cogs room, below the small idol's chamber: its rope, coiled.

References fdRopeInit(), scGabombaStatueCoilRope(), Sint32 and Value3().

Referenced by scInit().

Definition at line 2826 of file gabomba_statue.c.

scGabombaStatueGetPuzzleSeed

Sint32 scGabombaStatueGetPuzzleSeed(void)

Which of the channel's seeds this game lays it from: the letters of the leader's name added up.

References GabombaStatueChannelSeeds, gmUnitGet(), MainRoutineStateWork and Sint32.

Referenced by scGabombaStatueInitEyes() and scGabombaStatueSawEnergyFlow().

Definition at line 2837 of file gabomba_statue.c.

scGabombaStatueInitEyes

void scGabombaStatueInitEyes(void)

Sets up the eyes room: its orb statues, its charges and the channel.

References fdActorGet(), fdActorSetAnimation(), fdActorSetSpriteFlags(), fdCameraMoveToFX(), fdMapGridCenterOnFollowedPoint(), fdScriptClearFlag(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), GabombaStatueChannelSeeds, MainRoutineStateWork, scFieldActorSetSpriteColor(), scFieldScriptEndLastingPsynergy(), scGabombaStatueCheckOfferingClock(), scGabombaStatueFadeByDepth(), scGabombaStatueFocusEnergies(), scGabombaStatueGetPuzzleSeed(), scGabombaStatueKradenNoticesTiming(), scGabombaStatueResetClock(), scGabombaStatueSawEnergyFlow(), scGabombaStatueSeeHowItWorks(), scGabombaStatueSetUpChannelPuzzle(), scGabombaStatueStartClock(), scGabombaStatueWatchTheChargesStick(), Sint32, sySetTickEvent() and sySynch().

Referenced by scInit().

Definition at line 2849 of file gabomba_statue.c.

scGabombaStatueInitEntrance

void scGabombaStatueInitEntrance(void)

Sets up the entrance hall; coming in from outside, Retreat leads back to it.

References fdActorGet(), fdScriptClearFlag(), fdScriptSetFlag() and MainRoutineStateWork.

Referenced by scInit().

Definition at line 2942 of file gabomba_statue.c.

scMemAllocate

static __inline__ void *scMemAllocate(Sint32 size)

References Sint32 and syHeapAllocate().

Referenced by scGabombaStatueLoadBlockPictures().

Definition at line 2954 of file gabomba_statue.c.

scGabombaStatueLoadBlockPictures

void scGabombaStatueLoadBlockPictures(void)

Loads the blocks' pictures into the VRAM cache.

References FieldChannelPieceTiles, scMemAllocate(), Sint32, syDecompressTaggedLZ(), syHeapRelease(), syVRAMCacheFindFreeEntry() and syVRAMCacheLoad().

Referenced by scGabombaStatueSetUpChannelPuzzle().

Definition at line 2967 of file gabomba_statue.c.

scGabombaStatueIsMetatileTaken

Sint32 scGabombaStatueIsMetatileTaken(Uint32 x, Uint32 z)

Whether channel metatile (x, z) is taken: blocked, holding a block, or a stop; 0 outside the grid.

References Sint32.

Referenced by scGabombaStatueHasTakenNeighbor().

Definition at line 2982 of file gabomba_statue.c.

scGabombaStatueHasTakenNeighbor

Bool scGabombaStatueHasTakenNeighbor(Sint32 x, Sint32 z)

Whether a metatile beside channel metatile (x, z) is taken.

References scGabombaStatueIsMetatileTaken() and Sint32.

Referenced by scGabombaStatueLayChannel().

Definition at line 3005 of file gabomba_statue.c.

scGabombaStatueRedrawChannel

void scGabombaStatueRedrawChannel(void)

Redraws the channel as the party left it: a raised block's socket open, the other blocks in place, and once the Gabomba has responded every block set back in.

References fdMapGridCopyMetatiles(), fdScriptGetFlag() and Sint32.

Referenced by scGabombaStatueSetUpChannelPuzzle().

Definition at line 3019 of file gabomba_statue.c.

scGabombaStatueTurnBlockPiece

Sint32 scGabombaStatueTurnBlockPiece(Sint32 x, Sint32 z, Sint32 direction)

Turns the block at channel metatile (x, z) a quarter turn, and returns its new piece.

References GabombaStatueTurnedPieces and Sint32.

Referenced by scGabombaStatueLayChannel() and scGabombaStatueTurnBlocks().

Definition at lines 3062 and 3650 of file gabomba_statue.c.

scGabombaStatueLayChannel

Sint32 scGabombaStatueLayChannel(Sint32 seed)

Lays the channel from seed, trying the seeds after it until each charge's path reaches the statue in the middle as the puzzle needs, then breaks the circuit and loosens the seven blocks, turned at random. Returns the seed it was laid from.

References fdMapGridCopyMetatiles(), RandWork, scGabombaStatueHasTakenNeighbor(), scGabombaStatueLayPath(), scGabombaStatueTurnBlockPiece(), scGabombaStatueWritePiece(), Sint32 and syRandom().

Referenced by scGabombaStatueSetUpChannelPuzzle().

Definition at line 3080 of file gabomba_statue.c.

scGabombaStatueLayPath

Sint32 scGabombaStatueLayPath(Sint32 startX, Sint32 startZ, Sint32 endX, Sint32 endZ, Sint32 length, Sint32 direction, Sint32 lastHeading, Sint32 pathBit)

Lays a random path of length metatiles across the channel from (startX, startZ), heading direction, to (endX, endZ), which it leaves by lastHeading; the pieces it passes are joined to it, and each metatile is marked with the path's bit, pathBit. It backs up a step when a metatile has no free way on. Returns 0, or -1 when the distance's parity rules such a path out or the search gives up.

References abs(), GabombaStatuePathColumns, GabombaStatuePathHeadings, GabombaStatuePathMetatilePaths, GabombaStatuePathPieces, GabombaStatuePathRows, GabombaStatuePathSteps, GabombaStatuePathTried, GabombaStatuePieceJoins, scGabombaStatuePickPiece(), scGabombaStatueWritePiece(), Sint32 and syRandom().

Referenced by scGabombaStatueLayChannel().

Definition at line 3412 of file gabomba_statue.c.

scGabombaStatuePickPiece

Sint32 scGabombaStatuePickPiece(Sint32 enter, Sint32 leave, Sint32 existing)

The piece joining the heading a path enters a metatile by to the one it leaves by, merged with the piece already there.

References GabombaStatuePieceTable and Sint32.

Referenced by scGabombaStatueLayPath().

Definition at line 3562 of file gabomba_statue.c.

scGabombaStatueWritePiece

void scGabombaStatueWritePiece(Sint32 x, Sint32 z, Sint32 kind, Sint32 state)

Puts piece kind, with the paths state, at channel metatile (x, z).

References Sint32.

Referenced by scGabombaStatueLayChannel() and scGabombaStatueLayPath().

Definition at line 3582 of file gabomba_statue.c.

scGabombaStatueSetBlocksRaised

void scGabombaStatueSetBlocksRaised(Sint32 id, Sint32 raised)

Raises the blocks over the room, their sockets open, or sets them in place: each block's actor, numbered from id, stands over its metatile while it is raised.

References fdActorGet(), fdMapGridCopyMetatiles() and Sint32.

Referenced by scGabombaStatueRaiseBlocks() and scGabombaStatueSetUpChannelPuzzle().

Definition at line 3591 of file gabomba_statue.c.

scGabombaStatueRaiseBlocks

void scGabombaStatueRaiseBlocks(Sint32 landed, Sint32 tick)

A step of the Pound on the eyes room's stake: it sinks, and as it ends the blocks rise.

References fdActorGet(), fdActorSelectAnimation(), scGabombaStatueSetBlocksRaised() and Sint32.

Referenced by scGabombaStatuePoundEyesStake().

Definition at line 3660 of file gabomba_statue.c.

scGabombaStatuePoundBlock

void scGabombaStatuePoundBlock(Sint32 landed)

Pounding a raised block sets it back into its place in the channel as the fist lands.

References fdActorGet(), fdMapGridCopyMetatiles() and Sint32.

Referenced by GabombaStatueEyesCues.

Definition at line 3676 of file gabomba_statue.c.

scGabombaStatueSetBlockAnimation

void scGabombaStatueSetBlockAnimation(Sint32 animation)

Sets the channel blocks' animation (BLOCK_ANIM_TURN_*).

References fdActorSetAnimationById() and Sint32.

Referenced by scGabombaStatuePressLeftArrowPanel() and scGabombaStatuePressRightArrowPanel().

Definition at line 3721 of file gabomba_statue.c.

scGabombaStatueTurnBlocks

void scGabombaStatueTurnBlocks(Sint32 direction)

Turns every raised block a quarter turn.

References fdActorGet(), scGabombaStatueTurnBlockPiece() and Sint32.

Referenced by scGabombaStatuePressLeftArrowPanel() and scGabombaStatuePressRightArrowPanel().

Definition at line 3727 of file gabomba_statue.c.

scGabombaStatuePressLeftArrowPanel

void scGabombaStatuePressLeftArrowPanel(void)

Stepping onto the left arrow panel presses it, and with the blocks raised turns them a quarter turn counterclockwise.

References fdMapGridCopyMetatilesLayered(), fdScriptEnd(), fdScriptPlaySound(), fdScriptStart(), scFieldScriptEndLastingPsynergy(), scGabombaStatueSetBlockAnimation(), scGabombaStatueTurnBlocks(), Sint32 and sySynch().

Referenced by GabombaStatueEyesCues.

Definition at line 3761 of file gabomba_statue.c.

scGabombaStatueReleaseLeftArrowPanel

void scGabombaStatueReleaseLeftArrowPanel(void)

Stepping off the left arrow panel raises it again.

References fdMapGridCopyMetatilesLayered().

Referenced by GabombaStatueEyesCues.

Definition at line 3796 of file gabomba_statue.c.

scGabombaStatuePressRightArrowPanel

void scGabombaStatuePressRightArrowPanel(void)

The right arrow panel: as the left, turning the blocks clockwise.

References fdMapGridCopyMetatilesLayered(), fdScriptEnd(), fdScriptPlaySound(), fdScriptStart(), scFieldScriptEndLastingPsynergy(), scGabombaStatueSetBlockAnimation(), scGabombaStatueTurnBlocks(), Sint32 and sySynch().

Referenced by GabombaStatueEyesCues.

Definition at line 3811 of file gabomba_statue.c.

scGabombaStatueReleaseRightArrowPanel

void scGabombaStatueReleaseRightArrowPanel(void)

Stepping off the right arrow panel raises it again.

References fdMapGridCopyMetatilesLayered().

Referenced by GabombaStatueEyesCues.

Definition at line 3846 of file gabomba_statue.c.

scGabombaStatueDrawRaisedBlocks

void scGabombaStatueDrawRaisedBlocks(void)

Each tick: draws the raised blocks over the room, turning while an arrow panel turns them.

References fdActorGet(), fdMapStateView(), Sint32, syOAMAddSpriteAtDepthClamped(), syOAMMatrixAllocateFromTransform() and VramCacheEntries.

Referenced by scGabombaStatueSetUpChannelPuzzle().

Definition at line 3870 of file gabomba_statue.c.

scGabombaStatueSetUpChannelPuzzle

Sint32 scGabombaStatueSetUpChannelPuzzle(Sint32 x, Sint32 z, Sint32 seed, Sint32 id)

Sets up the channel puzzle on entering the eyes room: its grid from the map's metatile (x, z), laid from seed, its blocks the actors from id. Coming back, it is redrawn as the party left it. Returns the seed it was laid from.

References fdActorGet(), fdScriptGetFlag(), scGabombaStatueDrawRaisedBlocks(), scGabombaStatueLayChannel(), scGabombaStatueLoadBlockPictures(), scGabombaStatueRedrawChannel(), scGabombaStatueSetBlocksRaised(), Sint32 and sySetTickEvent().

Referenced by scGabombaStatueInitEyes() and scGabombaStatueSawEnergyFlow().

Definition at line 3926 of file gabomba_statue.c.

scGabombaStatueMoveCharge

void scGabombaStatueMoveCharge(ACTOR *charge, Sint32 step, Sint32 id)

A tick of a charge's run along the channel: it follows the piece under it, bursts where that piece does not go on its way, and shrinks away where it is stopped short of the statue in the middle or reaches a raised block's socket. The actor id scGabombaStatueRunCharges passes is never read.

References fdActorStartScript(), GabombaStatueChargeBurstScript, GabombaStatueChargeShrinkScript, Sint32, syCos(), syMathMulFX(), sySin() and sySoundPlay().

Referenced by scGabombaStatueRunCharges().

Definition at line 3968 of file gabomba_statue.c.

scGabombaStatueRunCharges

Sint32 scGabombaStatueRunCharges(Sint32 first, Sint32 check)

Runs the four charges from the orb statues along the channel until each has stopped and, with check, tells how they reached the statue in the middle.

References fdActorGet(), fdActorSelectAnimation(), fdActorStartIdle(), fdScriptSetFlag(), result, scGabombaStatueMoveCharge(), Sint32 and sySynch().

Referenced by scGabombaStatueHearTheOffering() and scGabombaStatueWatchTheChargesStick().

Definition at line 4160 of file gabomba_statue.c.

scGabombaStatueFindBrokenMetatile

void scGabombaStatueFindBrokenMetatile(Uint32 *columnOut, Uint32 *rowOut)

Finds the metatile where the circuit is broken: a block with no piece on it.

Referenced by scGabombaStatueSawEnergyFlow().

Definition at line 4293 of file gabomba_statue.c.

scGabombaStatueFormatClock

void scGabombaStatueFormatClock(Sint32 time, Uint8 *text)

Converts the remaining ticks into minutes, seconds and tenths (MM:SS:T).

References Sint32.

Referenced by scGabombaStatueDrawClock().

Definition at line 4350 of file gabomba_statue.c.

scGabombaStatueTickClock

Sint32 scGabombaStatueTickClock(Sint32 time)

Plays the clock's tick each second and returns the scale of the changing digits, which shrink out of sight and grow back over the last third of each second, as the clock counts down to its tick.

References fdScriptPlaySound(), Sint32 and syCos().

Referenced by scGabombaStatueDrawClock().

Definition at line 4371 of file gabomba_statue.c.

scGabombaStatueDrawClock

void scGabombaStatueDrawClock(void)

Draws the clock's minutes and seconds, doubled in size, the colon and each digit about to change taking the ticking scale.

References mnVRAMLoad(), scGabombaStatueFormatClock(), scGabombaStatueTickClock(), Sint32, syOAMAddSpriteAtDepthClamped(), syOAMMatrixAllocateFromTransform() and VramCacheEntries.

Referenced by scGabombaStatueCountDownShowingClock().

Definition at line 4404 of file gabomba_statue.c.

scGabombaStatueCountDownShowingClock

void scGabombaStatueCountDownShowingClock(void)

Counts the clock down while no menu is open, and draws it.

References scGabombaStatueDrawClock().

Referenced by scGabombaStatueRestartClock(), scGabombaStatueStartClock() and scGabombaStatueStopClock().

Definition at line 4465 of file gabomba_statue.c.

scGabombaStatueCountDown

void scGabombaStatueCountDown(void)

Counts the clock down while no menu is open.

Referenced by scGabombaStatueRestartClock(), scGabombaStatueStartClock() and scGabombaStatueStopClock().

Definition at line 4477 of file gabomba_statue.c.

scGabombaStatueStartClock

void scGabombaStatueStartClock(Sint32 shown)

Starts the clock at one minute, shown or hidden.

References fdScriptGetFlag(), mnVRAMLoad(), scGabombaStatueCountDown(), scGabombaStatueCountDownShowingClock(), Sint32, syDecompressTaggedLZ(), syHeapAllocateEWRAM(), syResourceGetTableEntry(), sySetTickEvent() and syVRAMCacheFindFreeEntry().

Referenced by scGabombaStatueInitEyes().

Definition at line 4488 of file gabomba_statue.c.

scGabombaStatueStopClock

void scGabombaStatueStopClock(void)

Stops the clock's countdown.

References scFieldCloseEvent(), scGabombaStatueCountDown() and scGabombaStatueCountDownShowingClock().

Referenced by scGabombaStatueHearTheOffering() and scGabombaStatueKradenNoticesTiming().

Definition at line 4514 of file gabomba_statue.c.

scGabombaStatueRestartClock

void scGabombaStatueRestartClock(void)

Starts the clock counting down from a minute.

References scGabombaStatueCountDown(), scGabombaStatueCountDownShowingClock() and sySetTickEvent().

Referenced by scGabombaStatueKradenNoticesTiming().

Definition at line 4525 of file gabomba_statue.c.

scGabombaStatueGetClock

Sint32 scGabombaStatueGetClock(void)

The ticks left on the clock.

References Sint32.

Referenced by scGabombaStatueCheckOfferingClock().

Definition at line 4537 of file gabomba_statue.c.

scGabombaStatueResetClock

void scGabombaStatueResetClock(void)

Sets the clock back to a minute.

Referenced by scGabombaStatueInitEyes().

Definition at line 4543 of file gabomba_statue.c.

scGabombaStatuePlaceSwitchActors

void scGabombaStatuePlaceSwitchActors(const Uint16 *entry)

Puts out the stakes of a table of rows (actor, kind, flag), ended by -1, each standing or driven down as its flag says.

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

Referenced by scGabombaStatueInitLowerCogs().

Definition at line 4550 of file gabomba_statue.c.

Variables in detail

FieldEffectDurationScripts

extern const Sint32 *FieldEffectDurationScripts[]

LATE_DATA const Sint32 *FieldEffectDurationScripts[]

References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.

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

Definition at lines 269 and 4649 of file gabomba_statue.c.

GabombaStatueEntranceExitRegions

extern SCENE_REGION GabombaStatueEntranceExitRegions[]

LATE_DATA SCENE_REGION GabombaStatueEntranceExitRegions[]

Referenced by scGetExitRegions().

Definition at lines 318 and 4785 of file gabomba_statue.c.

GabombaStatueCorridorsExitRegions

extern SCENE_REGION GabombaStatueCorridorsExitRegions[]

LATE_DATA SCENE_REGION GabombaStatueCorridorsExitRegions[]

Referenced by scGetExitRegions().

Definition at lines 319 and 4792 of file gabomba_statue.c.

GabombaStatueLowerCogsExitRegions

extern SCENE_REGION GabombaStatueLowerCogsExitRegions[]

LATE_DATA SCENE_REGION GabombaStatueLowerCogsExitRegions[]

Referenced by scGetExitRegions().

Definition at lines 320 and 4798 of file gabomba_statue.c.

GabombaStatueSteelExitRegions

extern SCENE_REGION GabombaStatueSteelExitRegions[]

LATE_DATA SCENE_REGION GabombaStatueSteelExitRegions[]

Referenced by scGetExitRegions().

Definition at lines 321 and 4808 of file gabomba_statue.c.

GabombaStatueMouseExitRegions

extern SCENE_REGION GabombaStatueMouseExitRegions[]

LATE_DATA SCENE_REGION GabombaStatueMouseExitRegions[]

Referenced by scGetExitRegions().

Definition at lines 322 and 4818 of file gabomba_statue.c.

GabombaStatueUpperCogsExitRegions

extern SCENE_REGION GabombaStatueUpperCogsExitRegions[]

LATE_DATA SCENE_REGION GabombaStatueUpperCogsExitRegions[]

Referenced by scGetExitRegions().

Definition at lines 323 and 4824 of file gabomba_statue.c.

GabombaStatueCogDirection

extern Sint32 GabombaStatueCogDirection

Referenced by scGabombaStatueGetToothPos(), scGabombaStatueHopAcrossEastOrWest(), scGabombaStatueHopAcrossNorthOrSouth(), scGabombaStatueLashRope(), scGabombaStatueRideBlueCog(), scGabombaStatueRideRoller(), scGabombaStatueRideSlidingCog(), scGabombaStatueTurnCogs(), scGabombaStatueTurnTooth() and scGabombaStatueTurnWithCog().

Definition at line 509 of file gabomba_statue.c.

GabombaStatueCogAnimations

extern Sint8 GabombaStatueCogAnimations[]

Sint8 GabombaStatueCogAnimations[]

Each cog's animation by the cogs' direction + 1: turning back, stopped and turning.

Referenced by scGabombaStatueSetCogTurn().

Definition at lines 586 and 4594 of file gabomba_statue.c.

GabombaStatuePlacements

extern ACTOR_PLACE GabombaStatuePlacements[]

LATE_DATA ACTOR_PLACE GabombaStatuePlacements[]

Referenced by scGetActorPlacements().

Definition at lines 613 and 5246 of file gabomba_statue.c.

GabombaStatueCorridorsActorPlacements

extern ACTOR_PLACE GabombaStatueCorridorsActorPlacements[]

LATE_DATA ACTOR_PLACE GabombaStatueCorridorsActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 614 and 4924 of file gabomba_statue.c.

GabombaStatueLowerCogsActorPlacements

extern ACTOR_PLACE GabombaStatueLowerCogsActorPlacements[]

LATE_DATA ACTOR_PLACE GabombaStatueLowerCogsActorPlacements[]

References GabombaStatueFlashCogScript, GabombaStatueTurnToothScript and Sint32.

Referenced by scGetActorPlacements().

Definition at lines 615 and 4930 of file gabomba_statue.c.

GabombaStatueSteelActorPlacements

extern ACTOR_PLACE GabombaStatueSteelActorPlacements[]

LATE_DATA ACTOR_PLACE GabombaStatueSteelActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 616 and 4992 of file gabomba_statue.c.

GabombaStatueMouseActorPlacements

extern ACTOR_PLACE GabombaStatueMouseActorPlacements[]

LATE_DATA ACTOR_PLACE GabombaStatueMouseActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 617 and 5067 of file gabomba_statue.c.

GabombaStatueUpperCogsActorPlacements

extern ACTOR_PLACE GabombaStatueUpperCogsActorPlacements[]

LATE_DATA ACTOR_PLACE GabombaStatueUpperCogsActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 618 and 5161 of file gabomba_statue.c.

GabombaStatueEyesActorPlacements

extern ACTOR_PLACE GabombaStatueEyesActorPlacements[]

LATE_DATA ACTOR_PLACE GabombaStatueEyesActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 619 and 5184 of file gabomba_statue.c.

GabombaStatueEntranceActorPlacements

extern ACTOR_PLACE GabombaStatueEntranceActorPlacements[]

LATE_DATA ACTOR_PLACE GabombaStatueEntranceActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 620 and 5228 of file gabomba_statue.c.

GabombaStatueRopeStopSteps

extern Sint8 GabombaStatueRopeStopSteps[]

LATE_DATA Sint8 GabombaStatueRopeStopSteps[]

How the tooth the first rope is tied to rocks as the rope pulls taut, a step of its turn each tick.

Referenced by scGabombaStatueLashRope().

Definition at lines 644 and 5252 of file gabomba_statue.c.

GabombaStatueCues

extern CUE GabombaStatueCues[]

LATE_DATA CUE GabombaStatueCues[]

Referenced by scGetCues().

Definition at lines 1262 and 5407 of file gabomba_statue.c.

GabombaStatueCorridorsCues

extern CUE GabombaStatueCorridorsCues[]

LATE_DATA CUE GabombaStatueCorridorsCues[]

References scGabombaStatueClimbDownCorridorsLadder().

Referenced by scGetCues().

Definition at lines 1263 and 5259 of file gabomba_statue.c.

GabombaStatueLowerCogsCues

extern CUE GabombaStatueLowerCogsCues[]

LATE_DATA CUE GabombaStatueLowerCogsCues[]

References scGabombaStatueClimbDownLowerCogsLadder(), scGabombaStatueCogsTurnBack(), scGabombaStatueLashRope(), scGabombaStatueLowerCogsPinionsCarryLeaderNorth(), scGabombaStatueLowerCogsPinionsCarryLeaderSouth() and scGabombaStatuePoundStake().

Referenced by scGetCues().

Definition at lines 1264 and 5265 of file gabomba_statue.c.

GabombaStatueSteelCues

extern CUE GabombaStatueSteelCues[]

LATE_DATA CUE GabombaStatueSteelCues[]

References scGabombaStatueClimbDownSteelEastLadder(), scGabombaStatueClimbDownSteelNortheastLadder(), scGabombaStatueClimbDownSteelWestLadder(), scGabombaStatueFightSteel(), scGabombaStatueHopAcrossEastOrWest(), scGabombaStatueHopAcrossNorthOrSouth(), scGabombaStatueRideBlueCog(), scGabombaStatueRideRoller(), scGabombaStatueRideSlidingCog() and scGabombaStatueTurnWithCog().

Referenced by scGetCues().

Definition at lines 1265 and 5284 of file gabomba_statue.c.

GabombaStatueMouseCues

extern CUE GabombaStatueMouseCues[]

LATE_DATA CUE GabombaStatueMouseCues[]

References scGabombaStatueClimbDownMouseEastLadder(), scGabombaStatueClimbDownMouseNorthLadder(), scGabombaStatueClimbDownMouseWestLadder(), scGabombaStatueHopAcrossEastOrWest(), scGabombaStatueHopAcrossNorthOrSouth(), scGabombaStatueMouseShowsTheWay(), scGabombaStatueRideBlueCog(), scGabombaStatueRideRoller(), scGabombaStatueRideSlidingCog() and scGabombaStatueTurnWithCog().

Referenced by scGetCues().

Definition at lines 1266 and 5312 of file gabomba_statue.c.

GabombaStatueUpperCogsCues

extern CUE GabombaStatueUpperCogsCues[]

LATE_DATA CUE GabombaStatueUpperCogsCues[]

References scGabombaStatueClimbDownUpperCogsLadder(), scGabombaStatueHopAcrossEastOrWest(), scGabombaStatueHopAcrossNorthOrSouth(), scGabombaStatueRideBlueCog(), scGabombaStatueRideRoller(), scGabombaStatueRideSlidingCog(), scGabombaStatueTurnWithCog(), scGabombaStatueUpperCogsPinionsCarryLeaderNorth() and scGabombaStatueUpperCogsPinionsCarryLeaderSouth().

Referenced by scGetCues().

Definition at lines 1267 and 5339 of file gabomba_statue.c.

GabombaStatueEyesCues

extern CUE GabombaStatueEyesCues[]

LATE_DATA CUE GabombaStatueEyesCues[]

References scGabombaStatueClimbDownEyesLadder(), scGabombaStatueHearTheOffering(), scGabombaStatuePoundBlock(), scGabombaStatuePoundEyesStake(), scGabombaStatuePressLeftArrowPanel(), scGabombaStatuePressRightArrowPanel(), scGabombaStatueReleaseLeftArrowPanel(), scGabombaStatueReleaseRightArrowPanel() and scGabombaStatueStakeStandsUp().

Referenced by scGetCues().

Definition at lines 1268 and 5365 of file gabomba_statue.c.

GabombaStatueEntranceCues

extern CUE GabombaStatueEntranceCues[]

LATE_DATA CUE GabombaStatueEntranceCues[]

References scGabombaStatuePinionsCarryLeaderNorth() and scGabombaStatuePinionsThrowLeaderSouth().

Referenced by scGetCues().

Definition at lines 1269 and 5399 of file gabomba_statue.c.

GabombaStatueStakes

extern Sint16 GabombaStatueStakes[]

LATE_DATA Sint16 GabombaStatueStakes[]

The stakes beside the flashing cog: actor, its look, and the flag Pounding it sets.

Referenced by scGabombaStatueInitLowerCogs() and scGabombaStatuePoundStake().

Definition at lines 1612 and 4766 of file gabomba_statue.c.

GabombaStatueChargeScript

extern Sint32 GabombaStatueChargeScript[]

LATE_DATA Sint32 GabombaStatueChargeScript[]

References scGabombaStatueCircleOwner() and Sint32.

Referenced by scGabombaStatueSendCharge().

Definition at lines 2110 and 5179 of file gabomba_statue.c.

GabombaStatueLeaderFocusScript

extern Uint32 GabombaStatueLeaderFocusScript[]

LATE_DATA Uint32 GabombaStatueLeaderFocusScript[]

Referenced by scGabombaStatueFocusEnergies().

Definition at lines 2213 and 4658 of file gabomba_statue.c.

GabombaStatueChannelSeeds

extern Uint32 GabombaStatueChannelSeeds[16]

LATE_DATA Uint32 GabombaStatueChannelSeeds[]

The random seeds a game's channel is laid from, one picked by the leader's name (scGabombaStatueGetPuzzleSeed).

Referenced by scGabombaStatueGetPuzzleSeed(), scGabombaStatueInitEyes() and scGabombaStatueSawEnergyFlow().

Definition at lines 2365 and 4774 of file gabomba_statue.c.

GabombaStatuePathHeadings

Uint8 GabombaStatuePathHeadings[32]

scGabombaStatueLayPath's steps so far: each step's heading, metatile, piece, headings tried and the paths through its metatile before it was joined.

Referenced by scGabombaStatueLayPath().

Definition at line 3397 of file gabomba_statue.c.

GabombaStatuePathColumns

Uint8 GabombaStatuePathColumns[32]

Referenced by scGabombaStatueLayPath().

Definition at line 3398 of file gabomba_statue.c.

GabombaStatuePathRows

Uint8 GabombaStatuePathRows[32]

Referenced by scGabombaStatueLayPath().

Definition at line 3399 of file gabomba_statue.c.

GabombaStatuePathPieces

Uint8 GabombaStatuePathPieces[32]

Referenced by scGabombaStatueLayPath().

Definition at line 3400 of file gabomba_statue.c.

GabombaStatuePathTried

Uint8 GabombaStatuePathTried[32]

Referenced by scGabombaStatueLayPath().

Definition at line 3401 of file gabomba_statue.c.

GabombaStatuePathMetatilePaths

Uint8 GabombaStatuePathMetatilePaths[32]

Referenced by scGabombaStatueLayPath().

Definition at line 3402 of file gabomba_statue.c.

GabombaStatuePathSteps

extern Sint8 GabombaStatuePathSteps[]

LATE_DATA Sint8 GabombaStatuePathSteps[]

The step along each heading as (column, row).

Referenced by scGabombaStatueLayPath().

Definition at lines 3403 and 4618 of file gabomba_statue.c.

GabombaStatuePieceJoins

extern Uint8 GabombaStatuePieceJoins[]

LATE_DATA Uint8 GabombaStatuePieceJoins[]

The headings each piece joins, a bit each; a crossing, two curves and a stop let no new path in.

Referenced by scGabombaStatueLayPath().

Definition at lines 3404 and 4623 of file gabomba_statue.c.

GabombaStatuePieceTable

extern Uint8 GabombaStatuePieceTable[]

LATE_DATA Uint8 GabombaStatuePieceTable[]

The piece joining each heading a path enters a metatile by (a row of four) to each it leaves by.

Referenced by scGabombaStatuePickPiece().

Definition at lines 3557 and 4638 of file gabomba_statue.c.

GabombaStatueTurnedPieces

extern Uint8 GabombaStatueTurnedPieces[]

LATE_DATA Uint8 GabombaStatueTurnedPieces[]

Each piece turned a quarter turn counterclockwise and clockwise, a pair a piece in CHANNEL_PIECE's order.

Referenced by scGabombaStatueTurnBlockPiece().

Definition at lines 3558 and 5413 of file gabomba_statue.c.

GabombaStatueChargeShrinkScript

extern Sint32 GabombaStatueChargeShrinkScript[]

LATE_DATA Sint32 GabombaStatueChargeShrinkScript[]

References Sint32.

Referenced by scGabombaStatueMoveCharge().

Definition at lines 3953 and 5443 of file gabomba_statue.c.

GabombaStatueChargeBurstScript

extern Uint32 GabombaStatueChargeBurstScript[]

LATE_DATA Uint32 GabombaStatueChargeBurstScript[]

Referenced by scGabombaStatueMoveCharge().

Definition at lines 3954 and 5428 of file gabomba_statue.c.

GabombaStatueCogShapes

Uint32 GabombaStatueCogShapes[]

The shapes scGabombaStatueDrawCogMetatiles writes over the map's from COG_SHAPE_FIRST.

Referenced by scGabombaStatueDrawCogMetatiles().

Definition at line 4577 of file gabomba_statue.c.

GabombaStatuePinionReleaseScript

Uint32 GabombaStatuePinionReleaseScript[]

Referenced by scGabombaStatueInitLowerCogs().

Definition at line 4601 of file gabomba_statue.c.

GabombaStatueUnusedTurnedPieces

LATE_DATA Uint8 GabombaStatueUnusedTurnedPieces[]

Unused: GabombaStatueTurnedPieces from its second byte to its 21st.

Definition at line 4607 of file gabomba_statue.c.

Sint32

LATE_DATA Sint32

The way the cogs turn, which each tooth an actor rides steps by.

Referenced by ActorApproachWatchedScript, ActorCameraScript, ActorFaceWatchedScript, ActorFlyScript, ActorFootprintScript, ActorHoverScript, ActorIdleScript, ActorKeyCheckScript, ActorKeysScript, ActorLaunchScript, ActorOffsetScript, ActorPlacements, ActorPlayerScript, ActorRippleScript, ActorRopeScript, ActorSailOnMapScript, ActorSailScript, ActorSandOnWorldMapScript, ActorSandPuffScript, ActorSandScript, ActorScriptCycleTable, ActorScriptEndScript, ActorScriptIdleScript, ActorSplashScript, ActorStepAngleScript, ActorTightropeScript, ActorWaitScript, ActorWalkingScript, ActorWorldMapScript, AirsRockEntrancePlacements, AirsRockInsideFaceVentsPlacements, AirsRockInsideLeaderLevel, AirsRockInsideOrbitingSparkScript, AirsRockInsidePairedStakesPlacements, AirsRockInsideStampedHeight, AirsRockInsideStampedMetatile, AirsRockInsideStampedWidth, AirsRockInsideStampedX, AirsRockInsideStampedZ, AirsRockInsideTightropesPlacements, AirsRockInsideTurningBridgePlacements, AirsRockInsideWindStonePlacements, AirsRockLeaderLevel, AirsRockRubbleScript, AirsRockWindStoneScript, AlhafraActorPlacementsOnceTheMastIsCleared, AlhafraAlhafranLeadsBehindFelixScript, AlhafraElderStepsBackScript, AlhafranCaveGuardStepsAsideScript, AlhafranCaveIdleEventTick and 4596 more.

Definition at line 4656 of file gabomba_statue.c.

GabombaStatueJennaFocusScript

LATE_DATA Uint32 GabombaStatueJennaFocusScript[]

Referenced by scGabombaStatueFocusEnergies().

Definition at line 4666 of file gabomba_statue.c.

GabombaStatuePiersFocusScript

LATE_DATA Uint32 GabombaStatuePiersFocusScript[]

Referenced by scGabombaStatueFocusEnergies().

Definition at line 4677 of file gabomba_statue.c.

GabombaStatueKradenFocusScript

LATE_DATA Uint32 GabombaStatueKradenFocusScript[]

Referenced by scGabombaStatueFocusEnergies().

Definition at line 4688 of file gabomba_statue.c.

GabombaStatueKradenPointsScript

LATE_DATA Uint32 GabombaStatueKradenPointsScript[]

Referenced by scGabombaStatueFocusEnergies().

Definition at line 4699 of file gabomba_statue.c.

GabombaStatueLookAtChannelScript

LATE_DATA Uint32 GabombaStatueLookAtChannelScript[]

Referenced by scGabombaStatueSeeHowItWorks().

Definition at line 4712 of file gabomba_statue.c.

GabombaStatueLookNorthAndEastScript

LATE_DATA Sint32 GabombaStatueLookNorthAndEastScript[]

The party looking about as the charges run, each turning between north and north-east (or north-west) by scGabombaStatueLookAround: the timer and user words are where the actor keeps lookFacing and lookOtherFacing.

References scGabombaStatueLookAround() and Sint32.

Referenced by scGabombaStatueWatchTheChargesStick().

Definition at line 4725 of file gabomba_statue.c.

GabombaStatueLookNorthAndWestScript

LATE_DATA Sint32 GabombaStatueLookNorthAndWestScript[]

References scGabombaStatueLookAround() and Sint32.

Referenced by scGabombaStatueWatchTheChargesStick().

Definition at line 4732 of file gabomba_statue.c.

GabombaStatueJennaWatchesScript

LATE_DATA Uint32 GabombaStatueJennaWatchesScript[]

Referenced by scGabombaStatueSawEnergyFlow().

Definition at line 4739 of file gabomba_statue.c.

GabombaStatueAkafubuComesUpScript

LATE_DATA Uint32 GabombaStatueAkafubuComesUpScript[]

Referenced by scGabombaStatueSawEnergyFlow().

Definition at line 4752 of file gabomba_statue.c.

SceneEntrances

LATE_DATA SCENE_ENTRANCE SceneEntrances[]

Referenced by scGetEntrances().

Definition at line 4780 of file gabomba_statue.c.

SceneExits

LATE_DATA Uint32 SceneExits[]

Referenced by scGetExits().

Definition at line 4830 of file gabomba_statue.c.

GabombaStatueFlashCogScript

LATE_DATA Sint32 GabombaStatueFlashCogScript[]

References scGabombaStatueFlashCog() and Sint32.

Referenced by GabombaStatueLowerCogsActorPlacements.

Definition at line 4914 of file gabomba_statue.c.

GabombaStatueTurnToothScript

LATE_DATA Sint32 GabombaStatueTurnToothScript[]

References scGabombaStatueTurnTooth() and Sint32.

Referenced by GabombaStatueLowerCogsActorPlacements.

Definition at line 4919 of file gabomba_statue.c.

On this page

StructuresMacrosEnumerationsFunctionsVariablesDescriptionMacros in detailOWN_fdActorStartIdleFLAG_GABOMBA_COGS_TURNED_BACKFLAG_GABOMBA_SAW_HOW_IT_WORKSFLAG_GABOMBA_TIMING_NOTICEDFLAG_GABOMBA_FIRST_STAKE_POUNDEDFLAG_GABOMBA_SECOND_STAKE_POUNDEDFLAG_GABOMBA_MOUSE_SEENFLAG_GABOMBA_CHARGES_REACHED_APARTFLAG_LADDER_TOP_BLOCKS_DRAWNFLAG_GABOMBA_FIRST_ROPE_TIEDFLAG_GABOMBA_SECOND_ROPE_TIEDFLAG_COGS_STOPPEDFLAG_LANDED_BESIDE_STEELFLAG_OFFERING_HEARDEFFECT_SET_MODEEFFECT_SET_SCRIPTHEADING_BITHEADING_ALL_TRIEDCHARGE_STEPSceneStateWorkDIFF_WITHINDEFINE_GABOMBA_STATUE_STEP_WHEN_HELDDEFINE_GABOMBA_STATUE_STEP_WHEN_HELD_FOURDEFINE_GABOMBA_STATUE_WALK_LEADER_TODEFINE_GABOMBA_STATUE_HIDE_LADDER_TOP_BLOCKSCOG_METATILEMARKPATH_KEEP_HEADING_CHANCECLOCK_DEPTHCLOCK_STATEEnumerations in detailanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumGABOMBA_STATUE_METATILE_BEHAVIORGABOMBA_STATUE_ARROW_METATILE_BEHAVIORanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumCHANNEL_HEADINGCHANNEL_PIECEanonymous enumCHANNEL_PATHanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumCHARGE_ARRIVALanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumanonymous enumFunctions in detailscGabombaStatueFightSteelscGabombaStatueLookAroundscGetEntrancesscGetExitRegionsscGetExitsscGabombaStatueFlashCogscGabombaStatueGetToothPosscGabombaStatueTurnToothscGabombaStatueCircleOwnerscGetActorPlacementsscGabombaStatueLashRopescGabombaStatueFindCogUnderscGabombaStatueFindCogAheadscGabombaStatueHopOffCogscGabombaStatueTurnWithCogscGabombaStatueRideBlueCogscGabombaStatueRideSlidingCogscGabombaStatueEndRidescGabombaStatueRideRollerscGabombaStatueHopAcrossEastOrWestscGabombaStatueHopAcrossNorthOrSouthscGabombaStatueMouseShowsTheWayscGabombaStatueSendChargescGabombaStatueResetChargescGabombaStatueReleaseChargesscGabombaStatueHearTheOfferingscGetCuesscGabombaStatueClimbDownLadderscGabombaStatueClimbDownCorridorsLadderscGabombaStatueClimbDownLowerCogsLadderscGabombaStatueClimbDownSteelNortheastLadderscGabombaStatueClimbDownSteelWestLadderscGabombaStatueClimbDownSteelEastLadderscGabombaStatueClimbDownMouseNorthLadderscGabombaStatueClimbDownMouseWestLadderscGabombaStatueClimbDownMouseEastLadderscGabombaStatueClimbDownUpperCogsLadderscGabombaStatueClimbDownEyesLadderscGabombaStatuePinionsCarryLeaderNorthscGabombaStatuePinionsThrowLeaderSouthscGabombaStatueLowerCogsPinionsCarryLeaderSouthscGabombaStatueLowerCogsPinionsCarryLeaderNorthscGabombaStatueUpperCogsPinionsCarryLeaderSouthscGabombaStatueUpperCogsPinionsCarryLeaderNorthscGabombaStatueSetLadderTopBlocksDrawnscGabombaStatueDrawLadderTopBlocksscGabombaStatueHideLadderTopBlocksscGabombaStatuePoundStakescGabombaStatueCogsTurnBackscGabombaStatuePoundEyesStakescGabombaStatueStakeStandsUpscGabombaStatueCheckOfferingClockscGabombaStatueHideActorscGabombaStatueRestoreLadderTopBlocksscGabombaStatueHideCorridorsLadderTopBlockscGabombaStatueHideLowerCogsLadderTopBlocksscGabombaStatuePauseCogsInMenusscGabombaStatueDrawCogMetatilesscGabombaStatueFadeByDepthscGabombaStatueSetCogTurnscGabombaStatueTurnCogsscGabombaStatueLandFromFallscGabombaStatueFocusEnergiesscGabombaStatueWatchTheChargesStickscGabombaStatueSeeHowItWorksscGabombaStatueSawEnergyFlowscGabombaStatueKradenNoticesTimingscInitscPrepareMapscGabombaStatueInitCorridorsscFieldRopePlacescGabombaStatueInitLowerCogsscGabombaStatueInitSteelscGabombaStatueInitUpperCogsscGabombaStatueGetPuzzleSeedscGabombaStatueInitEyesscGabombaStatueInitEntrancescMemAllocatescGabombaStatueLoadBlockPicturesscGabombaStatueIsMetatileTakenscGabombaStatueHasTakenNeighborscGabombaStatueRedrawChannelscGabombaStatueTurnBlockPiecescGabombaStatueLayChannelscGabombaStatueLayPathscGabombaStatuePickPiecescGabombaStatueWritePiecescGabombaStatueSetBlocksRaisedscGabombaStatueRaiseBlocksscGabombaStatuePoundBlockscGabombaStatueSetBlockAnimationscGabombaStatueTurnBlocksscGabombaStatuePressLeftArrowPanelscGabombaStatueReleaseLeftArrowPanelscGabombaStatuePressRightArrowPanelscGabombaStatueReleaseRightArrowPanelscGabombaStatueDrawRaisedBlocksscGabombaStatueSetUpChannelPuzzlescGabombaStatueMoveChargescGabombaStatueRunChargesscGabombaStatueFindBrokenMetatilescGabombaStatueFormatClockscGabombaStatueTickClockscGabombaStatueDrawClockscGabombaStatueCountDownShowingClockscGabombaStatueCountDownscGabombaStatueStartClockscGabombaStatueStopClockscGabombaStatueRestartClockscGabombaStatueGetClockscGabombaStatueResetClockscGabombaStatuePlaceSwitchActorsVariables in detailFieldEffectDurationScriptsGabombaStatueEntranceExitRegionsGabombaStatueCorridorsExitRegionsGabombaStatueLowerCogsExitRegionsGabombaStatueSteelExitRegionsGabombaStatueMouseExitRegionsGabombaStatueUpperCogsExitRegionsGabombaStatueCogDirectionGabombaStatueCogAnimationsGabombaStatuePlacementsGabombaStatueCorridorsActorPlacementsGabombaStatueLowerCogsActorPlacementsGabombaStatueSteelActorPlacementsGabombaStatueMouseActorPlacementsGabombaStatueUpperCogsActorPlacementsGabombaStatueEyesActorPlacementsGabombaStatueEntranceActorPlacementsGabombaStatueRopeStopStepsGabombaStatueCuesGabombaStatueCorridorsCuesGabombaStatueLowerCogsCuesGabombaStatueSteelCuesGabombaStatueMouseCuesGabombaStatueUpperCogsCuesGabombaStatueEyesCuesGabombaStatueEntranceCuesGabombaStatueStakesGabombaStatueChargeScriptGabombaStatueLeaderFocusScriptGabombaStatueChannelSeedsGabombaStatuePathHeadingsGabombaStatuePathColumnsGabombaStatuePathRowsGabombaStatuePathPiecesGabombaStatuePathTriedGabombaStatuePathMetatilePathsGabombaStatuePathStepsGabombaStatuePieceJoinsGabombaStatuePieceTableGabombaStatueTurnedPiecesGabombaStatueChargeShrinkScriptGabombaStatueChargeBurstScriptGabombaStatueCogShapesGabombaStatuePinionReleaseScriptGabombaStatueUnusedTurnedPiecesSint32GabombaStatueJennaFocusScriptGabombaStatuePiersFocusScriptGabombaStatueKradenFocusScriptGabombaStatueKradenPointsScriptGabombaStatueLookAtChannelScriptGabombaStatueLookNorthAndEastScriptGabombaStatueLookNorthAndWestScriptGabombaStatueJennaWatchesScriptGabombaStatueAkafubuComesUpScriptSceneEntrancesSceneExitsGabombaStatueFlashCogScriptGabombaStatueTurnToothScript