Alchemy
Loading...
Searching...
No Matches

tolbi.h

Go to the documentation of this file.
1#include "edition.h"
2#ifndef TOLBI_H
3#define TOLBI_H
4
5#include "types.h"
6#include "field_event.h"
7#include "field_scene.h"
8#include "field_effect.h"
9#include "tbs_edition.h"
10extern u8 gWindowWork[];
11
12#define NULL ((void *)0)
13
15#include "flags.h"
16
17// Scene flags: FLAG_SCENE_TEMP_00 is set once Growth has raised the sprout,
18// FLAG_SCENE_TEMP_01 once Frost has frozen the puddle; both reset when the
19// party leaves the town.
20
21/// Actors, numbered in the order of the placement table from 8.
25 TOLBI_PLAYER_COPY = 14, ///< copies the leader's sprite priority every frame
29 /// A family at the festival: the father, the mother and their child, who
30 /// cries for sweets. The father: "the wife doesn't go in for that sort of
31 /// thing"; the child: "Mom, you said you were all out of money".
35 /// Sleeps under the archway during the festival; on finals day he sells
36 /// seats. "Today is a big day for us scalpers"
43};
44
45/// Map objects the party can search.
48 TOLBI_JAR = 101,
50};
51
52/// A word of the event work, at offset 0x1f4, that is set to the poster
53/// before the yes/no choice under the "Missing Person" window. What reads it
54/// is not yet traced.
55#define EVENT_WORK_1F4 (*(s32 *)((u8 *)gEventWork + 0x1f4))
56
57/// The window state the running children consult before they widen their
58/// stopping range. RENDER_MODE_OFFSET is the edition's offset of this byte in
59/// the UI render work.
63};
64
65/// The running children keep these flags in FieldActor.timer, their scene
66/// scratch halfword. Bits: 1 talking | 0 chases the younger sibling.
67enum {
68 KID_CHASES_YOUNGER = 1, ///< set on the older brother, who runs after actor 17
69 KID_TALKING = 2, ///< set while the party talks to this child
70};
71
72#endif
The edition's language, for C to compare (LANGUAGE == LANGUAGE_GERMAN).
Field effects, their scripts and the flags that spawn them.
The scene script layer: the engine services a scene's events call, declared once (Engine_EventBegin,...
The scene table formats: entrances, exits, placements and events, and the macros that write them.
Game flags, named where their meaning is shown.
TolbiActor
Actors, numbered in the order of the placement table from 8.
Definition tolbi.h:22
@ TOLBI_EMBER
Definition tolbi.h:41
@ TOLBI_MISSING_PERSON_POSTER
Definition tolbi.h:42
@ TOLBI_SPROUT
Definition tolbi.h:23
@ TOLBI_PLAYER_COPY
copies the leader's sprite priority every frame
Definition tolbi.h:25
@ TOLBI_SOLDIER_A
Definition tolbi.h:39
@ TOLBI_MOTHER
Definition tolbi.h:33
@ TOLBI_SCALPER
Sleeps under the archway during the festival; on finals day he sells seats.
Definition tolbi.h:37
@ TOLBI_YOUNGER_SIBLING
Definition tolbi.h:27
@ TOLBI_SNACK_VENDOR
Definition tolbi.h:28
@ TOLBI_CRYING_CHILD
Definition tolbi.h:34
@ TOLBI_SOLDIER_B
Definition tolbi.h:40
@ TOLBI_GAMBLER
Definition tolbi.h:38
@ TOLBI_OLDER_BROTHER
Definition tolbi.h:26
@ TOLBI_PUDDLE
Definition tolbi.h:24
@ TOLBI_FATHER
A family at the festival: the father, the mother and their child, who cries for sweets.
Definition tolbi.h:32
TolbiMapObject
Map objects the party can search.
Definition tolbi.h:46
@ TOLBI_HIDDEN_CHEST
Definition tolbi.h:49
@ TOLBI_JAR
Definition tolbi.h:48
@ TOLBI_BARREL
Definition tolbi.h:47
u8 gWindowWork[]
@ KID_TALKING
set while the party talks to this child
Definition tolbi.h:69
@ KID_CHASES_YOUNGER
set on the older brother, who runs after actor 17
Definition tolbi.h:68
The window state the running children consult before they widen their stopping range.
Definition tolbi.h:60
u8 renderMode
Definition tolbi.h:62
u8 unknown[RENDER_MODE_OFFSET]
Definition tolbi.h:61
Values that differ by patch level or language, chosen once for their code.
#define RENDER_MODE_OFFSET
Definition tbs_edition.h:50
The integer types, TRUE, UNUSED and the fixed-address macros.
unsigned char u8
Definition types.h:11