object
games/tbs/include/unit/object on GitHub
battle_cue.h
games/tbs/include/unit/object/battle_cue.h
Globals, without a comment: gEncounter_BattleMusic.
colorfx.h
games/tbs/include/unit/object/colorfx.h
Globals, without a comment: gReelGame_SparkCellOffsets, gReelGame_SymbolPrizes, gReelGame_FrameSpriteX, gReelGame_FrameSpriteY.
object.h
games/tbs/include/unit/object/object.h
Structures
EffectDescriptor
struct EffectDescriptor
One of the scene's events (the same 12 bytes as struct SceneEvent).
| Field | Declared as | |
|---|---|---|
flags | s32 flags | the low 4 bits are the kind (SceneEventKind; 7 talks to the actor the party stopped) |
value | u8 value | the target (an actor or a tile code) |
unused05 | u8 unused05 | |
condition | s16 condition | as for GameFlag_IsConditionActive |
result | s32 result | below 0x10000 a message, else a function to call |
Used by Field_RunEventAction, Scene_FindActorTalkEvent, Scene_FindEvent, Scene_RunRaisedEvent, Scene_RunTouchOrExit, Scene_TalkToActor.
Macros, without a comment: OBJ_LAST, MARKER_MAX, MODE_WORLD_MAP.
Declarations, without a comment: BattleFx_ShrinkObjectAndDestroySlow, BattleFx_ShrinkObjectAndDestroyFast, FieldFx_RunLift, FieldFx_RunCarry.
psynergy_effects.h
games/tbs/include/unit/object/psynergy_effects.h
Structures
SparkleFrame
struct SparkleFrame
One frame of a sparkle: its height offset and tile (fxdata.c).
| Field | Declared as | |
|---|---|---|
dy | s16 dy | |
tile | u16 tile |
Used by gFieldFx_SparkleFrames.
Enumerations
FieldKind
enum FieldKind
A field Psynergy's effect, as the field kind: the type column of games/tbs/src/game/actions.tsv, named for the abilities that have it. The effect scene keeps it as its animation.
| Value | = | |
|---|---|---|
FIELD_KIND_MOVE | 1 | |
FIELD_KIND_MIND_READ | 2 | |
FIELD_KIND_PLY | 3 | |
FIELD_KIND_FORCE | 4 | |
FIELD_KIND_DOUSE | 5 | |
FIELD_KIND_FROST | 6 | |
FIELD_KIND_LIFT | 7 | |
FIELD_KIND_REVEAL | 8 | |
FIELD_KIND_HALT | 9 | |
FIELD_KIND_CLOAK | 10 | |
FIELD_KIND_CARRY | 11 | |
FIELD_KIND_GROWTH | 12 | |
FIELD_KIND_CATCH | 13 | |
FIELD_KIND_WHIRLWIND | 14 | Whirlwind and Gale. |
FIELD_KIND_RETREAT | 15 | |
FIELD_KIND_AVOID | 16 |
Macros
DJINN_NO_HOP
#define DJINN_NO_HOP 0x800
Field_RequestDjinnBattle's flag: the Djinni does not hop first.
Used by Event_MeetCorona, Event_MeetHail, Event_MeetVine, Field_RequestDjinnBattle.
ACTOR_ACTION_RESET
#define ACTOR_ACTION_RESET 7
Clears child and collision flags, then returns to the idle script.
Also, macros without a comment: ACTOR_ACTION_IDLE, ACTOR_ACTION_FOLLOW_LINKED_OBJECT, ACTOR_ACTION_FACE_SELECTED_ACTOR.
Globals, without a comment: gFieldFx_SparkleFrames.
Declarations, without a comment: FieldFx_StepRatioTransition, BattleFx_ScheduleRatioTransition, Event_WaitForZoomTransition, BattleFx_CopyLinkedObjectPosition, BattleFx_SpawnLinked, BattleFx_ConfigureLinkedObject, Field_StartEncounterTransition, ObjectEffect_PrepareContextEffect, ObjectEffect_BeginContextEffect26, ObjectEffect_BeginContextEffect25, ObjectEffect_EndContextEffect, ObjectEffect_RunPendingFlagEvent, Camera_WorldToScreen.
zonedata.h
games/tbs/include/unit/object/zonedata.h
Globals, without a comment: gWorldMap_EncounterRules, gEncounter_AreaEntryTable.