Skip to Content
The Alchemy Project

src/window/screens_battle_status.c

The battle's Status screen, which the Status command opens. More…

Included by screens.c.

Structures

NameDescription
structSTAT_CURSORThe Status screen's cursor: its place in each group, the help entry it shows and where it points.

Macros

NameDescription
#defineOWNER_STATUS_TEXT_MAX JAPANESE_OR(64, 128)The Status screen's help text buffer, in characters, and the x of the Attack, Defense and Agility figures, in pixels.
#defineOWNER_STATUS_VALUE_X JAPANESE_OR(176, 184)
#defineOWNER_STATUS_ICON_PLACES 11The places of the status icons in a row beside the party member's name, 15 pixels apart.
#defineOWNER_STATUS_ICONS_MAX 8The status icons shown at most.
#defineOWNER_STATUS_LABEL (row) (MsgOwnerStatusAttack + (row))
#defineOWNER_STATUS_REDRAW_ALL 1What the Status screen redraws on its next tick.
#defineOWNER_STATUS_REDRAW_HELP 2only the help line
#defineSTATUS_CURSOR_GENERAL 0The Status screen's cursor groups, each with its table of cursor stops.
#defineSTATUS_CURSOR_COMBAT_STATS 1Attack, Defense, Agility and Luck (BattleStatusScreenEquipmentCursors).
#defineSTATUS_CURSOR_CONDITIONS 2the status icons
#defineSTATUS_CURSOR_TAKE_STOP (cursor, stops)Moves cursor to the stop its group remembers in stops: that stop's help entry, column and row.

Enumerations

NameDescription
enumBATTLE_SUMMARY_LABEL { OWNER_STATUS_LABEL_ATTACK, OWNER_STATUS_LABEL_DEFENSE, OWNER … }The Status screen's labels, in their message order from MsgOwnerStatusAttack (OWNER_STATUS_LABEL).

Functions

NameDescription
Sint32mnBattleStatusScreenRun (Uint16 *list, Sint32 listCount, Sint32 member)Runs the Status screen for party member member until B is pressed or the link battle's time runs out: the party member's level, experience, HP and PP, class, stats, Djinn, elements and statuses, with a help line for the item under the cursor.

Description

The battle's Status screen, which the Status command opens. Part of screens.c.

Macros in detail

OWNER_STATUS_TEXT_MAX

#define OWNER_STATUS_TEXT_MAX JAPANESE_OR(64, 128)

The Status screen's help text buffer, in characters, and the x of the Attack, Defense and Agility figures, in pixels.

Referenced by mnBattleStatusScreenRun().

Definition at line 6 of file screens_battle_status.c.

OWNER_STATUS_VALUE_X

#define OWNER_STATUS_VALUE_X JAPANESE_OR(176, 184)

Referenced by mnBattleStatusScreenRun().

Definition at line 7 of file screens_battle_status.c.

OWNER_STATUS_ICON_PLACES

#define OWNER_STATUS_ICON_PLACES 11

The places of the status icons in a row beside the party member's name, 15 pixels apart.

Referenced by mnBattleStatusScreenRun().

Definition at line 11 of file screens_battle_status.c.

OWNER_STATUS_ICONS_MAX

#define OWNER_STATUS_ICONS_MAX 8

The status icons shown at most.

Referenced by mnBattleStatusScreenRun().

Definition at line 13 of file screens_battle_status.c.

OWNER_STATUS_LABEL

#define OWNER_STATUS_LABEL(row) (MsgOwnerStatusAttack + (row))

#define OWNER_STATUS_LABEL(row)

Referenced by mnBattleStatusScreenRun().

Definition at lines 17 and 19 of file screens_battle_status.c.

OWNER_STATUS_REDRAW_ALL

#define OWNER_STATUS_REDRAW_ALL 1

What the Status screen redraws on its next tick.

on opening, and on L or R

Referenced by mnBattleStatusScreenRun().

Definition at line 41 of file screens_battle_status.c.

OWNER_STATUS_REDRAW_HELP

#define OWNER_STATUS_REDRAW_HELP 2

only the help line

Referenced by mnBattleStatusScreenRun().

Definition at line 42 of file screens_battle_status.c.

STATUS_CURSOR_GENERAL

#define STATUS_CURSOR_GENERAL 0

