Skip to Content
The Alchemy Project

include/battle/battle_action_run.h

BATTLE_PLAN: one action of a turn laid out target by target, from the moment it is chosen to the damage it deals, and the effect that stages it.

Included by battle_internal.h, menu_internal.h, battle.h, battle_state.h and game.h.

Structures

NameDescription
structBATTLE_PLANOne action, laid out for btAbilityApplyToTarget to apply target by target.

Macros

NameDescription
#defineHIT_NOT_ROLLED -1BATTLE_PLAN.targetHit while the hit is still to be rolled, as the ability lands; btActionRunBuild rolls it ahead only for Annihilation and Whorl.

Enumerations

NameDescription
enumanonymous enum { BATTLE_TARGET_CAPACITY, BATTLE_PLAN_SIZE }The most targets one action has (BATTLE_PLAN), and a plan's size in bytes.
enumBATTLE_CRITICAL { CRITICAL_NONE, CRITICAL_HIT, CRITICAL_STRONG }BATTLE_PLAN.targetCritical: the critical hit rolled for each target.
enumBATTLE_ACTION_FAILURE { ACTION_FAILURE_NONE, ACTION_FAILURE_SEALED, ACTION_FAILURE_N … }BATTLE_PLAN.failure: why a cast plays no effect, which the staging shows.

Description

BATTLE_PLAN: one action of a turn laid out target by target, from the moment it is chosen to the damage it deals, and the effect that stages it.

Macros in detail

HIT_NOT_ROLLED

#define HIT_NOT_ROLLED -1

BATTLE_PLAN.targetHit while the hit is still to be rolled, as the ability lands; btActionRunBuild rolls it ahead only for Annihilation and Whorl.

Referenced by btAbilityApplyToTarget() and btActionRunBuild().

Definition at line 27 of file battle_action_run.h.

Enumerations in detail

anonymous enum

enum { BATTLE_TARGET_CAPACITY, BATTLE_PLAN_SIZE }

The most targets one action has (BATTLE_PLAN), and a plan's size in bytes.

EnumeratorValueDescription
BATTLE_TARGET_CAPACITY14
BATTLE_PLAN_SIZE100

Definition at line 11 of file battle_action_run.h.

BATTLE_CRITICAL

enum BATTLE_CRITICAL

BATTLE_PLAN.targetCritical: the critical hit rolled for each target.

EnumeratorValueDescription
CRITICAL_NONE
CRITICAL_HITan attack's: a quarter more damage
CRITICAL_STRONGan ability's (effects 36 to 40): half as much again

Definition at line 18 of file battle_action_run.h.

BATTLE_ACTION_FAILURE

enum BATTLE_ACTION_FAILURE

BATTLE_PLAN.failure: why a cast plays no effect, which the staging shows.

EnumeratorValueDescription
ACTION_FAILURE_NONE
ACTION_FAILURE_SEALED"blocked": the user's Psynergy is sealed
ACTION_FAILURE_NO_PPthe user has too little PP

Definition at line 30 of file battle_action_run.h.