Alchemy
Loading...
Searching...
No Matches

djinn_menu.c File Reference

The battle Djinn menu. More...

Go to the source code of this file.

Macros

#define TURNS_DIGITS   1
#define TURNS_X   48
#define CURSOR_OWNER   (*(struct PartyStatusWindow **)gPartyStatusWork)
#define DJINN_ENTRY_STANDBY   0x10000
#define DJINN_ENTRY_RECOVERY_MASK   0x3e0000
#define DJINN_ENTRY_RECOVERY_SHIFT   17
#define DJINN_ENTRY_END   0x80000000

Functions

s32 Battle_SelectAbility (s32 owner, s32 unused)
 Selects a Djinni for the current battle command.

Detailed Description

The battle Djinn menu.

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

Definition in file djinn_menu.c.

Macro Definition Documentation

◆ TURNS_DIGITS

#define TURNS_DIGITS   1

Definition at line 10 of file djinn_menu.c.

Referenced by Battle_SelectAbility().

◆ TURNS_X

#define TURNS_X   48

Definition at line 11 of file djinn_menu.c.

Referenced by Battle_SelectAbility().

◆ CURSOR_OWNER

#define CURSOR_OWNER   (*(struct PartyStatusWindow **)gPartyStatusWork)

Definition at line 17 of file djinn_menu.c.

Referenced by Battle_SelectAbility().

◆ DJINN_ENTRY_STANDBY

#define DJINN_ENTRY_STANDBY   0x10000

Definition at line 20 of file djinn_menu.c.

Referenced by Battle_SelectAbility().

◆ DJINN_ENTRY_RECOVERY_MASK

#define DJINN_ENTRY_RECOVERY_MASK   0x3e0000

Definition at line 21 of file djinn_menu.c.

Referenced by Battle_SelectAbility().

◆ DJINN_ENTRY_RECOVERY_SHIFT

#define DJINN_ENTRY_RECOVERY_SHIFT   17

Definition at line 22 of file djinn_menu.c.

Referenced by Battle_SelectAbility().

◆ DJINN_ENTRY_END

#define DJINN_ENTRY_END   0x80000000

Definition at line 23 of file djinn_menu.c.

Referenced by Battle_SelectAbility().

Function Documentation

◆ Battle_SelectAbility()

s32 Battle_SelectAbility ( s32 owner,
s32 unused )

Selects a Djinni for the current battle command.

Entries encode its element, index, standby state and recovery turns; -1 means cancel. R opens the stat/Psynergy preview, and tutorial input follows the normal input path.

Definition at line 28 of file djinn_menu.c.

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