The Status screen's cursor groups, each with its table of cursor stops. The name, experience, HP, PP, class, Djinn and element rows (BattleStatusScreenStatCursors).

Referenced by mnBattleStatusScreenRun().

Definition at line 47 of file screens_battle_status.c.

STATUS_CURSOR_COMBAT_STATS

#define STATUS_CURSOR_COMBAT_STATS 1

Attack, Defense, Agility and Luck (BattleStatusScreenEquipmentCursors).

Referenced by mnBattleStatusScreenRun().

Definition at line 49 of file screens_battle_status.c.

STATUS_CURSOR_CONDITIONS

#define STATUS_CURSOR_CONDITIONS 2

the status icons

Referenced by mnBattleStatusScreenRun().

Definition at line 50 of file screens_battle_status.c.

STATUS_CURSOR_TAKE_STOP

#define STATUS_CURSOR_TAKE_STOP(cursor, stops)

Moves cursor to the stop its group remembers in stops: that stop's help entry, column and row.

Referenced by mnBattleStatusScreenRun().

Definition at line 72 of file screens_battle_status.c.

Enumerations in detail

BATTLE_SUMMARY_LABEL

enum BATTLE_SUMMARY_LABEL

The Status screen's labels, in their message order from MsgOwnerStatusAttack (OWNER_STATUS_LABEL).

EnumeratorValueDescription
OWNER_STATUS_LABEL_ATTACK0
OWNER_STATUS_LABEL_DEFENSE1
OWNER_STATUS_LABEL_AGILITY2
OWNER_STATUS_LABEL_LUCK3
OWNER_STATUS_LABEL_ATTRIBUTES4"Attributes", which nothing draws
OWNER_STATUS_LABEL_ELEMENT_LEVEL5"Lv"
OWNER_STATUS_LABEL_POWER6
OWNER_STATUS_LABEL_RESIST7
OWNER_STATUS_LABEL_CLASS8"Class", which nothing draws
OWNER_STATUS_LABEL_DJINN9
OWNER_STATUS_LABEL_EXP10MsgOwnerStatusExp

Definition at line 25 of file screens_battle_status.c.

Functions in detail

mnBattleStatusScreenRun

Sint32 mnBattleStatusScreenRun(Uint16 *list, Sint32 listCount, Sint32 member)

Runs the Status screen for party member member until B is pressed or the link battle's time runs out: the party member's level, experience, HP and PP, class, stats, Djinn, elements and statuses, with a help line for the item under the cursor.

References BattleStatusScreenConditionCursors, BattleStatusScreenEquipmentCursors, BattleStatusScreenHpString, BattleStatusScreenKpString, BattleStatusScreenLevelString, BattleStatusScreenNivString, BattleStatusScreenNvString, BattleStatusScreenPpString, BattleStatusScreenPvString, BattleStatusScreenSlashString, BattleStatusScreenStatCursors, btObjectGetStub(), gmPartySumDjinnCountsStub(), gmUnitCalculateStub(), gmUnitGetElementLevelStub(), gmUnitGetExperienceForLevelStub(), gmUnitGetStub(), mnMessageArgumentPush(), mnMessageCopyExpanded(), mnPartyStatusDraw(), mnPortraitLoad(), mnStatusIconLoadIntoSlot(), mnTextDrawMessageAsTiles(), mnTextDrawNumberInWindow(), mnTextDrawStringAtOffset(), mnTextDrawWideStringAtOffset(), mnTextFillCanvasBackground(), mnWindowClose(), mnWindowCreate(), mnWindowDrawDividerLine(), mnWindowHighlightRect(), mnWindowMapTextCanvasTiles(), mnWindowMarkVisibleTextTiles(), mnWindowSetTilemapEntry(), mnWindowSpriteRedrawSavedRect(), PerPush, PerRepeat, PointingHandTiles, Sint32, state, syGetLanguage(), syHeapAllocate(), syHeapRelease(), syOAMAddSpriteAtDepth(), sySoundPlayStub(), sySynch(), syVRAMCacheAllocateEntry(), syVRAMCacheFreeEntry(), syVRAMCacheReload(), syWordsCopy() and 2 more.

Referenced by mnBattleCollectPartyCommands().

Definition at line 83 of file screens_battle_status.c.