include/scene/gabomba_statue.h
The rooms inside the Gabomba Statue (gabomba_statue.c): their scripts, and the functions of the cogs, the ladders, the offering's clock and the channel puzzle; with fdActorSetMetatileOpen and scActorsSetDrawn, which other scenes keep copies of.
Included by airs_rock_inside.c, dehkan_plateau.c and gabomba_statue.c.
Functions
| Name | Description | |
|---|---|---|
Sint32 | abs (Sint32) | The C library's absolute value, which the channel puzzle measures its paths with. |
void | scGabombaStatueTurnCogs (Sint32 direction) | Sets the cogs' direction and turns every cog of the room that way. |
void | scGabombaStatueStopClock (void) | Stops the clock's countdown. |
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. |
void | scGabombaStatueTurnWithCog (void) | Standing on a green cog turns the leader with it. |
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. |
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. |
void | scGabombaStatueHopAcrossEastOrWest (void) | Walking east or west off a sliding cog hops the leader to the next. |
void | scGabombaStatueHopAcrossNorthOrSouth (void) | Walking north or south off a roller hops the leader to the next. |
void | scGabombaStatueHearTheOffering (void) | The offering's clock has run out: Akafubu offers the jewel below ("O Great Gabomba! |
void | scGabombaStatueClimbDownCorridorsLadder (void) | 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. |
void | scGabombaStatueClimbDownLowerCogsLadder (void) | 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. |
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. |
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. |
void | scGabombaStatueClimbDownMouseNorthLadder (void) | 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. |
void | scGabombaStatueClimbDownMouseWestLadder (void) | 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. |
void | scGabombaStatueClimbDownUpperCogsLadder (void) | 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. |
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. |
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. |
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. |
void | scGabombaStatuePressLeftArrowPanel (void) | Stepping onto the left arrow panel presses it, and with the blocks raised turns them a quarter turn counterclockwise. |
void | scGabombaStatueReleaseLeftArrowPanel (void) | Stepping off the left arrow panel raises it again. |
void | scGabombaStatuePressRightArrowPanel (void) | The right arrow panel: as the left, turning the blocks clockwise. |
void | scGabombaStatueReleaseRightArrowPanel (void) | Stepping off the right arrow panel raises it again. |
void | scGabombaStatueRestartClock (void) | Starts the clock counting down from a minute. |
void | scGabombaStatueHideCorridorsLadderTopBlock (void) | The corridors room, as it is set up: its one ladder-top block. |
void | scGabombaStatueHideLowerCogsLadderTopBlocks (void) | The lower cogs room, as it is set up: its two ladder-top blocks. |
Sint32 | scGabombaStatueGetPuzzleSeed (void) | Which of the channel's seeds this game lays it from: the letters of the leader's name added up. |
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. |
void | scGabombaStatueFindBrokenMetatile (Uint32 *columnOut, Uint32 *rowOut) | Finds the metatile where the circuit is broken: a block with no piece on it. |
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. |
void | scGabombaStatueInitCorridors (void) | Sets up the corridors room. |
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. |
void | scGabombaStatueInitSteel (void) | Sets up Steel's room: its rope, and the fall in from the mouse's room. |
void | scGabombaStatueInitUpperCogs (void) | Sets up the upper cogs room, below the small idol's chamber: its rope, coiled. |
void | scGabombaStatueInitEyes (void) | Sets up the eyes room: its orb statues, its charges and the channel. |
void | scGabombaStatueInitEntrance (void) | Sets up the entrance hall; coming in from outside, Retreat leads back to it. |
void | scGabombaStatueStartClock (Sint32 shown) | Starts the clock at one minute, shown or hidden. |
void | scGabombaStatueResetClock (void) | Sets the clock back to a minute. |
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. |
void | scGabombaStatueWritePiece (Sint32 x, Sint32 z, Sint32 kind, Sint32 state) | Puts piece kind, with the paths state, at channel metatile (x, z). |
Sint32 | scGabombaStatuePickPiece (Sint32 row, Sint32 column, Sint32 direction) | The piece joining the heading a path enters a metatile by to the one it leaves by, merged with the piece already there. |
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. |
void | scGabombaStatueLoadBlockPictures (void) | Loads the blocks' pictures into the VRAM cache. |
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. |
Sint32 | scGabombaStatueLayChannel (Sint32 value) | 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. |
void | scGabombaStatueCountDownShowingClock (void) | Counts the clock down while no menu is open, and draws it. |
void | scGabombaStatueCountDown (void) | Counts the clock down while no menu is open. |
void | fdActorSetMetatileOpen (Sint32 id, Uint32 kind, Sint32 flag, Sint32 layer) | A stake as its flag leaves it: driven down by Pound, its metatile is open ground and it is drawn underfoot, sunk to its top; still standing, its metatile is a wall. |
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. |
void | scActorsSetDrawn (Sint32 show, Sint32 first, Uint32 count) | Draws (show 1) or stops drawing count actors, from first on. |
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. |
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. |
Sint32 | scGabombaStatueGetClock (void) | The ticks left on the clock. |
void | scGabombaStatueCoilRope (Sint32 index, Sint32 firstPost, Sint32 secondPost) | Coils a rope at its first post (fdRopeCoil, through the overlay's own import row). |
void | scGabombaStatuePlaceRope (Sint32 index, Sint32 flag, Sint32 firstPost, Sint32 secondPost) | Places a rope between its posts, tied when its flag is set, else coiled (fdRopePlace, through the overlay's own import row). |
Variables
| Name | Description | |
|---|---|---|
extern Sint32 | GabombaStatueFlashCogScript [] | |
extern Sint32 | GabombaStatueTurnToothScript [] | |
extern Uint32 | GabombaStatueJennaFocusScript [] | |
extern Uint32 | GabombaStatuePiersFocusScript [] | |
extern Uint32 | GabombaStatueKradenFocusScript [] | |
extern Uint32 | GabombaStatueKradenPointsScript [] | |
extern 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. |
extern Sint32 | GabombaStatueLookNorthAndWestScript [] | |
extern Uint32 | GabombaStatuePinionReleaseScript [] | |
extern Uint32 | GabombaStatueJennaWatchesScript [] | |
extern Uint32 | GabombaStatueAkafubuComesUpScript [] | |
extern Uint32 | GabombaStatueLookAtChannelScript [] | |
extern Uint32 | GabombaStatueCogShapes [] | The shapes scGabombaStatueDrawCogMetatiles writes over the map's from COG_SHAPE_FIRST. |
Description
The rooms inside the Gabomba Statue (gabomba_statue.c): their scripts, and
the functions of the cogs, the ladders, the offering's clock and the channel
puzzle; with fdActorSetMetatileOpen and scActorsSetDrawn, which other scenes
keep copies of.
Functions in detail
abs
Sint32 abs(Sint32)
The C library's absolute value, which the channel puzzle measures its paths with.
Referenced by scGabombaStatueLayPath().
Definition at line 16 of file gabomba_statue.h.
scGabombaStatueCoilRope
void scGabombaStatueCoilRope(Sint32 index, Sint32 firstPost, Sint32 secondPost)
Coils a rope at its first post (fdRopeCoil, through the overlay's own import
row).
Referenced by scGabombaStatueInitUpperCogs().
Definition at line 127 of file gabomba_statue.h.
scGabombaStatuePlaceRope
void scGabombaStatuePlaceRope(Sint32 index, Sint32 flag, Sint32 firstPost, Sint32 secondPost)
Places a rope between its posts, tied when its flag is set, else coiled
(fdRopePlace, through the overlay's own import row).
Referenced by scFieldRopePlace().
Definition at line 130 of file gabomba_statue.h.