Alchemy
Loading...
Searching...
No Matches

targets.c File Reference

Choosing a battle target. More...

Go to the source code of this file.

Data Structures

struct  CursorSlot
 A target marker's track: where it is, its state flags and the target it follows. More...

Macros

#define TARGET_MYSTERY_NAME_COPY   UiText_CopyMessageString
#define TARGET_MYSTERY_NAME_CAPACITY   14

Functions

s32 BattleTarget_RunSelection (s32 selection, s32 mode, u32 spread, u32 kind)
 Chooses a party/enemy target and animates its selection markers.

Detailed Description

Choosing a battle target.

Part of battle_command.c, the menu object, compiled only through it.

Definition in file targets.c.

Macro Definition Documentation

◆ TARGET_MYSTERY_NAME_COPY

#define TARGET_MYSTERY_NAME_COPY   UiText_CopyMessageString

Definition at line 11 of file targets.c.

Referenced by BattleTarget_RunSelection().

◆ TARGET_MYSTERY_NAME_CAPACITY

#define TARGET_MYSTERY_NAME_CAPACITY   14

Definition at line 12 of file targets.c.

Referenced by BattleTarget_RunSelection().

Function Documentation

◆ BattleTarget_RunSelection()

s32 BattleTarget_RunSelection ( s32 selection,
s32 mode,
u32 spread,
u32 kind )

Chooses a party/enemy target and animates its selection markers.

Return the encoded side and party position, or -1 on cancel. Healing and status-cure categories choose an appropriate initial ally and supply condition help.

Definition at line 27 of file targets.c.

Referenced by Battle_CollectPartyCommands(), BattleTarget_RunSelection(), and NameEntry_CountLetters().