A unit's chosen action for the turn: its command, the command's parameter, its target and range, and its priority in the turn order. More...
#include <battle/battle_session.h>
Data Fields | |
| s16 | unitId |
| u16 | slot |
| in a link battle, unitId as the opponent knows it | |
| u16 | priority |
| from the unit's Agility; higher acts first | |
| s16 | command |
| enum BattleCommand | |
| s16 | parameter |
| an ability id, or CMD_ITEM's inventory index (-1 gone) | |
| s16 | target |
| the aimed unit's id | |
| s16 | range |
| the action's range | |
| s16 | unk0e |
| not named by TBS code | |
A unit's chosen action for the turn: its command, the command's parameter, its target and range, and its priority in the turn order.
Definition at line 54 of file battle_session.h.
| s16 BattleActionRecord::unitId |
Definition at line 55 of file battle_session.h.
Referenced by Battle_CollectPartyCommands(), Battle_RunEncounter(), BattleActor_RemoveFromLists(), BattleCommand_BuildPlan(), BattleCommand_SelectAutomatic(), BattlePres_BuildOpponentEntries(), BattlePres_BuildUnitEntries(), BattlePres_RunApproachAction(), BattlePres_RunItem(), BattlePres_RunUnitAction(), BattlePres_ShowDefendMessage(), BattlePresentation_AppendLinkedActions(), BattlePresentation_BuildActions(), BattlePresentation_BuildSortedUnitEntries(), BattlePresentation_DispatchAction(), BattlePresentation_RunPairedUnitTransition(), BattleQueue_SortByPriority(), and BattleTargetExec().
| u16 BattleActionRecord::slot |
in a link battle, unitId as the opponent knows it
Definition at line 56 of file battle_session.h.
Referenced by BattlePresentation_AppendLinkedActions().
| u16 BattleActionRecord::priority |
from the unit's Agility; higher acts first
Definition at line 57 of file battle_session.h.
Referenced by Battle_CollectPartyCommands(), BattlePres_BuildOpponentEntries(), BattlePres_BuildUnitEntries(), BattlePresentation_AppendLinkedActions(), BattlePresentation_BuildActions(), BattlePresentation_BuildSortedUnitEntries(), and BattleQueue_SortByPriority().
| s16 BattleActionRecord::command |
enum BattleCommand
Definition at line 58 of file battle_session.h.
Referenced by Battle_CollectPartyCommands(), BattleCommand_BuildPlan(), BattleCommand_SelectAutomatic(), BattlePres_BuildOpponentEntries(), BattlePres_BuildUnitEntries(), BattlePres_RunItem(), BattlePresentation_BuildActions(), BattlePresentation_BuildSortedUnitEntries(), and BattleQueue_SortByPriority().
| s16 BattleActionRecord::parameter |
an ability id, or CMD_ITEM's inventory index (-1 gone)
Definition at line 59 of file battle_session.h.
Referenced by Battle_CollectPartyCommands(), BattleCommand_BuildPlan(), BattleCommand_SelectAutomatic(), BattlePres_BuildOpponentEntries(), BattlePres_BuildUnitEntries(), BattlePres_RunItem(), BattlePres_RunUnitAction(), BattlePresentation_BuildSortedUnitEntries(), BattlePresentation_RunPairedUnitTransition(), and BattleQueue_SortByPriority().
| s16 BattleActionRecord::target |
the aimed unit's id
Definition at line 60 of file battle_session.h.
Referenced by Battle_CollectPartyCommands(), BattleCommand_BuildPlan(), BattleCommand_SelectAutomatic(), BattlePres_BuildOpponentEntries(), BattlePres_BuildUnitEntries(), BattlePres_RunApproachAction(), BattlePres_RunUnitAction(), BattlePresentation_AppendLinkedActions(), BattlePresentation_BuildSortedUnitEntries(), BattlePresentation_RunPairedUnitTransition(), and BattleTarget_ReplaceDefeated().
| s16 BattleActionRecord::range |
the action's range
Definition at line 61 of file battle_session.h.
Referenced by Battle_CollectPartyCommands(), BattleCommand_BuildPlan(), BattleCommand_SelectAutomatic(), and BattlePres_RunUnitAction().
| s16 BattleActionRecord::unk0e |
not named by TBS code
Definition at line 62 of file battle_session.h.