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
| Name | Description | |
|---|---|---|
struct | BATTLE_PLAN | One action, laid out for btAbilityApplyToTarget to apply target by target. |
Macros
| Name | Description | |
|---|---|---|
#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. |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { BATTLE_TARGET_CAPACITY, BATTLE_PLAN_SIZE } | The most targets one action has (BATTLE_PLAN), and a plan's size in bytes. |
enum | BATTLE_CRITICAL { CRITICAL_NONE, CRITICAL_HIT, CRITICAL_STRONG } | BATTLE_PLAN.targetCritical: the critical hit rolled for each target. |
enum | BATTLE_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.
| Enumerator | Value | Description |
|---|---|---|
BATTLE_TARGET_CAPACITY | 14 | |
BATTLE_PLAN_SIZE | 100 |
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.
| Enumerator | Value | Description |
|---|---|---|
CRITICAL_NONE | ||
CRITICAL_HIT | an attack's: a quarter more damage | |
CRITICAL_STRONG | an 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.
| Enumerator | Value | Description |
|---|---|---|
ACTION_FAILURE_NONE | ||
ACTION_FAILURE_SEALED | "blocked": the user's Psynergy is sealed | |
ACTION_FAILURE_NO_PP | the user has too little PP |
Definition at line 30 of file battle_action_run.h.