Alchemy
Loading...
Searching...
No Matches

BattleActionRecord Struct Reference

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

Detailed Description

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.

Field Documentation

◆ unitId

◆ slot

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().

◆ priority

◆ command

◆ parameter

◆ target

◆ range

s16 BattleActionRecord::range

◆ unk0e

s16 BattleActionRecord::unk0e

not named by TBS code

Definition at line 62 of file battle_session.h.