src/window/screens_battle_party_commands.c
Collecting the party's battle commands. More…
Included by screens.c.
Macros
| Name | Description | |
|---|---|---|
#define | FLEE_PRIORITY 32766 | Flee's priority, above every other action's: the party flees first in the turn. |
#define | OVERFLOWED_PRIORITY 2000 | The priority an action takes when its Agility roll runs past 32767. |
Functions
| Name | Description | |
|---|---|---|
Sint32 | mnBattleClassifyEntryKind (const ABILITY_DEFINITION *act) | Classifies ability act for the target selection (the kind of mnBattleTargetRunSelection, BATTLE_TARGET_HINT), which shows what it would do on a party member and, for the curing and reviving hints, starts on one who needs it. |
Sint32 | mnBattleCollectPartyCommands (BATTLE_ACTION *commands, Uint16 *actors, Sint32 commandCount) | Collects the party's commands for a turn into commands, one for each of the commandCount units in actors (a party member with two actions is listed twice), and returns how many it wrote: commandCount, 1 when the party flees (COMMAND_FLEE for the first actor), or -1 when the link fails. |
Description
Collecting the party's battle commands. Part of screens.c.
Macros in detail
FLEE_PRIORITY
#define FLEE_PRIORITY 32766
Flee's priority, above every other action's: the party flees first in the turn.
Referenced by mnBattleCollectPartyCommands().
Definition at line 5 of file screens_battle_party_commands.c.
OVERFLOWED_PRIORITY
#define OVERFLOWED_PRIORITY 2000
The priority an action takes when its Agility roll runs past 32767.
Referenced by mnBattleCollectPartyCommands().
Definition at line 7 of file screens_battle_party_commands.c.
Functions in detail
mnBattleClassifyEntryKind
Sint32 mnBattleClassifyEntryKind(const ABILITY_DEFINITION *act)
Classifies ability act for the target selection (the kind of
mnBattleTargetRunSelection, BATTLE_TARGET_HINT), which shows what it would do
on a party member and, for the curing and reviving hints, starts on one who
needs it.
References gmBattleIsReviveEffectStub() and Sint32.
Referenced by mnBattleCollectPartyCommands().
Definition at line 13 of file screens_battle_party_commands.c.
mnBattleCollectPartyCommands
Sint32 mnBattleCollectPartyCommands(BATTLE_ACTION *commands, Uint16 *actors, Sint32 commandCount)
Collects the party's commands for a turn into commands, one for each of the
commandCount units in actors (a party member with two actions is listed
twice), and returns how many it wrote: commandCount, 1 when the party flees
(COMMAND_FLEE for the first actor), or -1 when the link fails.
References btCameraSetCommandViewStub(), btDjinnCountStandbyStub(), btHighlightSetModesStub(), btUnitListIdsStub(), DebugMode, gmAbilityGetDefinitionStub(), gmDjinnGetAbilityIdStub(), gmDjinnIsSetStub(), gmFlagGetStub(), gmItemGetDefinitionStub(), gmSummonDefinitionGetNearStub(), gmUnitGetStub(), LinkStatusWork, mnAbilityIconLoadIntoSlot(), mnBattleClassifyEntryKind(), mnBattleCommandRowRun(), mnBattleDjinnMenuRun(), mnBattleItemMenuRun(), mnBattleMenuUpdate(), mnBattlePsynergyMenuRun(), mnBattleRefuseFlee(), mnBattleStatusScreenRun(), mnBattleSummonMenuRun(), mnBattleTargetRunSelection(), mnCommandIconReloadSlot(), mnGraphicsExpandVRAMTilesByColorTable(), mnItemCheckBattleUse(), mnItemIconLoadIntoSlot(), mnMessageAllTyped(), mnMessageShowAndWait(), mnPageArrowsDraw(), mnPartyStatusHighlightMembers(), mnPortraitLoad(), mnRangeIconBuildTiles(), mnTextDrawMessageAsTiles(), mnTextDrawNumberAtOffset(), mnTextDrawWideStringAtOffset(), mnTextFillCanvasBackground(), mnTextSetColor(), mnWindowClose(), mnWindowCreate(), mnWindowMarkVisibleTextTiles(), mnWindowPutGlyph(), mnWindowSetTilemapEntry(), PerData, SerialPeerPayloads, SerialTransfer, Sint32, state, syCloseEvent() and 10 more.
Definition at line 39 of file screens_battle_party_commands.c.