src/window/screens_battle_status.c
The battle's Status screen, which the Status command opens. More…
Included by screens.c.
Structures
| Name | Description | |
|---|---|---|
struct | STAT_CURSOR | The Status screen's cursor: its place in each group, the help entry it shows and where it points. |
Macros
| Name | Description | |
|---|---|---|
#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. |
#define | OWNER_STATUS_VALUE_X JAPANESE_OR(176, 184) | |
#define | OWNER_STATUS_ICON_PLACES 11 | The places of the status icons in a row beside the party member's name, 15 pixels apart. |
#define | OWNER_STATUS_ICONS_MAX 8 | The status icons shown at most. |
#define | OWNER_STATUS_LABEL (row) (MsgOwnerStatusAttack + (row)) | |
#define | OWNER_STATUS_REDRAW_ALL 1 | What the Status screen redraws on its next tick. |
#define | OWNER_STATUS_REDRAW_HELP 2 | only the help line |
#define | STATUS_CURSOR_GENERAL 0 | The Status screen's cursor groups, each with its table of cursor stops. |
#define | STATUS_CURSOR_COMBAT_STATS 1 | Attack, Defense, Agility and Luck (BattleStatusScreenEquipmentCursors). |
#define | STATUS_CURSOR_CONDITIONS 2 | the status icons |
#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. |
Enumerations
| Name | Description | |
|---|---|---|
enum | BATTLE_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
| Name | Description | |
|---|---|---|
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. |
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).
| Enumerator | Value | Description |
|---|---|---|
OWNER_STATUS_LABEL_ATTACK | 0 | |
OWNER_STATUS_LABEL_DEFENSE | 1 | |
OWNER_STATUS_LABEL_AGILITY | 2 | |
OWNER_STATUS_LABEL_LUCK | 3 | |
OWNER_STATUS_LABEL_ATTRIBUTES | 4 | "Attributes", which nothing draws |
OWNER_STATUS_LABEL_ELEMENT_LEVEL | 5 | "Lv" |
OWNER_STATUS_LABEL_POWER | 6 | |
OWNER_STATUS_LABEL_RESIST | 7 | |
OWNER_STATUS_LABEL_CLASS | 8 | "Class", which nothing draws |
OWNER_STATUS_LABEL_DJINN | 9 | |
OWNER_STATUS_LABEL_EXP | 10 | MsgOwnerStatusExp |
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.