src/scene/dehkan_plateau.c
The Dehkan Plateau, the cliffs and caves Felix crosses after Daila on his way south to Madra, in six scenes that share this overlay, each of several screens. More…
#include "macros.h"#include "item_ids.h"#include "field/script_inline.h"#include "field/field_engine.h"#include "scene/dehkan_plateau.h"#include "scene/scene.h"#include "scene/tundaria_tower.h"#include "game/game.h"#include "graphics/glyph.h"#include "field/actor_script.h"#include "scene/gabomba_statue.h"#include "shared/crumbling_pillar.c"#include "shared/field_effect_advance_motion_priority.c"#include "shared/dust.c"#include "shared/actor_set_metatile_shape.c"#include "shared/leader_set_metatile_shape.c"#include "shared/pillar_raise.c"#include "shared/pillar_lower_held_metatiles.c"#include "shared/held_actor_raise_metatile.c"#include "shared/actor_set_sprite_priority.c"#include "../field/field_effect_move.c"#include "shared/field_effect_spawn.c"#include "shared/actors_set_hidden.c"#include "shared/actor_drop_and_wait.c"#include "shared/actor_hide.c"#include "../field/field_effect_advance_motion.c"#include "shared/dust_scatter_script.c"#include "shared/dust_burst_script.c"#include "shared/field_effect_duration_scripts.c"
Macros
| Name | Description | |
|---|---|---|
#define | FLAG_CANNON_FLED_OVER_CRACKS 0x86c | Cannon's flight across the plateau, a flag for each stage: over the cracks and out east in the pillars stretch, then along the rope bridge, past the stake he Pounds and over the two pillars he cracks. |
#define | FLAG_CANNON_FLED_EAST 0x86d | |
#define | FLAG_CANNON_LEAPT_AWAY 0x86e | |
#define | FLAG_CANNON_POUNDED_STAKE 0x86f | |
#define | FLAG_CANNON_CRACKED_PILLARS 0x870 | |
#define | FLAG_CANNON_DROPPED_POUND_CUBE 0x871 | The Pound Cube's cave: Cannon drops the Pound Cube, and the party takes it. |
#define | FLAG_POUND_CUBE_TAKEN 0x878 | |
#define | FLAG_PILLARS_STONE_PILLAR_PLACED 0x840 | The pillars Moved into place in the pillars and rope bridge's stretches. |
#define | FLAG_TIGHTROPES_SECOND_PILLAR_PLACED 0x841 | |
#define | FLAG_DEHKAN_PLATEAU_BLOCKS_SHOWN FLAG_SCENE_TEMP(0x00) | For this visit: the room's unseen blocks drawn (scDehkanPlateauRestoreBlocks). |
#define | FLAG_STANDING_ON_OPENED_CRACK FLAG_SCENE_TEMP(0x01) | The leader stands on the crack he has just opened; set until he steps off. |
#define | FLAG_STAKE_METATILE_CHANGED FLAG_SCENE_TEMP(0x02) | Cannon's cave's stake's metatile holds the attributes scDehkanPlateauEnterLowerPath gives it while the leader is on the lower path. |
#define | FLAG_ENTRANCE_STAKE_POUNDED FLAG_SCENE_TEMP(0x03) | Each room's stake Pounded into the ground, by its list's flag. |
#define | FLAG_PILLARS_STAKE_POUNDED FLAG_SCENE_TEMP(0x04) | |
#define | FLAG_TIGHTROPES_STAKE_POUNDED FLAG_SCENE_TEMP(0x05) | |
#define | FLAG_POUND_CUBE_STAKE_POUNDED FLAG_SCENE_TEMP(0x06) | |
#define | FLAG_CANNON_ROOM_STAKE_POUNDED FLAG_SCENE_TEMP(0x07) | Cannon's cave's stake, Pounded into the ground so Cannon is cornered. |
#define | FLAG_TIGHTROPES_ROPE_LASHED FLAG_SCENE_TEMP(0x08) | The rope bridge's stretch's rope, tied by Lash from its low post to its high one. |
#define | FLAG_CANNON_MET FLAG_SCENE_TEMP(0x09) | Cannon met in Cannon's cave on this visit, or already in the party. |
#define | FLAG_ENTRANCE_PILLAR_IN_GAP FLAG_AREA_TEMP(0x01) | The first stretch's stone pillar, Moved into the gap, where it stays. |
#define | FLAG_PILLAR_CRACKED (n) (FLAG_SCENE_TEMP(0x10) + 2 * (n)) | A room's crumbling pillars, two flags to a pillar in its list's order: the first set once it cracks, the next once it crumbles (scCrumblingPillarStep). |
#define | FLAG_PILLAR_CRUMBLED (n) (FLAG_PILLAR_CRACKED(n) + 1) | |
#define | FLAG_CRACK_OPENED_FIRST FLAG_SCENE_TEMP(0x40) | The first of a room's crack flags, one a listed crack, set while the crack is open (DEFINE_DEHKAN_PLATEAU_RESTORE_CRACKS). |
#define | FLAG_CRACK_OPENED (n) (FLAG_CRACK_OPENED_FIRST + (n)) | |
#define | FLAG_FELL_THROUGH_FIRST FLAG_AREA_TEMP(0x20) | The crack the party fell through, one flag for each landing entrance from FIRST_LANDING_ENTRANCE, for the landing drawn below it. |
#define | FLAG_FELL_THROUGH_LAST FLAG_AREA_TEMP(0x5f) | |
#define | FIRST_LANDING_ENTRANCE 11 | |
#define | LAST_LANDING_ENTRANCE 39 | |
#define | FLAG_FELL_THROUGH (entrance) | |
#define | POUND_CUBE_LANDINGS_FROM 17 | Entrances from these up land a fall: the Pound Cube room's 36 and 37, and Cannon's room's 8 to 23. |
#define | CANNON_ROOM_LANDINGS_FROM 6 | |
#define | CUE_ENTRANCE_FIRST_CRACK 11 | The step code of each room's first crack, its list's first row; the rest follow in order, and a fall leaves by the exit of its crack's code. |
#define | CUE_PILLARS_FIRST_CRACK 14 | |
#define | CUE_TIGHTROPES_FIRST_CRACK 12 | |
#define | CUE_POUND_CUBE_FIRST_CRACK 18 | |
#define | CUE_POUND_CUBE_CANNON_CRACK (CUE_POUND_CUBE_FIRST_CRACK + 5) | The Pound Cube's cave's crack Cannon Pounds the leader through, its sixth. |
#define | CUE_TIGHTROPES_PILLARS_WEST 11 | The rope bridge's stretch's step code that runs scDehkanPlateauStepOnTightropesPillars on walking west, which a vine pillar pushed beside the crumbling pillars takes. |
#define | FALL_TICKS 40 | The ticks the leader takes to sink through a crack. |
#define | EFFECT_SET_MODE fdActorSelectAnimation | |
#define | EFFECT_SET_SCRIPT fdActorStartScript | |
#define | DEFINE_DEHKAN_PLATEAU_RESTORE_CRACKS (name, cracks, count, pictures) | Defines a function that restores a stretch's count cracks, listed in cracks and drawn open with pictures: on a return the opened ones are drawn open; otherwise each crack listed as cracked sets its flag, and the fall is forgotten. |
#define | DEFINE_DEHKAN_PLATEAU_DRAW_FALL_LANDING (name, | Defines a function that draws, in a cave below the cracks, where the party landed under the crack it fell through (DehkanPlateauFallLandingMetatiles): the floor metatile from (sourceX, sourceZ), a column of five metatiles from (columnSourceX, columnSourceZ), and four metatiles from (sourceX, belowSourceZ), belowOffsetZ rows below that column on the lower layer. |
Enumerations
| Name | Description | |
|---|---|---|
enum | DEHKAN_PLATEAU_ENTRANCE_ACTOR_ID { ACTOR_ENTRANCE_FIRST_CRUMBLING_PILLAR, ACTOR_ENTRANCE_STAKE, … } | The first stretch, where cracks drop the party to the caves below. |
enum | DEHKAN_PLATEAU_PILLARS_ACTOR_ID { ACTOR_PILLARS_FIRST_CRUMBLING_PILLAR, ACTOR_PILLARS_STAKE, A … } | The pillars stretch, where Cannon is first seen and flees over the cracks. |
enum | DEHKAN_PLATEAU_TIGHTROPES_ACTOR_ID { ACTOR_TIGHTROPES_FIRST_TIGHTROPE_WEST_POST, ACTOR_TIGHTROPES … } | The rope bridge's stretch, of tightropes, a rope to Lash and the crumbling pillars Cannon leaps across. |
enum | DEHKAN_PLATEAU_CAVES_ACTOR_ID { ACTOR_CAVES_FIRST_BLOCK } | The caves below the cracks, with the Mint's chest. |
enum | DEHKAN_PLATEAU_POUND_CUBE_ACTOR_ID { ACTOR_POUND_CUBE_STAKE, ACTOR_POUND_CUBE_CANNON } | The Pound Cube's cave, where a fall lands the leader beside Cannon and he drops the Pound Cube. |
enum | DEHKAN_PLATEAU_CANNON_ACTOR_ID { ACTOR_CANNON_ROOM_STAKE, ACTOR_CANNON_ROOM_CRUMBLING_PILLAR, … } | Cannon's cave, where Cannon is cornered behind the stake and fights. |
enum | anonymous enum { ENTRANCE_BLOCK_COUNT, PILLARS_BLOCK_COUNT, TIGHTROPES_BLOCK_ … } | The unseen blocks of each room (scActorsSetDrawn, scActorHide). |
enum | DEHKAN_PLATEAU_ENTRANCE_METATILE_BEHAVIOR { METATILE_BEHAVIOR_ENTRANCE_BLOCKS_ON, METATILE_BEHAVIOR_ENTR … } | The metatiles that run the rooms' scripts. |
enum | DEHKAN_PLATEAU_PILLARS_METATILE_BEHAVIOR { METATILE_BEHAVIOR_PILLARS_BLOCKS_ON, METATILE_BEHAVIOR_PILLA … } | The pillars stretch. |
enum | DEHKAN_PLATEAU_TIGHTROPES_METATILE_BEHAVIOR { METATILE_BEHAVIOR_TIGHTROPES_BLOCKS_ON, METATILE_BEHAVIOR_TI … } | The rope bridge's stretch. |
enum | DEHKAN_PLATEAU_CAVES_METATILE_BEHAVIOR { METATILE_BEHAVIOR_CAVES_BLOCKS_ON, METATILE_BEHAVIOR_CAVES_B … } | The caves below the cracks. |
enum | DEHKAN_PLATEAU_POUND_CUBE_METATILE_BEHAVIOR { METATILE_BEHAVIOR_POUND_CUBE } | The Pound Cube's cave. |
enum | DEHKAN_PLATEAU_CANNON_METATILE_BEHAVIOR { METATILE_BEHAVIOR_CANNON_ROOM_BLOCKS_ON, METATILE_BEHAVIOR_C … } | Cannon's cave. |
enum | anonymous enum { ANIM_STONE_STAKE_STANDING, ANIM_STONE_STAKE_SUNK } | The stone stake's two looks in stake.png (fdActorSetMetatileOpen). |
enum | anonymous enum { ENTRANCE_PILLARS_WEST_SCREEN } | Coming in by this entrance, from the pillars stretch's east screen into its west one, the leader is drawn behind the ledge there. |
enum | anonymous enum { ENTRANCE_CRACKS, PILLARS_CRACKS, TIGHTROPES_CRACKS, POUND_CU … } | The cracks of each room's list. |
enum | anonymous enum { POUND_CUBE_WEST_UPPER_CRACK, POUND_CUBE_EAST_UPPER_CRACK, JO … } | The Pound Cube's cave's two cracks that have another just south of them, the next in its list; once both are open, the hole drawn below is JOINED_HOLE of DehkanPlateauPoundCubeHolePictures in place of its own. |
Functions
| Name | Description | |
|---|---|---|
void | scDehkanPlateauLeaveLowerPath (void) | Nothing visible happens when Felix steps off the lower floor of Cannon's cave (metatiles (44, 16) to (44, 18), or (52, 15) to (54, 15)) before the stake is Pounded: the game gives the stake's metatile back its own attributes. |
void | scDehkanPlateauForgetFall (void) | Forgets which crack the party fell through. |
void | scDehkanPlateauFightCannon (void) | Talking to Cannon in his cave starts the battle with him. |
const SCENE_ENTRANCE * | scGetEntrances (void) | Where the party can enter: the cave under the spring has its own entrances. |
const SCENE_REGION * | scGetExitRegions (void) | The regions of the rooms whose exits are rectangles: the Chestbeaters' room and the stream room. |
const Uint32 * | scGetExits (void) | The dock's ways lead back the way the party came into Lemuria, which the harbour and the shore of Ancient Lemuria note in FLAG_LEMURIA_OTHER_WAY_IN. |
const Uint8 * | scGetActorPlacements (void) | The scene's actor placements: a room of names for its entrance, else the debug room's. |
const CUE * | scGetCues (void) | The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's. |
void | scDehkanPlateauStepOnEntrancePillars (void) | Felix steps onto one of the three gray pillars of the first stretch: the first step cracks it, and the next crumbles it under him. |
void | scDehkanPlateauSetPillarsStandingPillarMetatiles (void) | Gives the metatiles of four of the pillars stretch's crumbling pillars, while each stands, the attributes of metatile (0, 0). |
void | scDehkanPlateauStepOnPillarsCrumblingPillars (void) | Felix steps onto one of the gray pillars of the pillars stretch, which cracks and then crumbles as in the first; on the low ones he is drawn behind the ledge. |
void | scDehkanPlateauSetTightropesStandingPillarMetatiles (void) | The same for two of the rope bridge's stretch's crumbling pillars, from metatile (63, 0). |
void | scDehkanPlateauStepOnTightropesPillars (void) | Felix steps onto one of the gray pillars of the rope bridge's stretch, which cracks and then crumbles; below the ledge he is drawn behind it. |
void | scDehkanPlateauStepOnCannonPillar (void) | Felix steps onto the gray pillar in Cannon's cave, which cracks and then crumbles; once he is up on it he no longer counts as on the cave's lower floor (scDehkanPlateauLeaveLowerPath). |
void | scDehkanPlateauSetBlocksShown (Sint32 show) | Draws (show 1) or stops drawing the unseen blocks of the room the party is in. |
void | scDehkanPlateauShowBlocks (void) | Felix steps onto the foot of a cliff in one of five rooms: the room's unseen blocks are drawn again, and noted shown. |
void | scDehkanPlateauHideBlocks (void) | Felix steps onto the metatiles beside those of scDehkanPlateauShowBlocks while the blocks are drawn (in the first stretch, (35, 13) to (35, 18)): the room's unseen blocks stop being drawn. |
void | scDehkanPlateauPoundEntranceStake (Sint32 mode, Sint32 frame) | Pound on the stake in the first stretch sinks it into the ground. |
void | scDehkanPlateauPoundPillarsStake (Sint32 mode, Sint32 frame) | Pound on the stake in the pillars stretch sinks it into the ground. |
void | scDehkanPlateauPoundTightropesStake (Sint32 mode, Sint32 frame) | Pound on the stake by the rope bridge, if Cannon has not already sunk it, sinks it into the ground. |
void | scDehkanPlateauPoundPoundCubeStake (Sint32 mode, Sint32 frame) | Pound on the stake in the cave where Cannon drops the Pound Cube sinks it into the ground. |
void | scDehkanPlateauPoundCannonStake (Sint32 mode, Sint32 frame) | Pound on the stake in Cannon's cave, from the lower floor below his ledge, sinks it into the ground: with it gone Cannon has nothing to leap onto and is cornered. |
void | scDehkanPlateauDropEntrancePillarIntoGap (void) | Moved or pushed to the gap's edge in the first stretch, the stone pillar drops into the gap and stays there, bridging it (FLAG_ENTRANCE_PILLAR_IN_GAP). |
void | scDehkanPlateauLiftPillarsStonePillar (void) | Move takes hold of the pillars stretch's stone pillar. |
void | scDehkanPlateauPlacePillarsStonePillar (void) | Moved or pushed to the gap's edge in the pillars stretch, the stone pillar drops into the gap for good, bridging it (FLAG_PILLARS_STONE_PILLAR_PLACED). |
void | scDehkanPlateauLiftTightropesPillar (void) | Move takes hold of the rope bridge's stretch's stone pillar. |
void | scDehkanPlateauPlaceTightropesPillar (void) | Moved or pushed to the gap's edge on the raised ground of the rope bridge's stretch, the stone pillar drops into the gap below. |
void | scDehkanPlateauSetTightropesSecondPillarInPlace (void) | Puts the rope bridge's stretch's second stone pillar a column west, off the vine it stood before, with the metatiles that let it be walked over and the vine climbed. |
void | scDehkanPlateauMoveTightropesSecondPillar (void) | Move on the rope bridge's stretch's second stone pillar: a column west, it settles there. |
void | scDehkanPlateauPushTightropesSecondPillar (void) | Walking west into the rope bridge's stretch's second stone pillar pushes it a column west. |
void | scDehkanPlateauStepOffCrack (void) | Stepping off a crack opened on this visit lets it be stepped on again. |
DEFINE_DEHKAN_PLATEAU_RESTORE_CRACKS( | scDehkanPlateauRestoreEntranceCracks , DehkanPlateauEntranceCracks, ENTRANCE_CRACKS, DehkanPlateauEntranceCrackPictures) | Restores the first stretch's fourteen cracks: on a return the opened ones are drawn open, otherwise each listed crack starts its flag. |
DEFINE_DEHKAN_PLATEAU_RESTORE_CRACKS( | scDehkanPlateauRestorePillarsCracks , DehkanPlateauPillarsCracks, PILLARS_CRACKS, DehkanPlateauPillarsCrackPictures) | Restores the pillars stretch's eight cracks, as the first stretch's. |
DEFINE_DEHKAN_PLATEAU_RESTORE_CRACKS( | scDehkanPlateauRestoreTightropesCracks , DehkanPlateauTightropesCracks, TIGHTROPES_CRACKS, DehkanPlateauTightropesCrackPictures) | Restores the rope bridge's stretch's six cracks, as the first stretch's. |
void | scDehkanPlateauRestorePoundCubeCracks (void) | As the other rooms' (DEFINE_DEHKAN_PLATEAU_RESTORE_CRACKS) for the Pound Cube's cave's sixteen cracks. |
void | scDehkanPlateauStepOnCrack (void) | Felix steps onto a crack in one of the three stretches outside or in the Pound Cube's cave, and is set in the middle of its metatile. |
void | scDehkanPlateauForgetCrackOnLeaving (void) | The rope bridge's stretch's and the Pound Cube's cave's event: once the leader steps off the crack he opened, it can be stepped on again. |
void | scDehkanPlateauRestoreBlocks (void) | Back from a battle or a menu, stops drawing the room's unseen blocks again unless they were shown; otherwise notes them shown. |
void | scDehkanPlateauHideEntranceBlocks (void) | Hides the first stretch's unseen blocks as it opens. |
void | scDehkanPlateauHidePillarsBlocks (void) | Hides the pillars stretch's unseen blocks as it opens. |
void | scDehkanPlateauHideTightropesBlocks (void) | Hides the rope bridge's stretch's unseen blocks as it opens. |
void | scDehkanPlateauHideCavesBlocks (void) | Hides the unseen blocks of the caves below the cracks as they open. |
void | scDehkanPlateauHideCannonBlocks (void) | Hides Cannon's cave's unseen blocks as it opens. |
void | scDehkanPlateauPlaceVinePillar (ACTOR *actor) | Sets the metatiles under a vine pillar of the rope bridge's stretch once it is pushed or Moved: off the ledge at column 12 it drops to the ground below, and at columns 18, 54 and 55 it bridges the way. |
void | scDehkanPlateauPushVinePillar (void) | Walking into one of the rope bridge's stretch's vine pillars pushes it a metatile on. |
void | scDehkanPlateauLiftTightropesVinePillar (void) | Move takes hold of one of the rope bridge's stretch's vine pillars. |
void | scDehkanPlateauFinishMovingVinePillar (void) | Move lets go of one of the rope bridge's stretch's vine pillars. |
void | scDehkanPlateauEnterLowerPath (void) | Nothing visible happens when Felix steps onto the lower floor of Cannon's cave, below the ledge (metatiles (43, 16) to (43, 18)), before the stake is Pounded. |
void | scDehkanPlateauJoltCamera (void) | Jolts the camera down eight pixels and back over eight ticks, as the ground gives way. |
static __inline__ void | scActorPlaceFacing (Sint32 id, FIXED x, FIXED z, Uint16 angle) | Places an actor on the ground at a 16.16 position, facing a heading. |
void | scDehkanPlateauCannonFleesOverCracks (void) | Felix comes up into the cracked field of the pillars stretch (metatiles (39, 13) to (41, 14)) and sees the Mars Djinni Cannon for the first time: the view pans north to him, he starts, and he runs north across the cracks, cracking one open and breaking through another into a hole, before he hops off to the east. |
void | scDehkanPlateauCannonFleesEast (void) | Felix reaches the east end of the pillars stretch (metatiles (56, 13) to (59, 13)): the view pans to Cannon by the cliff's edge, who starts and runs off east out of sight. |
void | scDehkanPlateauCannonLeapsAway (void) | Felix comes to the west end of the rope bridge (metatiles (6, 6) and (7, 6)): Cannon, standing on the bridge, starts at the sight of him, leaps along it and runs off east across. |
void | scDehkanPlateauCannonPoundsStake (void) | Felix comes near Cannon east of the rope bridge (metatile (23, 6), or from the south at (25, 16) to (27, 17)): Cannon starts, casts Pound on the stake in his way so that a great fist drives it into the ground, and runs on south over it, cracking open a crack behind him. |
void | scDehkanPlateauSinkPoundedStake (void) | The event of Cannon's Pound in the rope bridge's stretch: the stake sinks, and once the Psynergy ends it is down for good. |
void | scDehkanPlateauCannonCastsPound (void) | Cannon casts Pound on the rope bridge's stretch's stake. |
void | scDehkanPlateauCrackPillar (Sint32 id, Sint32 standingId, Sint32 flag) | Cracks a crumbling pillar as Cannon lands on it: it flashes white and takes its cracked look, and eight puffs of dust rise about the one standing on it. |
void | scDehkanPlateauCannonCracksPillars (void) | Felix follows Cannon to the gray pillars east of the rope bridge (metatiles (36, 12) to (36, 16), (35, 16) and (35, 17)): Cannon starts, leaps across the pillars, cracking two as he lands on them, and runs off north over a crack, which opens into a hole as he goes, and he is gone. |
void | scDehkanPlateauCannonPoundsLeaderThrough (void) | Felix steps onto the crack south of where the Pound Cube lies, in the cave where Cannon drops it (metatile (15, 8)), before he has fallen in beside Cannon: Cannon starts and casts Pound on him, a great fist slams down, and Felix sinks through the floor and lands in Cannon's cave below. |
void | scDehkanPlateauPoundLeaderThrough (void) | The event of Cannon's Pound on the leader: the floor under him opens. |
void | scDehkanPlateauCannonCastsPoundOnLeader (void) | Cannon casts Pound on the leader in the Pound Cube's cave. |
void | scDehkanPlateauCannonDropsPoundCube (void) | Felix falls through a crack in the north of the rope bridge's stretch and lands beside Cannon in the cave below; both bounce apart, Cannon drops the Pound Cube in his fright, glares at Felix and runs off north. |
void | scDehkanPlateauCannonCracksLastPillar (void) | While the stake stands, Cannon sees Felix coming along the ledge, leaps onto the stake, then onto the gray pillar beyond it, which flashes and cracks under him, and on to the far ledge, where he waits. |
void | scDehkanPlateauCannonCornered (void) | Once the stake is down, Cannon sees Felix coming and finds he has nowhere to leap: he looks about him and turns to face Felix. |
void | scDehkanPlateauMeetCannon (void) | Felix walks east along the ledge toward Cannon in his cave (metatiles (43, 12) and (43, 13)), once a visit. |
void | scDehkanPlateauTakePoundCube (void) | Felix examines the Pound Cube where Cannon dropped it, north of the crack Cannon Pounds him through (metatile (15, 5)), and takes it. |
void | scDehkanPlateauLeaveRoom (void) | Felix walks into a cave mouth in the cliff of the first stretch (map metatile (84, 21)) or of the pillars stretch (metatile (113, 12)): the exit sound plays, the screen fades to black, and he comes out in the caves below the cracks. |
Sint32 | scInit (void) | Sets up the room of the plateau the party comes into. |
void | scDehkanPlateauKeepPriorityWithLeader (void) | The first stretch's event: draws the chest on the ledge at the leader's sprite priority each tick, so it stays in front of or behind him with the ground. |
void | scDehkanPlateauInitEntrance (void) | Sets up the first stretch: its pillars, the stone pillar already in the gap, its cracks and unseen blocks, and the chest's event. |
void | scDehkanPlateauInitPillars (void) | Sets up the pillars stretch: its crumbling pillars, stake and stone pillar, its cracks, and Cannon as far as he has fled. |
void | scDehkanPlateauInitTightropes (void) | Sets up the rope bridge's stretch: its tightropes and the rope to Lash, its stone, vine and stakes and crumbling pillars, its cracks, and Cannon as far as he has gone. |
DEFINE_DEHKAN_PLATEAU_DRAW_FALL_LANDING( | scDehkanPlateauDrawCavesFallLanding , 3, 8, 67, 3, 66, 69) | Draws, in the caves below the cracks, the metatiles where the party landed under the crack it fell through. |
DEFINE_DEHKAN_PLATEAU_DRAW_FALL_LANDING( | scDehkanPlateauDrawPoundCubeFallLanding , 13, 5, 77, 0, 65, 65) | Draws, in the Pound Cube's cave, the metatiles where the party landed under the crack it fell through. |
void | scDehkanPlateauInitCaves (void) | Sets up the caves below the cracks: the floor Cannon opened, and the landing of a fall. |
void | scDehkanPlateauLandFromFall (void) | Felix drops in from the crack above in a shaft of light, landing in a ring of dust. |
void | scDehkanPlateauInitPoundCube (void) | Sets up the Pound Cube's cave: the Pound Cube where Cannon dropped it, its cracks, and the landing of a fall, beside Cannon the first time. |
void | scDehkanPlateauCreatePoundCube (void) | Creates the Pound Cube Cannon drops, drawn with the item's own icon. |
void | scDehkanPlateauInitCannon (void) | Sets up Cannon's cave: its stake and crumbling pillar, Cannon met already if he is in the party, and the landing of a fall. |
Sint32 | scPrepareMap (void) | Once Briggs is caught the pool has dried up: its colours take the dry ground's. |
Variables
| Name | Description | |
|---|---|---|
extern Sint16 | DehkanPlateauEntranceCrumblingPillars [] | Each room's crumbling pillars, with the first of the two flags that remember each one cracked and crumbled. |
extern ACTOR * | DehkanPlateauDroppedPoundCube | The Pound Cube Cannon drops, while it lies on the ground. |
extern Uint16 | DehkanPlateauEntranceCrackPictures [] | The map pictures a room's crack is drawn with: cracked open, then as a hole. |
extern Uint16 | DehkanPlateauEntranceCracks [][CRACK_FIELDS] | Each room's cracks: whether it starts cracked, its metatile, its hole picture and where the hole is drawn below. |
extern Sint16 | DehkanPlateauPillarsCrumblingPillars [] | |
extern Sint16 | DehkanPlateauTightropesCrumblingPillars [] | |
extern Sint16 | DehkanPlateauCannonCrumblingPillar [] | |
extern Sint16 | DehkanPlateauEntranceStakes [] | Each room's stakes, with the flag that remembers each one Pounded. |
extern Sint16 | DehkanPlateauPillarsStakes [] | |
extern Sint16 | DehkanPlateauTightropesStakes [] | |
extern Sint16 | DehkanPlateauPoundCubeStakes [] | |
extern Sint16 | DehkanPlateauCannonStakes [] | |
extern Sint16 | DehkanPlateauPillarsBlocks [] | The stone pillars Move takes hold of. |
extern Sint16 | DehkanPlateauTightropesPillars [] | |
extern ACTOR_PLACE | DehkanPlateauPlacements [] | The placements of a room with none of its own. |
extern ACTOR_PLACE | DehkanPlateauEntrancePlacements [] | Each room's actors (DEHKAN_PLATEAU_ENTRANCE_ACTOR_ID and the rest); the rows at scene points stand where the map's points put them. |
extern ACTOR_PLACE | DehkanPlateauPillarsPlacements [] | |
extern ACTOR_PLACE | DehkanPlateauTightropesPlacements [] | |
extern ACTOR_PLACE | DehkanPlateauCavesPlacements [] | |
extern ACTOR_PLACE | DehkanPlateauPoundCubePlacements [] | |
extern ACTOR_PLACE | DehkanPlateauCannonPlacements [] | |
extern CUE | DehkanPlateauCues [] | The cues of a room with none of its own. |
extern CUE | DehkanPlateauEntranceCues [] | Each room's exits, cracks, pillars, unseen blocks and Cannon's flight. |
extern CUE | DehkanPlateauPillarsCues [] | |
extern CUE | DehkanPlateauTightropesCues [] | |
extern CUE | DehkanPlateauCavesCues [] | |
extern CUE | DehkanPlateauPoundCubeCues [] | |
extern CUE | DehkanPlateauCannonCues [] | |
extern Uint16 | DehkanPlateauPillarsCrackPictures [] | |
extern Uint16 | DehkanPlateauPillarsCracks [][CRACK_FIELDS] | |
extern Uint16 | DehkanPlateauTightropesCrackPictures [] | |
extern Uint16 | DehkanPlateauTightropesCracks [][CRACK_FIELDS] | |
Sint32 | DehkanPlateauCrackZ | The metatile of the crack the leader has just opened, in the rope bridge's stretch and the Pound Cube's cave (scDehkanPlateauForgetCrackOnLeaving). |
Sint32 | DehkanPlateauCrackX | |
extern Sint16 | DehkanPlateauTightropesVinePillars [] | The rope bridge's stretch's vine pillars. |
extern Uint32 | DehkanPlateauDustScript [] | The puffs of dust a crumbling pillar raises. |
extern Uint16 | DehkanPlateauFallLandingMetatiles [] | Where each fall lands in the caves below, four to a landing entrance from FIRST_LANDING_ENTRANCE: the floor metatile the party lands on, then the top of the shaft of light drawn above it. |
extern Uint32 | FieldEffectLongScript [] | |
const Sint32 * | FieldEffectDurationScripts [] | The field effects' three scripts by how long an effect lasts: short, medium and long. |
Uint16 | DehkanPlateauPoundCubeCrackPictures [] | The cracks' pictures and records (each room's crack table). |
Uint16 | DehkanPlateauEntranceHolePictures [] | The pictures of the hole under each crack, drawn as the leader falls. |
Uint16 | DehkanPlateauPillarsHolePictures [] | |
Uint16 | DehkanPlateauTightropesHolePictures [] | |
Uint16 | DehkanPlateauPoundCubeHolePictures [] | |
Uint16 | DehkanPlateauPoundCubeCracks [][CRACK_FIELDS] | |
SCENE_ENTRANCE | SceneEntrances [] | Besides the party's return to the pier after the ship is stolen, four unused spots about the mast: below the huge block, on the dock by its crate, on the deck, and at the top of the sail's east pole. |
Uint32 | SceneExits [] | The exits given by bare numbers lead between two screens of one room, each to the other's entrance. |
Description
The Dehkan Plateau, the cliffs and caves Felix crosses after Daila on his way south to Madra, in six scenes that share this overlay, each of several screens.
Its ground is cracked: the first step on a crack cracks it open, and the next
drops Felix through to the caves below (scDehkanPlateauStepOnCrack), from
which stairs lead back up. Gray pillars stand in the gaps; each holds Felix
once and crumbles at his next step (scCrumblingPillarStep). Stone pillars are
Moved or pushed into the gaps to bridge them.
In story order: the first stretch, where the cracks begin and a chest with
the Full Metal Vest stands on a ledge reached from the caves; the stretch of
gray pillars with the Themis Axe's chest, where the Mars Djinni Cannon is
first seen and runs off over the cracks; the stretch of the rope bridge and
tightropes, where he Pounds a stake out of his way and cracks two pillars as
he leaps across them; the caves below the cracks, with the Mint's chest; the
cave Felix falls into beside Cannon, who drops the Pound Cube in his fright
(scDehkanPlateauCannonDropsPoundCube); and Cannon's own cave, where he is
cornered once Felix Pounds the stake in his way into the ground, and fights
(scDehkanPlateauFightCannon).
Macros in detail
FLAG_CANNON_FLED_OVER_CRACKS
#define FLAG_CANNON_FLED_OVER_CRACKS 0x86c
Cannon's flight across the plateau, a flag for each stage: over the cracks and out east in the pillars stretch, then along the rope bridge, past the stake he Pounds and over the two pillars he cracks.
Referenced by DehkanPlateauPillarsCues, scDehkanPlateauCannonFleesOverCracks(), scDehkanPlateauInitCaves() and scDehkanPlateauInitPillars().
Definition at line 37 of file dehkan_plateau.c.
FLAG_CANNON_FLED_EAST
#define FLAG_CANNON_FLED_EAST 0x86d
Referenced by DehkanPlateauPillarsCues, scDehkanPlateauCannonFleesEast() and scDehkanPlateauInitPillars().
Definition at line 38 of file dehkan_plateau.c.
FLAG_CANNON_LEAPT_AWAY
#define FLAG_CANNON_LEAPT_AWAY 0x86e
Referenced by DehkanPlateauTightropesCues, scDehkanPlateauCannonLeapsAway() and scDehkanPlateauInitTightropes().
Definition at line 39 of file dehkan_plateau.c.
FLAG_CANNON_POUNDED_STAKE
#define FLAG_CANNON_POUNDED_STAKE 0x86f
Referenced by DehkanPlateauTightropesCues, scDehkanPlateauCannonPoundsStake() and scDehkanPlateauInitTightropes().
Definition at line 40 of file dehkan_plateau.c.
FLAG_CANNON_CRACKED_PILLARS
#define FLAG_CANNON_CRACKED_PILLARS 0x870
Referenced by DehkanPlateauTightropesCues, scDehkanPlateauCannonCracksPillars() and scDehkanPlateauInitTightropes().
Definition at line 41 of file dehkan_plateau.c.
FLAG_CANNON_DROPPED_POUND_CUBE
#define FLAG_CANNON_DROPPED_POUND_CUBE 0x871
The Pound Cube's cave: Cannon drops the Pound Cube, and the party takes it.
Referenced by DehkanPlateauPoundCubeCues, scDehkanPlateauCannonDropsPoundCube() and scDehkanPlateauInitPoundCube().
Definition at line 43 of file dehkan_plateau.c.
FLAG_POUND_CUBE_TAKEN
#define FLAG_POUND_CUBE_TAKEN 0x878
Referenced by DehkanPlateauPoundCubeCues, scDehkanPlateauInitPoundCube() and scDehkanPlateauTakePoundCube().
Definition at line 44 of file dehkan_plateau.c.
FLAG_PILLARS_STONE_PILLAR_PLACED
#define FLAG_PILLARS_STONE_PILLAR_PLACED 0x840
The pillars Moved into place in the pillars and rope bridge's stretches.
Referenced by DehkanPlateauPillarsCues, scDehkanPlateauInitPillars() and scDehkanPlateauPlacePillarsStonePillar().
Definition at line 46 of file dehkan_plateau.c.
FLAG_TIGHTROPES_SECOND_PILLAR_PLACED
#define FLAG_TIGHTROPES_SECOND_PILLAR_PLACED 0x841
Referenced by DehkanPlateauTightropesCues, scDehkanPlateauInitTightropes() and scDehkanPlateauSetTightropesSecondPillarInPlace().
Definition at line 47 of file dehkan_plateau.c.
FLAG_DEHKAN_PLATEAU_BLOCKS_SHOWN
#define FLAG_DEHKAN_PLATEAU_BLOCKS_SHOWN FLAG_SCENE_TEMP(0x00)
For this visit: the room's unseen blocks drawn
(scDehkanPlateauRestoreBlocks).
Referenced by DehkanPlateauCannonCues, DehkanPlateauCavesCues, DehkanPlateauEntranceCues, DehkanPlateauPillarsCues, DehkanPlateauTightropesCues, scDehkanPlateauHideBlocks(), scDehkanPlateauRestoreBlocks() and scDehkanPlateauShowBlocks().
Definition at line 143 of file dehkan_plateau.c.
FLAG_STANDING_ON_OPENED_CRACK
#define FLAG_STANDING_ON_OPENED_CRACK FLAG_SCENE_TEMP(0x01)
The leader stands on the crack he has just opened; set until he steps off.
Referenced by DehkanPlateauEntranceCues, DehkanPlateauPillarsCues, DehkanPlateauPoundCubeCues, DehkanPlateauTightropesCues, scDehkanPlateauForgetCrackOnLeaving(), scDehkanPlateauStepOffCrack() and scDehkanPlateauStepOnCrack().
Definition at line 145 of file dehkan_plateau.c.
FLAG_STAKE_METATILE_CHANGED
#define FLAG_STAKE_METATILE_CHANGED FLAG_SCENE_TEMP(0x02)
Cannon's cave's stake's metatile holds the attributes
scDehkanPlateauEnterLowerPath gives it while the leader is on the lower path.
Referenced by DehkanPlateauCannonCues, scDehkanPlateauEnterLowerPath() and scDehkanPlateauLeaveLowerPath().
Definition at line 148 of file dehkan_plateau.c.
FLAG_ENTRANCE_STAKE_POUNDED
#define FLAG_ENTRANCE_STAKE_POUNDED FLAG_SCENE_TEMP(0x03)
Each room's stake Pounded into the ground, by its list's flag.
Referenced by DehkanPlateauEntranceCues and DehkanPlateauEntranceStakes.
Definition at line 150 of file dehkan_plateau.c.
FLAG_PILLARS_STAKE_POUNDED
#define FLAG_PILLARS_STAKE_POUNDED FLAG_SCENE_TEMP(0x04)
Referenced by DehkanPlateauPillarsCues and DehkanPlateauPillarsStakes.
Definition at line 151 of file dehkan_plateau.c.
FLAG_TIGHTROPES_STAKE_POUNDED
#define FLAG_TIGHTROPES_STAKE_POUNDED FLAG_SCENE_TEMP(0x05)
Referenced by DehkanPlateauTightropesCues, DehkanPlateauTightropesStakes, scDehkanPlateauInitTightropes() and scDehkanPlateauSinkPoundedStake().
Definition at line 152 of file dehkan_plateau.c.
FLAG_POUND_CUBE_STAKE_POUNDED
#define FLAG_POUND_CUBE_STAKE_POUNDED FLAG_SCENE_TEMP(0x06)
Referenced by DehkanPlateauPoundCubeCues and DehkanPlateauPoundCubeStakes.
Definition at line 153 of file dehkan_plateau.c.
FLAG_CANNON_ROOM_STAKE_POUNDED
#define FLAG_CANNON_ROOM_STAKE_POUNDED FLAG_SCENE_TEMP(0x07)
Cannon's cave's stake, Pounded into the ground so Cannon is cornered.
Referenced by DehkanPlateauCannonCues, DehkanPlateauCannonStakes, scDehkanPlateauEnterLowerPath(), scDehkanPlateauInitCannon(), scDehkanPlateauLeaveLowerPath() and scDehkanPlateauMeetCannon().
Definition at line 155 of file dehkan_plateau.c.
FLAG_TIGHTROPES_ROPE_LASHED
#define FLAG_TIGHTROPES_ROPE_LASHED FLAG_SCENE_TEMP(0x08)
The rope bridge's stretch's rope, tied by Lash from its low post to its high one.
Referenced by DehkanPlateauTightropesCues and scDehkanPlateauInitTightropes().
Definition at line 158 of file dehkan_plateau.c.
FLAG_CANNON_MET
#define FLAG_CANNON_MET FLAG_SCENE_TEMP(0x09)
Cannon met in Cannon's cave on this visit, or already in the party.
Referenced by DehkanPlateauCannonCues, scDehkanPlateauFightCannon(), scDehkanPlateauInitCannon() and scDehkanPlateauMeetCannon().
Definition at line 160 of file dehkan_plateau.c.
FLAG_ENTRANCE_PILLAR_IN_GAP
#define FLAG_ENTRANCE_PILLAR_IN_GAP FLAG_AREA_TEMP(0x01)
The first stretch's stone pillar, Moved into the gap, where it stays.
Referenced by DehkanPlateauEntranceCues, scDehkanPlateauDropEntrancePillarIntoGap() and scDehkanPlateauInitEntrance().
Definition at line 162 of file dehkan_plateau.c.
FLAG_PILLAR_CRACKED
#define FLAG_PILLAR_CRACKED(n) (FLAG_SCENE_TEMP(0x10) + 2 * (n))
A room's crumbling pillars, two flags to a pillar in its list's order: the
first set once it cracks, the next once it crumbles (scCrumblingPillarStep).
Referenced by DehkanPlateauCannonCrumblingPillar, DehkanPlateauEntranceCrumblingPillars, DehkanPlateauPillarsCrumblingPillars, DehkanPlateauTightropesCrumblingPillars, scDehkanPlateauCannonCracksLastPillar(), scDehkanPlateauCannonCracksPillars() and scDehkanPlateauInitTightropes().
Definition at line 165 of file dehkan_plateau.c.
FLAG_PILLAR_CRUMBLED
#define FLAG_PILLAR_CRUMBLED(n) (FLAG_PILLAR_CRACKED(n) + 1)
Referenced by scDehkanPlateauSetPillarsStandingPillarMetatiles() and scDehkanPlateauSetTightropesStandingPillarMetatiles().
Definition at line 166 of file dehkan_plateau.c.
FLAG_CRACK_OPENED_FIRST
#define FLAG_CRACK_OPENED_FIRST FLAG_SCENE_TEMP(0x40)
The first of a room's crack flags, one a listed crack, set while the crack is
open (DEFINE_DEHKAN_PLATEAU_RESTORE_CRACKS).
Referenced by scDehkanPlateauRestorePoundCubeCracks() and scDehkanPlateauStepOnCrack().
Definition at line 169 of file dehkan_plateau.c.
FLAG_CRACK_OPENED
#define FLAG_CRACK_OPENED(n) (FLAG_CRACK_OPENED_FIRST + (n))
Referenced by scDehkanPlateauCannonFleesOverCracks(), scDehkanPlateauCannonPoundsLeaderThrough(), scDehkanPlateauCannonPoundsStake(), scDehkanPlateauInitPillars(), scDehkanPlateauInitTightropes() and scDehkanPlateauStepOnCrack().
Definition at line 170 of file dehkan_plateau.c.
FLAG_FELL_THROUGH_FIRST
#define FLAG_FELL_THROUGH_FIRST FLAG_AREA_TEMP(0x20)
The crack the party fell through, one flag for each landing entrance from
FIRST_LANDING_ENTRANCE, for the landing drawn below it.
Referenced by scDehkanPlateauForgetFall().
Definition at line 173 of file dehkan_plateau.c.
FLAG_FELL_THROUGH_LAST
#define FLAG_FELL_THROUGH_LAST FLAG_AREA_TEMP(0x5f)
Referenced by scDehkanPlateauForgetFall().
Definition at line 174 of file dehkan_plateau.c.
FIRST_LANDING_ENTRANCE
#define FIRST_LANDING_ENTRANCE 11
Referenced by scDehkanPlateauInitCaves() and scDehkanPlateauInitPoundCube().
Definition at line 175 of file dehkan_plateau.c.
LAST_LANDING_ENTRANCE
#define LAST_LANDING_ENTRANCE 39
Referenced by scDehkanPlateauInitCannon() and scDehkanPlateauInitCaves().
Definition at line 176 of file dehkan_plateau.c.
FLAG_FELL_THROUGH
#define FLAG_FELL_THROUGH(entrance)
Referenced by scDehkanPlateauInitCaves(), scDehkanPlateauInitPoundCube() and scDehkanPlateauStepOnCrack().
Definition at line 177 of file dehkan_plateau.c.
POUND_CUBE_LANDINGS_FROM
#define POUND_CUBE_LANDINGS_FROM 17
Entrances from these up land a fall: the Pound Cube room's 36 and 37, and Cannon's room's 8 to 23.
Referenced by scDehkanPlateauInitPoundCube().
Definition at line 181 of file dehkan_plateau.c.
CANNON_ROOM_LANDINGS_FROM
#define CANNON_ROOM_LANDINGS_FROM 6
Referenced by scDehkanPlateauInitCannon().
Definition at line 182 of file dehkan_plateau.c.
CUE_ENTRANCE_FIRST_CRACK
#define CUE_ENTRANCE_FIRST_CRACK 11
The step code of each room's first crack, its list's first row; the rest follow in order, and a fall leaves by the exit of its crack's code.
Referenced by DehkanPlateauEntranceCues and scDehkanPlateauStepOnCrack().
Definition at line 186 of file dehkan_plateau.c.
CUE_PILLARS_FIRST_CRACK
#define CUE_PILLARS_FIRST_CRACK 14
Referenced by DehkanPlateauPillarsCues and scDehkanPlateauStepOnCrack().
Definition at line 187 of file dehkan_plateau.c.
CUE_TIGHTROPES_FIRST_CRACK
#define CUE_TIGHTROPES_FIRST_CRACK 12
Referenced by DehkanPlateauTightropesCues and scDehkanPlateauStepOnCrack().
Definition at line 188 of file dehkan_plateau.c.
CUE_POUND_CUBE_FIRST_CRACK
#define CUE_POUND_CUBE_FIRST_CRACK 18
Referenced by DehkanPlateauPoundCubeCues and scDehkanPlateauStepOnCrack().
Definition at line 189 of file dehkan_plateau.c.
CUE_POUND_CUBE_CANNON_CRACK
#define CUE_POUND_CUBE_CANNON_CRACK (CUE_POUND_CUBE_FIRST_CRACK + 5)
The Pound Cube's cave's crack Cannon Pounds the leader through, its sixth.
Referenced by DehkanPlateauPoundCubeCues and scDehkanPlateauCannonPoundsLeaderThrough().
Definition at line 191 of file dehkan_plateau.c.
CUE_TIGHTROPES_PILLARS_WEST
#define CUE_TIGHTROPES_PILLARS_WEST 11
The rope bridge's stretch's step code that runs
scDehkanPlateauStepOnTightropesPillars on walking west, which a vine pillar
pushed beside the crumbling pillars takes.
Referenced by DehkanPlateauTightropesCues, scDehkanPlateauInitTightropes() and scDehkanPlateauPlaceVinePillar().
Definition at line 195 of file dehkan_plateau.c.
FALL_TICKS
#define FALL_TICKS 40
The ticks the leader takes to sink through a crack.
Referenced by scDehkanPlateauCannonPoundsLeaderThrough() and scDehkanPlateauStepOnCrack().
Definition at line 318 of file dehkan_plateau.c.
EFFECT_SET_MODE
#define EFFECT_SET_MODE fdActorSelectAnimation
Referenced by EFFECT_SPAWN.
Definition at line 356 of file dehkan_plateau.c.
EFFECT_SET_SCRIPT
#define EFFECT_SET_SCRIPT fdActorStartScript
Referenced by EFFECT_SPAWN.
Definition at line 357 of file dehkan_plateau.c.
DEFINE_DEHKAN_PLATEAU_RESTORE_CRACKS
#define DEFINE_DEHKAN_PLATEAU_RESTORE_CRACKS(name, cracks, count, pictures)
Defines a function that restores a stretch's count cracks, listed in cracks and drawn open with pictures: on a return the opened ones are drawn open; otherwise each crack listed as cracked sets its flag, and the fall is forgotten.
Definition at line 758 of file dehkan_plateau.c.
DEFINE_DEHKAN_PLATEAU_DRAW_FALL_LANDING
#define DEFINE_DEHKAN_PLATEAU_DRAW_FALL_LANDING(name,
Defines a function that draws, in a cave below the cracks, where the party
landed under the crack it fell through (DehkanPlateauFallLandingMetatiles):
the floor metatile from (sourceX, sourceZ), a column of five metatiles from
(columnSourceX, columnSourceZ), and four metatiles from (sourceX,
belowSourceZ), belowOffsetZ rows below that column on the lower layer.
The second crack's shaft of light starts a row lower: its * top metatile takes the shaft's second picture, the caves' * (67, 4).
Definition at line 2113 of file dehkan_plateau.c.
Enumerations in detail
DEHKAN_PLATEAU_ENTRANCE_ACTOR_ID
enum DEHKAN_PLATEAU_ENTRANCE_ACTOR_ID
The first stretch, where cracks drop the party to the caves below.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_ENTRANCE_FIRST_CRUMBLING_PILLAR | ACTOR_FIRST_PLACED | |
ACTOR_ENTRANCE_STAKE | ACTOR_FIRST_PLACED + 3 | |
ACTOR_ENTRANCE_PILLAR | The stone pillar Moved over the edge into the gap below. | |
ACTOR_ENTRANCE_FIRST_BLOCK | ||
ACTOR_FULL_METAL_VEST_CHEST | 64 |
Definition at line 57 of file dehkan_plateau.c.
DEHKAN_PLATEAU_PILLARS_ACTOR_ID
enum DEHKAN_PLATEAU_PILLARS_ACTOR_ID
The pillars stretch, where Cannon is first seen and flees over the cracks.
Its first three placements are the out-of-sight stand-ins its crumbling
pillars share (ACTOR_PILLAR_STAND_IN).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_PILLARS_FIRST_CRUMBLING_PILLAR | ACTOR_FIRST_PLACED + 3 | |
ACTOR_PILLARS_STAKE | ACTOR_FIRST_PLACED + 14 | |
ACTOR_PILLARS_STONE_PILLAR | The stone pillar Moved into the gap. | |
ACTOR_PILLARS_CANNON | ||
ACTOR_PILLARS_FIRST_BLOCK |
Definition at line 70 of file dehkan_plateau.c.
DEHKAN_PLATEAU_TIGHTROPES_ACTOR_ID
enum DEHKAN_PLATEAU_TIGHTROPES_ACTOR_ID
The rope bridge's stretch, of tightropes, a rope to Lash and the crumbling pillars Cannon leaps across.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_TIGHTROPES_FIRST_TIGHTROPE_WEST_POST | ACTOR_FIRST_PLACED | The posts at the ends of the two tightropes, and of the rope, whose low post Lash ties it from. |
ACTOR_TIGHTROPES_FIRST_TIGHTROPE_EAST_POST | ||
ACTOR_TIGHTROPES_SECOND_TIGHTROPE_WEST_POST | ||
ACTOR_TIGHTROPES_SECOND_TIGHTROPE_EAST_POST | ||
ACTOR_TIGHTROPES_ROPE_LOW_POST | ||
ACTOR_TIGHTROPES_ROPE_HIGH_POST | ||
ACTOR_TIGHTROPES_FIRST_VINE_PILLAR | The four stone pillars wrapped in vines, which the leader climbs and pushes or Moves into the gaps. | |
ACTOR_TIGHTROPES_SECOND_VINE_PILLAR | ||
ACTOR_TIGHTROPES_THIRD_VINE_PILLAR | ||
ACTOR_TIGHTROPES_FOURTH_VINE_PILLAR | ||
ACTOR_TIGHTROPES_STAKE | The stake Cannon Pounds down as he flees. | |
ACTOR_TIGHTROPES_PILLAR | The stone pillar Moved on the raised ground. | |
ACTOR_TIGHTROPES_SECOND_PILLAR | The stone pillar at the foot of the cliff, pushed off the vine behind it. | |
ACTOR_TIGHTROPES_FIRST_CRUMBLING_PILLAR | ||
ACTOR_TIGHTROPES_CANNON | ACTOR_FIRST_PLACED + 17 | |
ACTOR_TIGHTROPES_FIRST_BLOCK |
Definition at line 82 of file dehkan_plateau.c.
DEHKAN_PLATEAU_CAVES_ACTOR_ID
enum DEHKAN_PLATEAU_CAVES_ACTOR_ID
The caves below the cracks, with the Mint's chest.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_CAVES_FIRST_BLOCK | ACTOR_FIRST_PLACED |
Definition at line 109 of file dehkan_plateau.c.
DEHKAN_PLATEAU_POUND_CUBE_ACTOR_ID
enum DEHKAN_PLATEAU_POUND_CUBE_ACTOR_ID
The Pound Cube's cave, where a fall lands the leader beside Cannon and he drops the Pound Cube.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_POUND_CUBE_STAKE | ACTOR_FIRST_PLACED | |
ACTOR_POUND_CUBE_CANNON |
Definition at line 116 of file dehkan_plateau.c.
DEHKAN_PLATEAU_CANNON_ACTOR_ID
enum DEHKAN_PLATEAU_CANNON_ACTOR_ID
Cannon's cave, where Cannon is cornered behind the stake and fights.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_CANNON_ROOM_STAKE | ACTOR_FIRST_PLACED | |
ACTOR_CANNON_ROOM_CRUMBLING_PILLAR | ||
ACTOR_CANNON_ROOM_FIRST_BLOCK | ||
ACTOR_CANNON | ACTOR_FIRST_PLACED + 8 |
Definition at line 123 of file dehkan_plateau.c.
anonymous enum
enum { ENTRANCE_BLOCK_COUNT, PILLARS_BLOCK_COUNT, TIGHTROPES_BLOCK_COUNT, CAVES_BLOCK_COUNT, … }
The unseen blocks of each room (scActorsSetDrawn, scActorHide).
| Enumerator | Value | Description |
|---|---|---|
ENTRANCE_BLOCK_COUNT | 14 | |
PILLARS_BLOCK_COUNT | 13 | |
TIGHTROPES_BLOCK_COUNT | 10 | |
CAVES_BLOCK_COUNT | 3 | |
CANNON_ROOM_BLOCK_COUNT | 6 |
Definition at line 132 of file dehkan_plateau.c.
DEHKAN_PLATEAU_ENTRANCE_METATILE_BEHAVIOR
enum DEHKAN_PLATEAU_ENTRANCE_METATILE_BEHAVIOR
The metatiles that run the rooms' scripts. Each room numbers its own; a metatile that leads out of a room has its exit's number instead, and the cracks follow from the step codes above.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_ENTRANCE_BLOCKS_ON | 6 | The foot of the cliff where the |
METATILE_BEHAVIOR_ENTRANCE_BLOCKS_OFF | unseen blocks start to be drawn, metatiles (34, 13) to (34, 18), and the metatiles beside it where they stop, (35, 13) to (35, 18). | |
METATILE_BEHAVIOR_ENTRANCE_PILLARS | 9 | The three gray pillars, which crack and crumble under Felix: metatiles (37, 14), (41, 14), (36, 17), (40, 17), (41, 18) and (45, 18). |
METATILE_BEHAVIOR_ENTRANCE_OFF_CRACK | The ground round the cracks: stepping off one lets it be stepped on again. |
Definition at line 200 of file dehkan_plateau.c.
DEHKAN_PLATEAU_PILLARS_METATILE_BEHAVIOR
enum DEHKAN_PLATEAU_PILLARS_METATILE_BEHAVIOR
The pillars stretch.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_PILLARS_BLOCKS_ON | 6 | |
METATILE_BEHAVIOR_PILLARS_BLOCKS_OFF | ||
METATILE_BEHAVIOR_PILLARS_CRUMBLING_PILLAR_FROM_EAST | The gray pillars: metatile (15, 17), which runs only as Felix walks west, then the rest. | |
METATILE_BEHAVIOR_PILLARS_CRUMBLING_PILLARS | ||
METATILE_BEHAVIOR_PILLARS_OFF_CRACK | ||
METATILE_BEHAVIOR_CANNON_FLEES_OVER_CRACKS | 30 | Where Felix first sees |
METATILE_BEHAVIOR_CANNON_FLEES_EAST | Cannon, in the cracked field, metatiles (39, 13) to (41, 14), and where Cannon runs off east, (56, 13) to (59, 13). |
Definition at line 220 of file dehkan_plateau.c.
DEHKAN_PLATEAU_TIGHTROPES_METATILE_BEHAVIOR
enum DEHKAN_PLATEAU_TIGHTROPES_METATILE_BEHAVIOR
The rope bridge's stretch.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_TIGHTROPES_BLOCKS_ON | 7 | |
METATILE_BEHAVIOR_TIGHTROPES_BLOCKS_OFF | ||
METATILE_BEHAVIOR_TIGHTROPES_SECOND_PILLAR | East of the second stone pillar, metatile (39, 33), walking west into it. | |
METATILE_BEHAVIOR_TIGHTROPES_PILLARS | The gray pillars, metatiles (39, 17), (43, 17), (48, 20) and (52, 20), and the metatiles that run the same step only as Felix walks east, (44, 10), or south, (46, 8); CUE_TIGHTROPES_PILLARS_WEST is the one for walking west. | |
METATILE_BEHAVIOR_TIGHTROPES_PILLARS_FROM_WEST | 26 | |
METATILE_BEHAVIOR_TIGHTROPES_PILLARS_FROM_NORTH | ||
METATILE_BEHAVIOR_VINE_PILLAR_EAST | 20 | Beside a vine pillar, walking |
METATILE_BEHAVIOR_VINE_PILLAR_WEST | east or west into it: west of them, metatiles (16..17, 16), (39..40, 20) and (53..54, 20); east of them, (14..15, 11), (19..20, 16), (42..43, 20) and (56..57, 20). | |
METATILE_BEHAVIOR_CANNON_LEAPS_AWAY | 30 | Where Cannon leaps away along the rope bridge, metatiles (6, 6) and (7, 6); where he Pounds the stake, (23, 6) or (25, 16) to (27, 17); and where he leaps across the gray pillars, (36, 12) to (36, 16), (35, 16) and (35, 17). |
METATILE_BEHAVIOR_CANNON_POUNDS_STAKE | ||
METATILE_BEHAVIOR_CANNON_CRACKS_PILLARS |
Definition at line 240 of file dehkan_plateau.c.
DEHKAN_PLATEAU_CAVES_METATILE_BEHAVIOR
enum DEHKAN_PLATEAU_CAVES_METATILE_BEHAVIOR
The caves below the cracks.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_CAVES_BLOCKS_ON | 8 | |
METATILE_BEHAVIOR_CAVES_BLOCKS_OFF |
Definition at line 272 of file dehkan_plateau.c.
DEHKAN_PLATEAU_POUND_CUBE_METATILE_BEHAVIOR
enum DEHKAN_PLATEAU_POUND_CUBE_METATILE_BEHAVIOR
The Pound Cube's cave.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_POUND_CUBE | 12 | Where the Pound Cube lies once Cannon has dropped it, metatile (15, 5), copied there from the spare metatile (0, 0). |
Definition at line 279 of file dehkan_plateau.c.
DEHKAN_PLATEAU_CANNON_METATILE_BEHAVIOR
enum DEHKAN_PLATEAU_CANNON_METATILE_BEHAVIOR
Cannon's cave.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_CANNON_ROOM_BLOCKS_ON | 5 | |
METATILE_BEHAVIOR_CANNON_ROOM_BLOCKS_OFF | ||
METATILE_BEHAVIOR_CANNON_ROOM_PILLAR | 8 | The gray pillar. |
METATILE_BEHAVIOR_LOWER_FLOOR | The lower floor below the | |
METATILE_BEHAVIOR_OFF_LOWER_FLOOR | ledge, metatiles (43, 16) to (43, 18), and the metatiles off it, (44, 16) to (44, 18) and (52, 15) to (54, 15). | |
METATILE_BEHAVIOR_LEDGE_TO_CANNON | The ledge toward Cannon, metatiles (43, 12) and (43, 13). |
Definition at line 287 of file dehkan_plateau.c.
anonymous enum
enum { ANIM_STONE_STAKE_STANDING, ANIM_STONE_STAKE_SUNK }
The stone stake's two looks in stake.png (fdActorSetMetatileOpen).
| Enumerator | Value | Description |
|---|---|---|
ANIM_STONE_STAKE_STANDING | 3 | |
ANIM_STONE_STAKE_SUNK |
Definition at line 304 of file dehkan_plateau.c.
anonymous enum
enum { ENTRANCE_PILLARS_WEST_SCREEN }
Coming in by this entrance, from the pillars stretch's east screen into its west one, the leader is drawn behind the ledge there.
| Enumerator | Value | Description |
|---|---|---|
ENTRANCE_PILLARS_WEST_SCREEN | 5 |
Definition at line 312 of file dehkan_plateau.c.
anonymous enum
enum { ENTRANCE_CRACKS, PILLARS_CRACKS, TIGHTROPES_CRACKS, POUND_CUBE_CRACKS }
The cracks of each room's list.
| Enumerator | Value | Description |
|---|---|---|
ENTRANCE_CRACKS | 14 | |
PILLARS_CRACKS | 8 | |
TIGHTROPES_CRACKS | 6 | |
POUND_CUBE_CRACKS | 16 |
Definition at line 321 of file dehkan_plateau.c.
anonymous enum
enum { POUND_CUBE_WEST_UPPER_CRACK, POUND_CUBE_EAST_UPPER_CRACK, JOINED_HOLE }
The Pound Cube's cave's two cracks that have another just south of them, the
next in its list; once both are open, the hole drawn below is JOINED_HOLE of
DehkanPlateauPoundCubeHolePictures in place of its own.
| Enumerator | Value | Description |
|---|---|---|
POUND_CUBE_WEST_UPPER_CRACK | 0 | |
POUND_CUBE_EAST_UPPER_CRACK | 11 | |
JOINED_HOLE | 4 |
Definition at line 332 of file dehkan_plateau.c.
Functions in detail
scDehkanPlateauLeaveLowerPath
void scDehkanPlateauLeaveLowerPath(void)
Nothing visible happens when Felix steps off the lower floor of Cannon's cave (metatiles (44, 16) to (44, 18), or (52, 15) to (54, 15)) before the stake is Pounded: the game gives the stake's metatile back its own attributes.
References fdMapGridCopyMetatileAttributes(), syGameFlagClear() and syGameFlagGet().
Referenced by DehkanPlateauCannonCues and scDehkanPlateauStepOnCannonPillar().
Definition at lines 342 and 1304 of file dehkan_plateau.c.
scDehkanPlateauForgetFall
void scDehkanPlateauForgetFall(void)
Forgets which crack the party fell through.
References Sint32 and syGameFlagClear().
Referenced by scDehkanPlateauInitCaves() and scDehkanPlateauInitPoundCube().
Definition at lines 343 and 740 of file dehkan_plateau.c.
scDehkanPlateauFightCannon
void scDehkanPlateauFightCannon(void)
Talking to Cannon in his cave starts the battle with him.
References fdRequestDjinnBattle() and syGameFlagSet().
Referenced by DehkanPlateauCannonCues.
Definition at line 377 of file dehkan_plateau.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 383 of file dehkan_plateau.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
Definition at line 388 of file dehkan_plateau.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 393 of file dehkan_plateau.c.
scGetActorPlacements
const Uint8 *scGetActorPlacements(void)
References DehkanPlateauCannonPlacements, DehkanPlateauCavesPlacements, DehkanPlateauEntrancePlacements, DehkanPlateauPillarsPlacements, DehkanPlateauPlacements, DehkanPlateauPoundCubePlacements, DehkanPlateauTightropesPlacements and MainRoutineStateWork.
Definition at line 413 of file dehkan_plateau.c.
scGetCues
const CUE *scGetCues(void)
References DehkanPlateauCannonCues, DehkanPlateauCavesCues, DehkanPlateauCues, DehkanPlateauEntranceCues, DehkanPlateauPillarsCues, DehkanPlateauPoundCubeCues, DehkanPlateauTightropesCues and MainRoutineStateWork.
Definition at line 432 of file dehkan_plateau.c.
scDehkanPlateauStepOnEntrancePillars
void scDehkanPlateauStepOnEntrancePillars(void)
Felix steps onto one of the three gray pillars of the first stretch: the first step cracks it, and the next crumbles it under him.
References DehkanPlateauEntranceCrumblingPillars and scCrumblingPillarStep().
Referenced by DehkanPlateauEntranceCues.
Definition at line 453 of file dehkan_plateau.c.
scDehkanPlateauSetPillarsStandingPillarMetatiles
void scDehkanPlateauSetPillarsStandingPillarMetatiles(void)
Gives the metatiles of four of the pillars stretch's crumbling pillars, while each stands, the attributes of metatile (0, 0).
References fdMapGridCopyMetatileAttributes() and syGameFlagGet().
Referenced by scDehkanPlateauInitPillars() and scDehkanPlateauStepOnPillarsCrumblingPillars().
Definition at line 460 of file dehkan_plateau.c.
scDehkanPlateauStepOnPillarsCrumblingPillars
void scDehkanPlateauStepOnPillarsCrumblingPillars(void)
Felix steps onto one of the gray pillars of the pillars stretch, which cracks and then crumbles as in the first; on the low ones he is drawn behind the ledge.
References DehkanPlateauPillarsCrumblingPillars, fdActorGetById(), fdActorSetSpritePriority(), MainRoutineStateWork, scCrumblingPillarStepWithStandIn() and scDehkanPlateauSetPillarsStandingPillarMetatiles().
Referenced by DehkanPlateauPillarsCues.
Definition at line 475 of file dehkan_plateau.c.
scDehkanPlateauSetTightropesStandingPillarMetatiles
void scDehkanPlateauSetTightropesStandingPillarMetatiles(void)
The same for two of the rope bridge's stretch's crumbling pillars, from metatile (63, 0).
References fdMapGridCopyMetatileAttributes() and syGameFlagGet().
Referenced by scDehkanPlateauInitTightropes() and scDehkanPlateauStepOnTightropesPillars().
Definition at line 492 of file dehkan_plateau.c.
scDehkanPlateauStepOnTightropesPillars
void scDehkanPlateauStepOnTightropesPillars(void)
Felix steps onto one of the gray pillars of the rope bridge's stretch, which cracks and then crumbles; below the ledge he is drawn behind it.
References DehkanPlateauTightropesCrumblingPillars, fdActorGetById(), fdActorSetSpritePriority(), MainRoutineStateWork, scCrumblingPillarStep() and scDehkanPlateauSetTightropesStandingPillarMetatiles().
Referenced by DehkanPlateauTightropesCues.
Definition at line 502 of file dehkan_plateau.c.
scDehkanPlateauStepOnCannonPillar
void scDehkanPlateauStepOnCannonPillar(void)
Felix steps onto the gray pillar in Cannon's cave, which cracks and then
crumbles; once he is up on it he no longer counts as on the cave's lower
floor (scDehkanPlateauLeaveLowerPath).
References DehkanPlateauCannonCrumblingPillar, fdActorGetById(), MainRoutineStateWork, scCrumblingPillarStep() and scDehkanPlateauLeaveLowerPath().
Referenced by DehkanPlateauCannonCues.
Definition at line 518 of file dehkan_plateau.c.
scDehkanPlateauSetBlocksShown
void scDehkanPlateauSetBlocksShown(Sint32 show)
Draws (show 1) or stops drawing the unseen blocks of the room the party is
in. Nothing on screen changes either way: the blocks wear SPRITE_UNSEEN_BLOCK
in SPRITE_COLOR_HIDDEN, colour 0 in every pixel, and photos of the first
stretch from entrances 0 and 7, with its blocks drawn and with them hidden,
are the same pixel for pixel.
References MainRoutineStateWork, scActorsSetDrawn() and Sint32.
Referenced by scDehkanPlateauHideBlocks() and scDehkanPlateauShowBlocks().
Definition at line 533 of file dehkan_plateau.c.
scDehkanPlateauShowBlocks
void scDehkanPlateauShowBlocks(void)
Felix steps onto the foot of a cliff in one of five rooms: the room's unseen
blocks are drawn again, and noted shown. In the first stretch these steps lie
on the ways onto the terrace south of the pillars, each beside one that stops
drawing them (scDehkanPlateauHideBlocks), and the blocks stand on the terrace
between metatiles (38, 25) and (46, 21), see-through and without collision
(scActorHide).
References scDehkanPlateauSetBlocksShown() and syGameFlagSet().
Referenced by DehkanPlateauCannonCues, DehkanPlateauCavesCues, DehkanPlateauEntranceCues, DehkanPlateauPillarsCues and DehkanPlateauTightropesCues.
Definition at line 558 of file dehkan_plateau.c.
scDehkanPlateauHideBlocks
void scDehkanPlateauHideBlocks(void)
Felix steps onto the metatiles beside those of scDehkanPlateauShowBlocks
while the blocks are drawn (in the first stretch, (35, 13) to (35, 18)): the
room's unseen blocks stop being drawn.
References scDehkanPlateauSetBlocksShown() and syGameFlagClear().
Referenced by DehkanPlateauCannonCues, DehkanPlateauCavesCues, DehkanPlateauEntranceCues, DehkanPlateauPillarsCues, DehkanPlateauTightropesCues and scDehkanPlateauRestoreBlocks().
Definition at line 567 of file dehkan_plateau.c.
scDehkanPlateauPoundEntranceStake
void scDehkanPlateauPoundEntranceStake(Sint32 mode, Sint32 frame)
Pound on the stake in the first stretch sinks it into the ground.
References DehkanPlateauEntranceStakes, fdPoundSinkTarget() and Sint32.
Referenced by DehkanPlateauEntranceCues.
Definition at line 576 of file dehkan_plateau.c.
scDehkanPlateauPoundPillarsStake
void scDehkanPlateauPoundPillarsStake(Sint32 mode, Sint32 frame)
Pound on the stake in the pillars stretch sinks it into the ground.
References DehkanPlateauPillarsStakes, fdPoundSinkTarget() and Sint32.
Referenced by DehkanPlateauPillarsCues.
Definition at line 582 of file dehkan_plateau.c.
scDehkanPlateauPoundTightropesStake
void scDehkanPlateauPoundTightropesStake(Sint32 mode, Sint32 frame)
Pound on the stake by the rope bridge, if Cannon has not already sunk it, sinks it into the ground.
References DehkanPlateauTightropesStakes, fdPoundSinkTarget() and Sint32.
Referenced by DehkanPlateauTightropesCues.
Definition at line 589 of file dehkan_plateau.c.
scDehkanPlateauPoundPoundCubeStake
void scDehkanPlateauPoundPoundCubeStake(Sint32 mode, Sint32 frame)
Pound on the stake in the cave where Cannon drops the Pound Cube sinks it into the ground.
References DehkanPlateauPoundCubeStakes, fdPoundSinkTarget() and Sint32.
Referenced by DehkanPlateauPoundCubeCues.
Definition at line 596 of file dehkan_plateau.c.
scDehkanPlateauPoundCannonStake
void scDehkanPlateauPoundCannonStake(Sint32 mode, Sint32 frame)
Pound on the stake in Cannon's cave, from the lower floor below his ledge, sinks it into the ground: with it gone Cannon has nothing to leap onto and is cornered.
References DehkanPlateauCannonStakes, fdPoundSinkTarget() and Sint32.
Referenced by DehkanPlateauCannonCues.
Definition at line 604 of file dehkan_plateau.c.
scDehkanPlateauDropEntrancePillarIntoGap
void scDehkanPlateauDropEntrancePillarIntoGap(void)
Moved or pushed to the gap's edge in the first stretch, the stone pillar
drops into the gap and stays there, bridging it
(FLAG_ENTRANCE_PILLAR_IN_GAP).
References fdActorDropAndWait(), fdActorGetById(), fdMapCopyMetatileAttributeRect(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), Sint32 and syGameFlagSet().
Referenced by DehkanPlateauEntranceCues.
Definition at line 614 of file dehkan_plateau.c.
scDehkanPlateauLiftPillarsStonePillar
void scDehkanPlateauLiftPillarsStonePillar(void)
Move takes hold of the pillars stretch's stone pillar.
References DehkanPlateauPillarsBlocks and fdActorLiftTargetBlock().
Referenced by DehkanPlateauPillarsCues.
Definition at line 632 of file dehkan_plateau.c.
scDehkanPlateauPlacePillarsStonePillar
void scDehkanPlateauPlacePillarsStonePillar(void)
Moved or pushed to the gap's edge in the pillars stretch, the stone pillar
drops into the gap for good, bridging it (FLAG_PILLARS_STONE_PILLAR_PLACED).
References fdActorDropAndWait(), fdActorGetById(), fdActorPlaceMovedBlock(), fdMapCopyMetatileAttributeRect(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), Sint32, syGameFlagSet() and sySynch().
Referenced by DehkanPlateauPillarsCues.
Definition at line 639 of file dehkan_plateau.c.
scDehkanPlateauLiftTightropesPillar
void scDehkanPlateauLiftTightropesPillar(void)
Move takes hold of the rope bridge's stretch's stone pillar.
References DehkanPlateauTightropesPillars and fdActorLiftTargetBlock().
Referenced by DehkanPlateauTightropesCues.
Definition at line 659 of file dehkan_plateau.c.
scDehkanPlateauPlaceTightropesPillar
void scDehkanPlateauPlaceTightropesPillar(void)
Moved or pushed to the gap's edge on the raised ground of the rope bridge's stretch, the stone pillar drops into the gap below.
References fdActorDropAndWait(), fdActorGetById(), fdActorPlaceMovedBlock(), fdActorSetSpritePriority(), fdMapCopyMetatileAttributeRect(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), Sint32 and sySynch().
Referenced by DehkanPlateauTightropesCues.
Definition at line 666 of file dehkan_plateau.c.
scDehkanPlateauSetTightropesSecondPillarInPlace
void scDehkanPlateauSetTightropesSecondPillarInPlace(void)
Puts the rope bridge's stretch's second stone pillar a column west, off the vine it stood before, with the metatiles that let it be walked over and the vine climbed.
References fdMapGridCopyMetatileAttributes() and syGameFlagSet().
Referenced by scDehkanPlateauInitTightropes(), scDehkanPlateauMoveTightropesSecondPillar() and scDehkanPlateauPushTightropesSecondPillar().
Definition at line 692 of file dehkan_plateau.c.
scDehkanPlateauMoveTightropesSecondPillar
void scDehkanPlateauMoveTightropesSecondPillar(void)
Move on the rope bridge's stretch's second stone pillar: a column west, it settles there.
References fdActorGetById() and scDehkanPlateauSetTightropesSecondPillarInPlace().
Referenced by DehkanPlateauTightropesCues.
Definition at line 703 of file dehkan_plateau.c.
scDehkanPlateauPushTightropesSecondPillar
void scDehkanPlateauPushTightropesSecondPillar(void)
Walking west into the rope bridge's stretch's second stone pillar pushes it a column west.
References fdActorGetById(), fdLeaderPushObjectAhead(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, scDehkanPlateauSetTightropesSecondPillarInPlace() and sySynch().
Referenced by DehkanPlateauTightropesCues.
Definition at line 712 of file dehkan_plateau.c.
scDehkanPlateauStepOffCrack
void scDehkanPlateauStepOffCrack(void)
Stepping off a crack opened on this visit lets it be stepped on again.
References syGameFlagClear().
Referenced by DehkanPlateauEntranceCues and DehkanPlateauPillarsCues.
Definition at line 734 of file dehkan_plateau.c.
scDehkanPlateauRestoreEntranceCracks
DEFINE_DEHKAN_PLATEAU_RESTORE_CRACKS(scDehkanPlateauRestoreEntranceCracks, DehkanPlateauEntranceCracks, ENTRANCE_CRACKS, DehkanPlateauEntranceCrackPictures)
Restores the first stretch's fourteen cracks: on a return the opened ones are drawn open, otherwise each listed crack starts its flag.
Referenced by scDehkanPlateauInitEntrance().
Definition at line 793 of file dehkan_plateau.c.
scDehkanPlateauRestorePillarsCracks
DEFINE_DEHKAN_PLATEAU_RESTORE_CRACKS(scDehkanPlateauRestorePillarsCracks, DehkanPlateauPillarsCracks, PILLARS_CRACKS, DehkanPlateauPillarsCrackPictures)
Restores the pillars stretch's eight cracks, as the first stretch's.
Referenced by scDehkanPlateauInitPillars().
Definition at line 802 of file dehkan_plateau.c.
scDehkanPlateauRestoreTightropesCracks
DEFINE_DEHKAN_PLATEAU_RESTORE_CRACKS(scDehkanPlateauRestoreTightropesCracks, DehkanPlateauTightropesCracks, TIGHTROPES_CRACKS, DehkanPlateauTightropesCrackPictures)
Restores the rope bridge's stretch's six cracks, as the first stretch's.
Referenced by scDehkanPlateauInitTightropes().
Definition at line 811 of file dehkan_plateau.c.
scDehkanPlateauRestorePoundCubeCracks
void scDehkanPlateauRestorePoundCubeCracks(void)
As the other rooms' (DEFINE_DEHKAN_PLATEAU_RESTORE_CRACKS) for the Pound
Cube's cave's sixteen cracks.
References DehkanPlateauPoundCubeCrackPictures, DehkanPlateauPoundCubeCracks, fdMapGridCopyMetatileTilesIndicesRect(), Sint32, syGameFlagGet() and syGameFlagSet().
Referenced by scDehkanPlateauInitPoundCube().
Definition at line 818 of file dehkan_plateau.c.
scDehkanPlateauStepOnCrack
void scDehkanPlateauStepOnCrack(void)
Felix steps onto a crack in one of the three stretches outside or in the Pound Cube's cave, and is set in the middle of its metatile. A whole crack cracks open under him with a rattle. One already open gives way: he raises his arms and sinks through it, the screen closes in on him, and he drops into the cave below, by the exit of the crack's number.
References DehkanPlateauCrackX, DehkanPlateauCrackZ, DehkanPlateauDroppedPoundCube, DehkanPlateauEntranceCrackPictures, DehkanPlateauEntranceCracks, DehkanPlateauEntranceHolePictures, DehkanPlateauPillarsCrackPictures, DehkanPlateauPillarsCracks, DehkanPlateauPillarsHolePictures, DehkanPlateauPoundCubeCrackPictures, DehkanPlateauPoundCubeCracks, DehkanPlateauPoundCubeHolePictures, DehkanPlateauTightropesCrackPictures, DehkanPlateauTightropesCracks, DehkanPlateauTightropesHolePictures, fdActorGetById(), fdActorMoveToAndWaitById(), fdActorSetAnimationById(), fdActorSetPosAndResetMotion(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdCameraGetActor(), fdMapGridCopyMetatileTilesIndicesRect(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptWait(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, Sint32, syGameFlagGet(), syGameFlagSet(), syImportScriptSetExitRequest(), sySoundPlay() and sySynch().
Referenced by DehkanPlateauEntranceCues, DehkanPlateauPillarsCues, DehkanPlateauPoundCubeCues and DehkanPlateauTightropesCues.
Definition at line 864 of file dehkan_plateau.c.
scDehkanPlateauForgetCrackOnLeaving
void scDehkanPlateauForgetCrackOnLeaving(void)
The rope bridge's stretch's and the Pound Cube's cave's event: once the leader steps off the crack he opened, it can be stepped on again.
References DehkanPlateauCrackX, DehkanPlateauCrackZ, fdActorGetById(), fdScriptGetFlag(), MainRoutineStateWork and syGameFlagClear().
Referenced by scDehkanPlateauInitPoundCube() and scDehkanPlateauInitTightropes().
Definition at line 1126 of file dehkan_plateau.c.
scDehkanPlateauRestoreBlocks
void scDehkanPlateauRestoreBlocks(void)
Back from a battle or a menu, stops drawing the room's unseen blocks again unless they were shown; otherwise notes them shown.
References scDehkanPlateauHideBlocks(), syGameFlagGet() and syGameFlagSet().
Referenced by scDehkanPlateauHideCannonBlocks(), scDehkanPlateauHideCavesBlocks(), scDehkanPlateauHideEntranceBlocks(), scDehkanPlateauHidePillarsBlocks() and scDehkanPlateauHideTightropesBlocks().
Definition at line 1143 of file dehkan_plateau.c.
scDehkanPlateauHideEntranceBlocks
void scDehkanPlateauHideEntranceBlocks(void)
Hides the first stretch's unseen blocks as it opens.
References scActorHide() and scDehkanPlateauRestoreBlocks().
Referenced by scDehkanPlateauInitEntrance().
Definition at line 1157 of file dehkan_plateau.c.
scDehkanPlateauHidePillarsBlocks
void scDehkanPlateauHidePillarsBlocks(void)
Hides the pillars stretch's unseen blocks as it opens.
References scActorHide() and scDehkanPlateauRestoreBlocks().
Referenced by scDehkanPlateauInitPillars().
Definition at line 1167 of file dehkan_plateau.c.
scDehkanPlateauHideTightropesBlocks
void scDehkanPlateauHideTightropesBlocks(void)
Hides the rope bridge's stretch's unseen blocks as it opens.
References scActorHide() and scDehkanPlateauRestoreBlocks().
Referenced by scDehkanPlateauInitTightropes().
Definition at line 1177 of file dehkan_plateau.c.
scDehkanPlateauHideCavesBlocks
void scDehkanPlateauHideCavesBlocks(void)
Hides the unseen blocks of the caves below the cracks as they open.
References scActorHide() and scDehkanPlateauRestoreBlocks().
Referenced by scDehkanPlateauInitCaves().
Definition at line 1187 of file dehkan_plateau.c.
scDehkanPlateauHideCannonBlocks
void scDehkanPlateauHideCannonBlocks(void)
Hides Cannon's cave's unseen blocks as it opens.
References scActorHide() and scDehkanPlateauRestoreBlocks().
Referenced by scDehkanPlateauInitCannon().
Definition at line 1197 of file dehkan_plateau.c.
scDehkanPlateauPlaceVinePillar
void scDehkanPlateauPlaceVinePillar(ACTOR *actor)
Sets the metatiles under a vine pillar of the rope bridge's stretch once it is pushed or Moved: off the ledge at column 12 it drops to the ground below, and at columns 18, 54 and 55 it bridges the way.
References fdActorDropAndWait(), fdActorGetMetatileIndex(), fdMapCopyMetatileAttributeRect(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), scHeldActorRaiseMetatile(), Sint32 and sySynch().
Referenced by scDehkanPlateauFinishMovingVinePillar() and scDehkanPlateauPushVinePillar().
Definition at line 1209 of file dehkan_plateau.c.
scDehkanPlateauPushVinePillar
void scDehkanPlateauPushVinePillar(void)
Walking into one of the rope bridge's stretch's vine pillars pushes it a metatile on.
References DehkanPlateauTightropesVinePillars, fdActorGetById(), fdFindNearbyTalkTarget(), fdLeaderCanPushObjectAhead(), fdLeaderPushObjectAhead(), MainRoutineStateWork, scDehkanPlateauPlaceVinePillar() and scPillarLowerHeldMetatiles().
Referenced by DehkanPlateauTightropesCues.
Definition at line 1250 of file dehkan_plateau.c.
scDehkanPlateauLiftTightropesVinePillar
void scDehkanPlateauLiftTightropesVinePillar(void)
Move takes hold of one of the rope bridge's stretch's vine pillars.
References DehkanPlateauTightropesVinePillars and scPillarLowerHeldMetatiles().
Referenced by DehkanPlateauTightropesCues.
Definition at line 1265 of file dehkan_plateau.c.
scDehkanPlateauFinishMovingVinePillar
void scDehkanPlateauFinishMovingVinePillar(void)
Move lets go of one of the rope bridge's stretch's vine pillars.
References scDehkanPlateauPlaceVinePillar().
Referenced by DehkanPlateauTightropesCues.
Definition at line 1271 of file dehkan_plateau.c.
scDehkanPlateauEnterLowerPath
void scDehkanPlateauEnterLowerPath(void)
Nothing visible happens when Felix steps onto the lower floor of Cannon's
cave, below the ledge (metatiles (43, 16) to (43, 18)), before the stake is
Pounded. The game holds the stake still and gives the stake's metatile (47,
12) the attributes of the gray pillar's (51, 12),
METATILE_BEHAVIOR_CANNON_ROOM_PILLAR with its ground 32 pixels up, so that a
step onto it is answered as one on the pillar
(scDehkanPlateauStepOnCannonPillar). Stepping off the lower floor puts the
metatile back (scDehkanPlateauLeaveLowerPath).
References fdActorGetById(), fdMapGridCopyMetatileAttributes(), Sint32, syGameFlagGet() and syGameFlagSet().
Referenced by DehkanPlateauCannonCues and scDehkanPlateauInitCannon().
Definition at line 1289 of file dehkan_plateau.c.
scDehkanPlateauJoltCamera
void scDehkanPlateauJoltCamera(void)
Jolts the camera down eight pixels and back over eight ticks, as the ground gives way.
References fdCameraGetActor() and sySynch().
Referenced by scDehkanPlateauCannonCracksPillars(), scDehkanPlateauCannonDropsPoundCube(), scDehkanPlateauCannonFleesOverCracks(), scDehkanPlateauCannonPoundsLeaderThrough() and scDehkanPlateauCannonPoundsStake().
Definition at line 1315 of file dehkan_plateau.c.
scActorPlaceFacing
static __inline__ void scActorPlaceFacing(Sint32 id, FIXED x, FIXED z, Uint16 angle)
Places an actor on the ground at a 16.16 position, facing a heading.
References fdActorSetHorizontalPosAndAngleWithTerrain() and Sint32.
Referenced by scDehkanPlateauCannonFleesOverCracks(), scDehkanPlateauCannonLeapsAway(), scDehkanPlateauCannonPoundsStake() and scDehkanPlateauInitPillars().
Definition at line 1330 of file dehkan_plateau.c.
scDehkanPlateauCannonFleesOverCracks
void scDehkanPlateauCannonFleesOverCracks(void)
Felix comes up into the cracked field of the pillars stretch (metatiles (39, 13) to (41, 14)) and sees the Mars Djinni Cannon for the first time: the view pans north to him, he starts, and he runs north across the cracks, cracking one open and breaking through another into a hole, before he hops off to the east.
References fdActorFaceActorById(), fdActorJump(), fdActorShowEmoteById(), fdActorWalkToAndWait(), fdCameraGetActor(), fdCameraWaitForArrival(), fdMapGridCopyMetatileTilesIndicesRect(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, scActorPlaceFacing(), scDehkanPlateauJoltCamera(), syGameFlagSet() and sySoundPlay().
Referenced by DehkanPlateauPillarsCues.
Definition at line 1341 of file dehkan_plateau.c.
scDehkanPlateauCannonFleesEast
void scDehkanPlateauCannonFleesEast(void)
Felix reaches the east end of the pillars stretch (metatiles (56, 13) to (59, 13)): the view pans to Cannon by the cliff's edge, who starts and runs off east out of sight.
References fdActorFaceActorById(), fdActorGetById(), fdActorSetSpritePriority(), fdActorShowEmoteById(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork and syGameFlagSet().
Referenced by DehkanPlateauPillarsCues.
Definition at line 1374 of file dehkan_plateau.c.
scDehkanPlateauCannonLeapsAway
void scDehkanPlateauCannonLeapsAway(void)
Felix comes to the west end of the rope bridge (metatiles (6, 6) and (7, 6)): Cannon, standing on the bridge, starts at the sight of him, leaps along it and runs off east across.
References fdActorFaceActorById(), fdActorGetById(), fdActorSetSpriteFlags(), fdActorShowEmoteById(), fdActorWalkToAndWait(), fdActorWalkToAndWaitById(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, scActorPlaceFacing(), syGameFlagSet() and sySoundPlay().
Referenced by DehkanPlateauTightropesCues.
Definition at line 1399 of file dehkan_plateau.c.
scDehkanPlateauCannonPoundsStake
void scDehkanPlateauCannonPoundsStake(void)
Felix comes near Cannon east of the rope bridge (metatile (23, 6), or from the south at (25, 16) to (27, 17)): Cannon starts, casts Pound on the stake in his way so that a great fist drives it into the ground, and runs on south over it, cracking open a crack behind him.
References fdActorFaceActorById(), fdActorFaceDirectionById(), fdActorShowEmoteById(), fdActorWalkToAndWait(), fdActorWatchAndSetScript(), fdCameraGetActor(), fdCameraWaitForArrival(), fdMapGridCopyMetatileTilesIndicesRect(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, scActorPlaceFacing(), scDehkanPlateauCannonCastsPound(), scDehkanPlateauJoltCamera(), syGameFlagSet() and sySoundPlay().
Referenced by DehkanPlateauTightropesCues.
Definition at line 1429 of file dehkan_plateau.c.
scDehkanPlateauSinkPoundedStake
void scDehkanPlateauSinkPoundedStake(void)
The event of Cannon's Pound in the rope bridge's stretch: the stake sinks, and once the Psynergy ends it is down for good.
References fdActorGetById(), fdActorSetAnimationById(), fdMapGridCopyMetatileAttributes() and syGameFlagSet().
Referenced by scDehkanPlateauCannonCastsPound().
Definition at line 1464 of file dehkan_plateau.c.
scDehkanPlateauCannonCastsPound
void scDehkanPlateauCannonCastsPound(void)
Cannon casts Pound on the rope bridge's stretch's stake.
References fdBattleEffectStopMainActor(), fdPsynergyEnd(), fdPsynergyLoadResources(), fdPsynergyRunHandler(), fdPsynergySetupActorPair(), fdPsynergyStartCast(), scDehkanPlateauSinkPoundedStake(), scFieldSetTickEvent() and syCloseEvent().
Referenced by scDehkanPlateauCannonPoundsStake().
Definition at line 1483 of file dehkan_plateau.c.
scDehkanPlateauCrackPillar
void scDehkanPlateauCrackPillar(Sint32 id, Sint32 standingId, Sint32 flag)
Cracks a crumbling pillar as Cannon lands on it: it flashes white and takes its cracked look, and eight puffs of dust rise about the one standing on it.
References DehkanPlateauDustScript, fdActorGetById(), fdActorSelectAnimation(), fdActorSetAnimationById(), fdActorSetSpriteColor(), fdActorSetSpriteFlags(), fdActorStartScript(), fdEffectAdvanceMotion(), fdScriptWait(), fdSpriteShareVRAMCacheEntry(), Sint32, syGameFlagSet(), syImportActorCreate(), sySoundPlay() and sySynch().
Referenced by scDehkanPlateauCannonCracksLastPillar() and scDehkanPlateauCannonCracksPillars().
Definition at line 1504 of file dehkan_plateau.c.
scDehkanPlateauCannonCracksPillars
void scDehkanPlateauCannonCracksPillars(void)
Felix follows Cannon to the gray pillars east of the rope bridge (metatiles (36, 12) to (36, 16), (35, 16) and (35, 17)): Cannon starts, leaps across the pillars, cracking two as he lands on them, and runs off north over a crack, which opens into a hole as he goes, and he is gone.
References fdActorFaceActorById(), fdActorFaceDirectionAndRefreshById(), fdActorGetById(), fdActorJump(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdActorShowEmoteById(), fdActorStop(), fdActorWalkToAndWait(), fdActorWalkToAndWaitById(), fdActorWatchAndSetScript(), fdCameraGetActor(), fdCameraWaitForArrival(), fdMapGridCopyMetatileTilesIndicesRect(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, scDehkanPlateauCrackPillar(), scDehkanPlateauJoltCamera(), syGameFlagSet() and sySoundPlay().
Referenced by DehkanPlateauTightropesCues.
Definition at line 1560 of file dehkan_plateau.c.
scDehkanPlateauCannonPoundsLeaderThrough
void scDehkanPlateauCannonPoundsLeaderThrough(void)
Felix steps onto the crack south of where the Pound Cube lies, in the cave where Cannon drops it (metatile (15, 8)), before he has fallen in beside Cannon: Cannon starts and casts Pound on him, a great fist slams down, and Felix sinks through the floor and lands in Cannon's cave below.
References fdActorFaceActorById(), fdActorGetById(), fdActorSetAnimationById(), fdActorSetHorizontalPosAndAngleWithTerrain(), fdActorSetSpritePriority(), fdActorShowEmoteById(), fdMapGridCopyMetatileTilesIndicesRect(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptWait(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scDehkanPlateauCannonCastsPoundOnLeader(), scDehkanPlateauJoltCamera(), Sint32, syGameFlagSet(), syImportScriptSetExitRequest(), sySoundPlay() and sySynch().
Referenced by DehkanPlateauPoundCubeCues.
Definition at line 1640 of file dehkan_plateau.c.
scDehkanPlateauPoundLeaderThrough
void scDehkanPlateauPoundLeaderThrough(void)
The event of Cannon's Pound on the leader: the floor under him opens.
References fdActorGetById(), fdActorSetSpriteFlags(), fdMapGridCopyMetatileTilesIndicesRect(), MainRoutineStateWork and sySoundPlay().
Referenced by scDehkanPlateauCannonCastsPoundOnLeader().
Definition at line 1690 of file dehkan_plateau.c.
scDehkanPlateauCannonCastsPoundOnLeader
void scDehkanPlateauCannonCastsPoundOnLeader(void)
Cannon casts Pound on the leader in the Pound Cube's cave.
References fdBattleEffectStopMainActor(), fdPsynergyEnd(), fdPsynergyLoadResources(), fdPsynergyRunHandler(), fdPsynergySetupActorPair(), fdPsynergyStartCast(), MainRoutineStateWork, scDehkanPlateauPoundLeaderThrough(), scFieldSetTickEvent() and syCloseEvent().
Referenced by scDehkanPlateauCannonPoundsLeaderThrough().
Definition at line 1703 of file dehkan_plateau.c.
scDehkanPlateauCannonDropsPoundCube
void scDehkanPlateauCannonDropsPoundCube(void)
Felix falls through a crack in the north of the rope bridge's stretch and lands beside Cannon in the cave below; both bounce apart, Cannon drops the Pound Cube in his fright, glares at Felix and runs off north.
References DehkanPlateauDroppedPoundCube, fdActorFaceDirectionById(), fdActorGetById(), fdActorShowEmoteById(), fdActorWaitForMove(), fdActorWalkToAndWait(), fdMapGridCenterOnFollowedPoint(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scDehkanPlateauJoltCamera(), scFieldActorSetPosAndResetMotion(), syGameFlagSet(), sySoundPlay() and sySynch().
Referenced by scDehkanPlateauInitPoundCube().
Definition at line 1719 of file dehkan_plateau.c.
scDehkanPlateauCannonCracksLastPillar
void scDehkanPlateauCannonCracksLastPillar(void)
While the stake stands, Cannon sees Felix coming along the ledge, leaps onto the stake, then onto the gray pillar beyond it, which flashes and cracks under him, and on to the far ledge, where he waits.
References fdActorFaceActorById(), fdActorGetById(), fdActorSetSpriteFlags(), fdActorShowEmote(), fdActorStop(), fdActorWalkToAndWaitById(), fdActorWatchAndSetScript(), fdCameraGetActor(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, scDehkanPlateauCrackPillar() and sySoundPlay().
Referenced by scDehkanPlateauMeetCannon().
Definition at line 1782 of file dehkan_plateau.c.
scDehkanPlateauCannonCornered
void scDehkanPlateauCannonCornered(void)
Once the stake is down, Cannon sees Felix coming and finds he has nowhere to leap: he looks about him and turns to face Felix.
References fdActorFaceActorById(), fdActorFaceDirectionAndRefreshById(), fdActorFaceDirectionAndWait(), fdActorRunRepeatedMotion(), fdActorShowEmoteById(), fdActorWatchAndSetScript(), fdEffectSetAttached(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptWait() and MainRoutineStateWork.
Referenced by scDehkanPlateauMeetCannon().
Definition at line 1824 of file dehkan_plateau.c.
scDehkanPlateauMeetCannon
void scDehkanPlateauMeetCannon(void)
Felix walks east along the ledge toward Cannon in his cave (metatiles (43, 12) and (43, 13)), once a visit. While the stake stands Cannon leaps away over the stake and the gray pillar, cracking it; once Felix has Pounded the stake into the ground Cannon is cornered and turns to face him.
References scDehkanPlateauCannonCornered(), scDehkanPlateauCannonCracksLastPillar(), syGameFlagGet() and syGameFlagSet().
Referenced by DehkanPlateauCannonCues.
Definition at line 1845 of file dehkan_plateau.c.
scDehkanPlateauTakePoundCube
void scDehkanPlateauTakePoundCube(void)
Felix examines the Pound Cube where Cannon dropped it, north of the crack Cannon Pounds him through (metatile (15, 5)), and takes it.
References DehkanPlateauDroppedPoundCube, fdActorRelease(), fdItemDisplayShowPicture(), fdMapGridCopyMetatileAttributes(), fdPartyInventoryGiveItem(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart() and syGameFlagSet().
Referenced by DehkanPlateauPoundCubeCues.
Definition at line 1856 of file dehkan_plateau.c.
scDehkanPlateauLeaveRoom
void scDehkanPlateauLeaveRoom(void)
Felix walks into a cave mouth in the cliff of the first stretch (map metatile (84, 21)) or of the pillars stretch (metatile (113, 12)): the exit sound plays, the screen fades to black, and he comes out in the caves below the cracks. Both metatiles are on the upper level, whose columns the map numbers from 64.
References fdActorSetSpritePriority(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, syImportScriptSetExitRequest() and sySoundPlay().
Referenced by DehkanPlateauEntranceCues and DehkanPlateauPillarsCues.
Definition at line 1876 of file dehkan_plateau.c.
scInit
Sint32 scInit(void)
Sets up the room of the plateau the party comes into.
References MainRoutineStateWork, scDehkanPlateauInitCannon(), scDehkanPlateauInitCaves(), scDehkanPlateauInitEntrance(), scDehkanPlateauInitPillars(), scDehkanPlateauInitPoundCube(), scDehkanPlateauInitTightropes() and Sint32.
Definition at line 1891 of file dehkan_plateau.c.
scDehkanPlateauKeepPriorityWithLeader
void scDehkanPlateauKeepPriorityWithLeader(void)
The first stretch's event: draws the chest on the ledge at the leader's sprite priority each tick, so it stays in front of or behind him with the ground.
References fdActorGetById(), fdActorSetSpritePriority() and MainRoutineStateWork.
Referenced by scDehkanPlateauInitEntrance().
Definition at line 1913 of file dehkan_plateau.c.
scDehkanPlateauInitEntrance
void scDehkanPlateauInitEntrance(void)
Sets up the first stretch: its pillars, the stone pillar already in the gap, its cracks and unseen blocks, and the chest's event.
References DehkanPlateauEntranceCrumblingPillars, DehkanPlateauEntranceStakes, fdActorDisableById(), fdActorGetById(), fdActorSetPosAndResetMotion(), fdActorSetSpritePriority(), fdMapGridCopyMetatileAttributes(), scCrumblingPillarPlace(), scDehkanPlateauHideEntranceBlocks(), scDehkanPlateauKeepPriorityWithLeader(), scDehkanPlateauRestoreEntranceCracks(), scPillarPlace(), syGameFlagGet(), sySetEvent() and sySynch().
Referenced by scInit().
Definition at line 1924 of file dehkan_plateau.c.
scDehkanPlateauInitPillars
void scDehkanPlateauInitPillars(void)
Sets up the pillars stretch: its crumbling pillars, stake and stone pillar, its cracks, and Cannon as far as he has fled.
References DehkanPlateauPillarsBlocks, DehkanPlateauPillarsCrumblingPillars, DehkanPlateauPillarsStakes, fdActorDisableById(), fdActorGetById(), fdActorPlaceBlocks(), fdActorSetSpritePriority(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatileTilesIndicesRect(), MainRoutineStateWork, scActorPlaceFacing(), scCrumblingPillarPlaceWithStandIn(), scDehkanPlateauHidePillarsBlocks(), scDehkanPlateauRestorePillarsCracks(), scDehkanPlateauSetPillarsStandingPillarMetatiles(), scFieldActorSetPosAndResetMotion(), scPillarPlace(), Sint32, syGameFlagGet() and syGameFlagSet().
Referenced by scInit().
Definition at line 1946 of file dehkan_plateau.c.
scDehkanPlateauInitTightropes
void scDehkanPlateauInitTightropes(void)
Sets up the rope bridge's stretch: its tightropes and the rope to Lash, its stone, vine and stakes and crumbling pillars, its cracks, and Cannon as far as he has gone.
References DehkanPlateauCrackX, DehkanPlateauCrackZ, DehkanPlateauTightropesCrumblingPillars, DehkanPlateauTightropesPillars, DehkanPlateauTightropesVinePillars, fdActorDisableById(), fdActorGetById(), fdActorGetMetatileIndex(), fdActorPlaceBlocks(), fdActorSetAnimationById(), fdActorSetPosAndFacing(), fdActorSetSpritePriority(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatileTilesIndicesRect(), fdRopePlace(), fdTightropeInit(), fdTightropePlace(), MainRoutineStateWork, scCrumblingPillarPlace(), scDehkanPlateauForgetCrackOnLeaving(), scDehkanPlateauHideTightropesBlocks(), scDehkanPlateauInitRopes(), scDehkanPlateauRestoreTightropesCracks(), scDehkanPlateauSetTightropesSecondPillarInPlace(), scDehkanPlateauSetTightropesStandingPillarMetatiles(), scPillarRaise(), Sint32, syGameFlagGet(), syGameFlagSet() and sySetEvent().
Referenced by scInit().
Definition at line 1995 of file dehkan_plateau.c.
scDehkanPlateauDrawCavesFallLanding
DEFINE_DEHKAN_PLATEAU_DRAW_FALL_LANDING( scDehkanPlateauDrawCavesFallLanding, 3, 8, 67, 3, 66, 69)
Draws, in the caves below the cracks, the metatiles where the party landed under the crack it fell through.
Referenced by scDehkanPlateauInitCaves().
Definition at line 2156 of file dehkan_plateau.c.
scDehkanPlateauDrawPoundCubeFallLanding
DEFINE_DEHKAN_PLATEAU_DRAW_FALL_LANDING( scDehkanPlateauDrawPoundCubeFallLanding, 13, 5, 77, 0, 65, 65)
Draws, in the Pound Cube's cave, the metatiles where the party landed under the crack it fell through.
Referenced by scDehkanPlateauInitPoundCube().
Definition at line 2161 of file dehkan_plateau.c.
scDehkanPlateauInitCaves
void scDehkanPlateauInitCaves(void)
Sets up the caves below the cracks: the floor Cannon opened, and the landing of a fall.
References fdActorGetById(), fdMapGridCopyMetatileTilesIndicesRect(), MainRoutineStateWork, scDehkanPlateauDrawCavesFallLanding(), scDehkanPlateauForgetFall(), scDehkanPlateauHideCavesBlocks(), scDehkanPlateauLandFromFall(), Sint32, syGameFlagGet() and syGameFlagSet().
Referenced by scInit().
Definition at line 2166 of file dehkan_plateau.c.
scDehkanPlateauLandFromFall
void scDehkanPlateauLandFromFall(void)
Felix drops in from the crack above in a shaft of light, landing in a ring of dust.
References fdActorGetById(), fdActorSetAnimationById(), fdEffectAdvanceMotion(), fdEffectSetAttached(), fdMapGridCenterOnFollowedPoint(), fdMapGridWaitForShakeToSettle(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldEffectSpawn(), Sint32, syCos(), sySin(), sySoundPlay() and sySynch().
Referenced by scDehkanPlateauInitCannon(), scDehkanPlateauInitCaves() and scDehkanPlateauInitPoundCube().
Definition at line 2200 of file dehkan_plateau.c.
scDehkanPlateauInitPoundCube
void scDehkanPlateauInitPoundCube(void)
Sets up the Pound Cube's cave: the Pound Cube where Cannon dropped it, its cracks, and the landing of a fall, beside Cannon the first time.
References DehkanPlateauCrackX, DehkanPlateauCrackZ, DehkanPlateauDroppedPoundCube, DehkanPlateauPoundCubeStakes, fdActorGetById(), fdMapGridCopyMetatileAttributes(), fdScriptGetFlag(), MainRoutineStateWork, scDehkanPlateauCannonDropsPoundCube(), scDehkanPlateauCreatePoundCube(), scDehkanPlateauDrawPoundCubeFallLanding(), scDehkanPlateauForgetCrackOnLeaving(), scDehkanPlateauForgetFall(), scDehkanPlateauLandFromFall(), scDehkanPlateauRestorePoundCubeCracks(), scFieldActorSetPosAndResetMotion(), scPillarPlace(), Sint32, syGameFlagGet(), syGameFlagSet(), sySetEvent() and sySynch().
Referenced by scInit().
Definition at line 2269 of file dehkan_plateau.c.
scDehkanPlateauCreatePoundCube
void scDehkanPlateauCreatePoundCube(void)
Creates the Pound Cube Cannon drops, drawn with the item's own icon.
References DehkanPlateauDroppedPoundCube, mnIconDrawItem(), syHeapSlotAllocate(), syHeapSlotRelease(), syImportActorCreate() and syVRAMCacheLoad().
Referenced by scDehkanPlateauInitPoundCube().
Definition at line 2322 of file dehkan_plateau.c.
scDehkanPlateauInitCannon
void scDehkanPlateauInitCannon(void)
Sets up Cannon's cave: its stake and crumbling pillar, Cannon met already if he is in the party, and the landing of a fall.
References DehkanPlateauCannonCrumblingPillar, DehkanPlateauCannonStakes, fdActorGetById(), MainRoutineStateWork, scCrumblingPillarPlace(), scDehkanPlateauEnterLowerPath(), scDehkanPlateauHideCannonBlocks(), scDehkanPlateauLandFromFall(), scPillarPlace(), syGameFlagGet(), syGameFlagSet() and sySynch().
Referenced by scInit().
Definition at line 2351 of file dehkan_plateau.c.
scPrepareMap
Sint32 scPrepareMap(void)
References Sint32.
Definition at line 2377 of file dehkan_plateau.c.
Variables in detail
DehkanPlateauEntranceCrumblingPillars
extern Sint16 DehkanPlateauEntranceCrumblingPillars[]
Sint16 DehkanPlateauEntranceCrumblingPillars[]
Each room's crumbling pillars, with the first of the two flags that remember each one cracked and crumbled.
Referenced by scDehkanPlateauInitEntrance() and scDehkanPlateauStepOnEntrancePillars().
Definition at lines 339 and 2410 of file dehkan_plateau.c.
DehkanPlateauDroppedPoundCube
extern ACTOR *DehkanPlateauDroppedPoundCube
ACTOR *DehkanPlateauDroppedPoundCube
The Pound Cube Cannon drops, while it lies on the ground.
Referenced by scDehkanPlateauCannonDropsPoundCube(), scDehkanPlateauCreatePoundCube(), scDehkanPlateauInitPoundCube(), scDehkanPlateauStepOnCrack() and scDehkanPlateauTakePoundCube().
Definition at lines 341 and 2597 of file dehkan_plateau.c.
DehkanPlateauEntranceCrackPictures
extern Uint16 DehkanPlateauEntranceCrackPictures[]
Uint16 DehkanPlateauEntranceCrackPictures[]
The map pictures a room's crack is drawn with: cracked open, then as a hole.
Referenced by scDehkanPlateauStepOnCrack().
Definition at lines 362 and 2479 of file dehkan_plateau.c.
DehkanPlateauEntranceCracks
extern Uint16 DehkanPlateauEntranceCracks[][CRACK_FIELDS]
Uint16 DehkanPlateauEntranceCracks[][CRACK_FIELDS]
Each room's cracks: whether it starts cracked, its metatile, its hole picture and where the hole is drawn below.
Referenced by scDehkanPlateauStepOnCrack().
Definition at lines 363 and 2512 of file dehkan_plateau.c.
DehkanPlateauPillarsCrumblingPillars
extern Sint16 DehkanPlateauPillarsCrumblingPillars[]
Sint16 DehkanPlateauPillarsCrumblingPillars[]
Referenced by scDehkanPlateauInitPillars() and scDehkanPlateauStepOnPillarsCrumblingPillars().
Definition at lines 365 and 2416 of file dehkan_plateau.c.
DehkanPlateauTightropesCrumblingPillars
extern Sint16 DehkanPlateauTightropesCrumblingPillars[]
Sint16 DehkanPlateauTightropesCrumblingPillars[]
Referenced by scDehkanPlateauInitTightropes() and scDehkanPlateauStepOnTightropesPillars().
Definition at lines 366 and 2430 of file dehkan_plateau.c.
DehkanPlateauCannonCrumblingPillar
extern Sint16 DehkanPlateauCannonCrumblingPillar[]
Sint16 DehkanPlateauCannonCrumblingPillar[]
Referenced by scDehkanPlateauInitCannon() and scDehkanPlateauStepOnCannonPillar().
Definition at lines 367 and 2437 of file dehkan_plateau.c.
DehkanPlateauEntranceStakes
extern Sint16 DehkanPlateauEntranceStakes[]
Sint16 DehkanPlateauEntranceStakes[]
Each room's stakes, with the flag that remembers each one Pounded.
Referenced by scDehkanPlateauInitEntrance() and scDehkanPlateauPoundEntranceStake().
Definition at lines 368 and 2442 of file dehkan_plateau.c.
DehkanPlateauPillarsStakes
extern Sint16 DehkanPlateauPillarsStakes[]
Sint16 DehkanPlateauPillarsStakes[]
Referenced by scDehkanPlateauInitPillars() and scDehkanPlateauPoundPillarsStake().
Definition at lines 369 and 2446 of file dehkan_plateau.c.
DehkanPlateauTightropesStakes
extern Sint16 DehkanPlateauTightropesStakes[]
Sint16 DehkanPlateauTightropesStakes[]
Referenced by scDehkanPlateauPoundTightropesStake().
Definition at lines 370 and 2450 of file dehkan_plateau.c.
DehkanPlateauPoundCubeStakes
extern Sint16 DehkanPlateauPoundCubeStakes[]
Sint16 DehkanPlateauPoundCubeStakes[]
Referenced by scDehkanPlateauInitPoundCube() and scDehkanPlateauPoundPoundCubeStake().
Definition at lines 371 and 2454 of file dehkan_plateau.c.
DehkanPlateauCannonStakes
extern Sint16 DehkanPlateauCannonStakes[]
Sint16 DehkanPlateauCannonStakes[]
Referenced by scDehkanPlateauInitCannon() and scDehkanPlateauPoundCannonStake().
Definition at lines 372 and 2458 of file dehkan_plateau.c.
DehkanPlateauPillarsBlocks
extern Sint16 DehkanPlateauPillarsBlocks[]
Sint16 DehkanPlateauPillarsBlocks[]
The stone pillars Move takes hold of.
Referenced by scDehkanPlateauInitPillars() and scDehkanPlateauLiftPillarsStonePillar().
Definition at lines 373 and 2464 of file dehkan_plateau.c.
DehkanPlateauTightropesPillars
extern Sint16 DehkanPlateauTightropesPillars[]
Sint16 DehkanPlateauTightropesPillars[]
Referenced by scDehkanPlateauInitTightropes() and scDehkanPlateauLiftTightropesPillar().
Definition at lines 374 and 2467 of file dehkan_plateau.c.
DehkanPlateauPlacements
extern ACTOR_PLACE DehkanPlateauPlacements[]
ACTOR_PLACE DehkanPlateauPlacements[]
The placements of a room with none of its own.
Referenced by scGetActorPlacements().
Definition at lines 398 and 2791 of file dehkan_plateau.c.
DehkanPlateauEntrancePlacements
extern ACTOR_PLACE DehkanPlateauEntrancePlacements[]
ACTOR_PLACE DehkanPlateauEntrancePlacements[]
Each room's actors (DEHKAN_PLATEAU_ENTRANCE_ACTOR_ID and the rest); the rows at scene points
stand where the map's points put them.
Referenced by scGetActorPlacements().
Definition at lines 399 and 2797 of file dehkan_plateau.c.
DehkanPlateauPillarsPlacements
extern ACTOR_PLACE DehkanPlateauPillarsPlacements[]
ACTOR_PLACE DehkanPlateauPillarsPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 400 and 2839 of file dehkan_plateau.c.
DehkanPlateauTightropesPlacements
extern ACTOR_PLACE DehkanPlateauTightropesPlacements[]
ACTOR_PLACE DehkanPlateauTightropesPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 401 and 2903 of file dehkan_plateau.c.
DehkanPlateauCavesPlacements
extern ACTOR_PLACE DehkanPlateauCavesPlacements[]
ACTOR_PLACE DehkanPlateauCavesPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 402 and 2963 of file dehkan_plateau.c.
DehkanPlateauPoundCubePlacements
extern ACTOR_PLACE DehkanPlateauPoundCubePlacements[]
ACTOR_PLACE DehkanPlateauPoundCubePlacements[]
Referenced by scGetActorPlacements().
Definition at lines 403 and 2973 of file dehkan_plateau.c.
DehkanPlateauCannonPlacements
extern ACTOR_PLACE DehkanPlateauCannonPlacements[]
ACTOR_PLACE DehkanPlateauCannonPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 404 and 2981 of file dehkan_plateau.c.
DehkanPlateauCues
extern CUE DehkanPlateauCues[]
CUE DehkanPlateauCues[]
The cues of a room with none of its own.
Referenced by scGetCues().
Definition at lines 405 and 3004 of file dehkan_plateau.c.
DehkanPlateauEntranceCues
extern CUE DehkanPlateauEntranceCues[]
CUE DehkanPlateauEntranceCues[]
Each room's exits, cracks, pillars, unseen blocks and Cannon's flight.
References scDehkanPlateauDropEntrancePillarIntoGap(), scDehkanPlateauHideBlocks(), scDehkanPlateauLeaveRoom(), scDehkanPlateauPoundEntranceStake(), scDehkanPlateauShowBlocks(), scDehkanPlateauStepOffCrack(), scDehkanPlateauStepOnCrack() and scDehkanPlateauStepOnEntrancePillars().
Referenced by scGetCues().
Definition at lines 406 and 3009 of file dehkan_plateau.c.
DehkanPlateauPillarsCues
extern CUE DehkanPlateauPillarsCues[]
CUE DehkanPlateauPillarsCues[]
References scDehkanPlateauCannonFleesEast(), scDehkanPlateauCannonFleesOverCracks(), scDehkanPlateauHideBlocks(), scDehkanPlateauLeaveRoom(), scDehkanPlateauLiftPillarsStonePillar(), scDehkanPlateauPlacePillarsStonePillar(), scDehkanPlateauPoundPillarsStake(), scDehkanPlateauShowBlocks(), scDehkanPlateauStepOffCrack(), scDehkanPlateauStepOnCrack() and scDehkanPlateauStepOnPillarsCrumblingPillars().
Referenced by scGetCues().
Definition at lines 407 and 3063 of file dehkan_plateau.c.
DehkanPlateauTightropesCues
extern CUE DehkanPlateauTightropesCues[]
CUE DehkanPlateauTightropesCues[]
References scDehkanPlateauCannonCracksPillars(), scDehkanPlateauCannonLeapsAway(), scDehkanPlateauCannonPoundsStake(), scDehkanPlateauFinishMovingVinePillar(), scDehkanPlateauHideBlocks(), scDehkanPlateauLiftTightropesPillar(), scDehkanPlateauLiftTightropesVinePillar(), scDehkanPlateauMoveTightropesSecondPillar(), scDehkanPlateauPlaceTightropesPillar(), scDehkanPlateauPoundTightropesStake(), scDehkanPlateauPushTightropesSecondPillar(), scDehkanPlateauPushVinePillar(), scDehkanPlateauShowBlocks(), scDehkanPlateauStepOnCrack() and scDehkanPlateauStepOnTightropesPillars().
Referenced by scGetCues().
Definition at lines 408 and 3114 of file dehkan_plateau.c.
DehkanPlateauCavesCues
extern CUE DehkanPlateauCavesCues[]
CUE DehkanPlateauCavesCues[]
References scDehkanPlateauHideBlocks() and scDehkanPlateauShowBlocks().
Referenced by scGetCues().
Definition at lines 409 and 3194 of file dehkan_plateau.c.
DehkanPlateauPoundCubeCues
extern CUE DehkanPlateauPoundCubeCues[]
CUE DehkanPlateauPoundCubeCues[]
References scDehkanPlateauCannonPoundsLeaderThrough(), scDehkanPlateauPoundPoundCubeStake(), scDehkanPlateauStepOnCrack() and scDehkanPlateauTakePoundCube().
Referenced by scGetCues().
Definition at lines 410 and 3212 of file dehkan_plateau.c.
DehkanPlateauCannonCues
extern CUE DehkanPlateauCannonCues[]
CUE DehkanPlateauCannonCues[]
References scDehkanPlateauEnterLowerPath(), scDehkanPlateauFightCannon(), scDehkanPlateauHideBlocks(), scDehkanPlateauLeaveLowerPath(), scDehkanPlateauMeetCannon(), scDehkanPlateauPoundCannonStake(), scDehkanPlateauShowBlocks() and scDehkanPlateauStepOnCannonPillar().
Referenced by scGetCues().
Definition at lines 411 and 3264 of file dehkan_plateau.c.
DehkanPlateauPillarsCrackPictures
extern Uint16 DehkanPlateauPillarsCrackPictures[]
Uint16 DehkanPlateauPillarsCrackPictures[]
Referenced by scDehkanPlateauStepOnCrack().
Definition at lines 798 and 2482 of file dehkan_plateau.c.
DehkanPlateauPillarsCracks
extern Uint16 DehkanPlateauPillarsCracks[][CRACK_FIELDS]
Uint16 DehkanPlateauPillarsCracks[][CRACK_FIELDS]
Referenced by scDehkanPlateauStepOnCrack().
Definition at lines 799 and 2528 of file dehkan_plateau.c.
DehkanPlateauTightropesCrackPictures
extern Uint16 DehkanPlateauTightropesCrackPictures[]
Uint16 DehkanPlateauTightropesCrackPictures[]
Referenced by scDehkanPlateauStepOnCrack().
Definition at lines 807 and 2485 of file dehkan_plateau.c.
DehkanPlateauTightropesCracks
extern Uint16 DehkanPlateauTightropesCracks[][CRACK_FIELDS]
Uint16 DehkanPlateauTightropesCracks[][CRACK_FIELDS]
Referenced by scDehkanPlateauStepOnCrack().
Definition at lines 808 and 2538 of file dehkan_plateau.c.
DehkanPlateauCrackZ
Sint32 DehkanPlateauCrackZ
The metatile of the crack the leader has just opened, in the rope bridge's
stretch and the Pound Cube's cave (scDehkanPlateauForgetCrackOnLeaving).
References Sint32.
Referenced by scDehkanPlateauForgetCrackOnLeaving(), scDehkanPlateauInitPoundCube(), scDehkanPlateauInitTightropes() and scDehkanPlateauStepOnCrack().
Definition at line 856 of file dehkan_plateau.c.
DehkanPlateauCrackX
Sint32 DehkanPlateauCrackX
References Sint32.
Referenced by scDehkanPlateauForgetCrackOnLeaving(), scDehkanPlateauInitPoundCube(), scDehkanPlateauInitTightropes() and scDehkanPlateauStepOnCrack().
Definition at line 857 of file dehkan_plateau.c.
DehkanPlateauTightropesVinePillars
extern Sint16 DehkanPlateauTightropesVinePillars[]
Sint16 DehkanPlateauTightropesVinePillars[]
The rope bridge's stretch's vine pillars.
Referenced by scDehkanPlateauInitTightropes(), scDehkanPlateauLiftTightropesVinePillar() and scDehkanPlateauPushVinePillar().
Definition at lines 1246 and 2472 of file dehkan_plateau.c.
DehkanPlateauDustScript
extern Uint32 DehkanPlateauDustScript[]
Uint32 DehkanPlateauDustScript[]
The puffs of dust a crumbling pillar raises.
Referenced by scDehkanPlateauCrackPillar().
Definition at lines 1500 and 2394 of file dehkan_plateau.c.
DehkanPlateauFallLandingMetatiles
extern Uint16 DehkanPlateauFallLandingMetatiles[]
Uint16 DehkanPlateauFallLandingMetatiles[]
Where each fall lands in the caves below, four to a landing entrance from FIRST_LANDING_ENTRANCE:
the floor metatile the party lands on, then the top of the shaft of light drawn above it.
Definition at lines 2106 and 2567 of file dehkan_plateau.c.
FieldEffectDurationScripts
const Sint32 *FieldEffectDurationScripts[]
References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.
Referenced by fdEffectSpawnResident(), scFieldEffectSpawn() and scFieldEffectSpawnLocal().
Definition at line 2402 of file dehkan_plateau.c.
DehkanPlateauPoundCubeCrackPictures
Uint16 DehkanPlateauPoundCubeCrackPictures[]
The cracks' pictures and records (each room's crack table).
Referenced by scDehkanPlateauRestorePoundCubeCracks() and scDehkanPlateauStepOnCrack().
Definition at line 2488 of file dehkan_plateau.c.
DehkanPlateauEntranceHolePictures
Uint16 DehkanPlateauEntranceHolePictures[]
The pictures of the hole under each crack, drawn as the leader falls.
Referenced by scDehkanPlateauStepOnCrack().
Definition at line 2493 of file dehkan_plateau.c.
DehkanPlateauPillarsHolePictures
Uint16 DehkanPlateauPillarsHolePictures[]
Referenced by scDehkanPlateauStepOnCrack().
Definition at line 2497 of file dehkan_plateau.c.
DehkanPlateauTightropesHolePictures
Uint16 DehkanPlateauTightropesHolePictures[]
Referenced by scDehkanPlateauStepOnCrack().
Definition at line 2501 of file dehkan_plateau.c.
DehkanPlateauPoundCubeHolePictures
Uint16 DehkanPlateauPoundCubeHolePictures[]
Referenced by scDehkanPlateauStepOnCrack().
Definition at line 2505 of file dehkan_plateau.c.
DehkanPlateauPoundCubeCracks
Uint16 DehkanPlateauPoundCubeCracks[][CRACK_FIELDS]
Referenced by scDehkanPlateauRestorePoundCubeCracks() and scDehkanPlateauStepOnCrack().
Definition at line 2546 of file dehkan_plateau.c.
SceneEntrances
SCENE_ENTRANCE SceneEntrances[]
Referenced by scGetEntrances().
Definition at line 2599 of file dehkan_plateau.c.
SceneExits
Uint32 SceneExits[]
The exits given by bare numbers lead between two screens of one room, each to the other's entrance.
Referenced by scGetExits().
Definition at line 2606 of file dehkan_plateau.c.