Alchemy
Loading...
Searching...
No Matches

vault_cave.h

Go to the documentation of this file.
1#ifndef ALCHEMY_UNIT_SCENE_VAULT_CAVE_H
2#define ALCHEMY_UNIT_SCENE_VAULT_CAVE_H
3
4#include "types.h"
5#include "field_scene.h"
6#include "field_runtime.h"
7
8struct SceneEntrance;
9struct SceneEvent;
10struct ScenePlacement;
11
12const struct SceneEntrance *Scene_GetEntrances(void);
13const struct SceneRegion *Scene_GetRegions(void);
14const u32 *Scene_GetExits(void);
15const struct ScenePlacement *Scene_GetPlacements(void);
16const struct SceneEvent *Scene_GetEvents(void);
18extern const s16 gVaultCave_DirectionSteps[];
19extern const s32 gVaultCave_PuffScript[];
24extern struct SceneRegion gVaultCaveRegions[];
26extern u32 gVaultCaveExits1[];
27extern u32 gVaultCaveExits2[];
28extern u32 gVaultCaveExits3[];
33extern struct SceneEvent gVaultCaveEventsOther[];
34extern struct SceneEvent gVaultCaveEvents1[];
35extern struct SceneEvent gVaultCaveEvents2[];
36extern struct SceneEvent gVaultCaveEvents3[];
42
43#endif
const struct ScenePlacement * Scene_GetPlacements(void)
const struct SceneEntrance * Scene_GetEntrances(void)
const struct SceneEvent * Scene_GetEvents(void)
const u32 * Scene_GetExits(void)
Both scenes share one exit table.
const struct SceneRegion * Scene_GetRegions(void)
s32 Scene_Initialize(void)
Sets up whichever scene is being entered and runs its arrival events.
The field's runtime work: map cells, scene records and regions, map markers and FieldWork.
The scene table formats: entrances, exits, placements and events, and the macros that write them.
A scene entrance: where and facing which way the party arrives, and the camera's bounds there (-1 for...
Definition field_scene.h:54
A scene event: its kind and detail, the trigger it answers, its condition and its value (a message or...
An actor a scene places: its sprite, the condition for placing it, how it behaves,...
Definition field_scene.h:81
A scene's exit region: the box that, while its condition holds, takes the party leader out through it...
The integer types, TRUE, UNUSED and the fixed-address macros.
signed int s32
Definition types.h:14
unsigned int u32
Definition types.h:15
signed short s16
Definition types.h:12
struct ScenePlacement gVaultCavePlacements3[]
struct SceneRegion gVaultCaveRegions[]
Definition vault_cave.c:992
u32 gVaultCaveExits2[]
struct ScenePlacement gVaultCavePlacements1[]
s32 gVaultCave_ScheduleIndex
const s16 gVaultCave_DirectionSteps[]
Definition vault_cave.c:917
u32 gVaultCaveExitsOther[]
Definition vault_cave.c:997
s32 gVaultCave_TickCounter
u32 gVaultCaveExits3[]
struct SceneEvent gVaultCaveEvents2[]
const s32 gVaultCave_PuffScript[]
Definition vault_cave.c:936
struct SceneEntrance gVaultCaveEntrances1[]
Definition vault_cave.c:945
struct SceneEvent gVaultCaveEvents1[]
struct SceneEntrance gVaultCaveEntrancesOther[]
Definition vault_cave.c:940
u32 gVaultCaveExits1[]
struct SceneEvent gVaultCaveEventsOther[]
struct ScenePlacement gVaultCavePlacements2[]
struct ScenePlacement gVaultCavePlacementsOther[]
s32 gVaultCave_TickValue
u32 gVaultCave_ScheduleFrames[]
struct SceneEntrance gVaultCaveEntrances3[]
Definition vault_cave.c:981
struct SceneEvent gVaultCaveEvents3[]
struct SceneEntrance gVaultCaveEntrances2[]
Definition vault_cave.c:963
s32 gVaultCave_ScheduleTimer