Skip to Content
The Alchemy Project

src/window/screens_battle_party_commands.c

An ability classified for target selection, and a reserve member chosen for a party slot. More…

Included by screens.c.

Functions

NameDescription
Sint32mnBattleClassifyEntryKind (const ABILITY_DEFINITION *act)Classifies ability act's effect for target selection: the hint mnBattleTargetRunSelection shows on a party member and starts on (enum BATTLE_TARGET_HINT).
Sint32mnBattlePartyChooseReserve (Sint32 slot)Lets the player choose which reserve member takes a party slot in battle, previewing each choice in place: left and right cycle through the reserve, A confirms and swaps the two in MainRoutineStateWork.party, and B puts the slot's member back.
Sint32btUnitListLivingStub (Sint32 sideMask, Uint16 *unitIds)Lists the units still standing on the sides in sideMask, party first, into unitIds when it is not null, and returns how many.
Sint32mnBattlePartySplitChoosers (Uint16 *ready, BATTLE_ACTION_RECORD **cursor, Sint32 *forcedCount)The first half of The Broken Seal's btBuildPartyActions: each action of a living party member who is asleep, confused, charmed or stunned is lost (COMMAND_NONE) and written at *cursor, which moves past them, their count going to *forcedCount; every other member's actions are listed in ready to be chosen.

Description

An ability classified for target selection, and a reserve member chosen for a party slot. Part of screens.c.

Functions in detail

mnBattleClassifyEntryKind

Sint32 mnBattleClassifyEntryKind(const ABILITY_DEFINITION *act)

Classifies ability act's effect for target selection: the hint mnBattleTargetRunSelection shows on a party member and starts on (enum BATTLE_TARGET_HINT).

References gmBattleIsReviveEffectStub() and Sint32.

Referenced by mnBattleCollectPartyCommands().

Definition at line 7 of file screens_battle_party_commands.c.

mnBattlePartyChooseReserve

Sint32 mnBattlePartyChooseReserve(Sint32 slot)

Lets the player choose which reserve member takes a party slot in battle, previewing each choice in place: left and right cycle through the reserve, A confirms and swaps the two in MainRoutineStateWork.party, and B puts the slot's member back.

References btHighlightSetModesStub(), btObjectGetStub(), btObjectPutStub(), btPartyPrepareReserveOwnersStub(), btUnitListLivingIdsStub(), fdActorSetPosAndResetMotionStub(), MainRoutineStateWork, mnPartyStatusDraw(), mnPartyStatusHighlightMembers(), PerWork, result, Sint32, sySoundPlayStub() and sySynch().

Referenced by mnBattleCollectPartyCommands().

Definition at line 33 of file screens_battle_party_commands.c.

btUnitListLivingStub

Sint32 btUnitListLivingStub(Sint32 sideMask, Uint16 *unitIds)

Lists the units still standing on the sides in sideMask, party first, into unitIds when it is not null, and returns how many.

Referenced by mnBattlePartySplitChoosers().

Definition at line 141 of file screens_battle_party_commands.c.

mnBattlePartySplitChoosers

Sint32 mnBattlePartySplitChoosers(Uint16 *ready, BATTLE_ACTION_RECORD **cursor, Sint32 *forcedCount)

The first half of The Broken Seal's btBuildPartyActions: each action of a living party member who is asleep, confused, charmed or stunned is lost (COMMAND_NONE) and written at *cursor, which moves past them, their count going to *forcedCount; every other member's actions are listed in ready to be chosen. Returns how many are listed.

References btUnitListLivingStub(), gmUnitGet(), Sint32 and syHeapAllocateEWRAM().

Referenced by mnBattleCollectPartyCommands().

Definition at line 148 of file screens_battle_party_commands.c.