include/battle/battle_effect_params.h
BATTLE_EFFECT_PARM, the command an effect's caller, dispatcher and handlers share, and the macros that define effect kinds.
Included by battle_camera.h and battle_effect_state.h.
Structures
| Name | Description | |
|---|---|---|
struct | BATTLE_EFFECT_PARM | The command shared by an effect's caller, dispatcher and handlers. |
Macros
| Name | Description | |
|---|---|---|
#define | EFFECT_ID_CRITICAL_OFFSET 200 | What a critical hit adds to an attack's effect kind: btStagingRunAttack plays the critical version of the blow. |
#define | EFFECT_FOR_EACH_TARGET (i, effect) | Loops i over the effect's targets, effect->targets[0] to effect->targets[effect->targetCount - 1]: the loops that flash, shake, strike or aim at each target in turn. |
Enumerations
| Name | Description | |
|---|---|---|
enum | BATTLE_EFFECT_SIDE { EFFECT_SIDE_ENEMIES, EFFECT_SIDE_PARTY } | BATTLE_EFFECT_PARM.side: the side the targets are on. |
Description
BATTLE_EFFECT_PARM, the command an effect's caller, dispatcher and handlers
share, and the macros that define effect kinds.
Macros in detail
EFFECT_ID_CRITICAL_OFFSET
#define EFFECT_ID_CRITICAL_OFFSET 200
What a critical hit adds to an attack's effect kind: btStagingRunAttack plays
the critical version of the blow. Only plain attacks score critical hits, and
their kinds are 1 to 5, all dispatched by id range, so it reaches kinds 201
to 205: the ring and spark effect, the same for each.
Referenced by btStagingRunAttack().
Definition at line 21 of file battle_effect_params.h.
EFFECT_FOR_EACH_TARGET
#define EFFECT_FOR_EACH_TARGET(i, effect)
Loops i over the effect's targets, effect->targets[0] to
effect->targets[effect->targetCount - 1]: the loops that flash, shake, strike
or aim at each target in turn.
Referenced by btEffectRunBolt(), btEffectRunBoreas(), btEffectRunBreak(), btEffectRunCurse(), btEffectRunCybele(), btEffectRunDjinnBeams(), btEffectRunDjinnHeal(), btEffectRunDouse(), btEffectRunDragonFire(), btEffectRunDrain(), btEffectRunEruption(), btEffectRunFrost(), btEffectRunFroth(), btEffectRunGaia(), btEffectRunGatheringLights(), btEffectRunHaunt(), btEffectRunHealingMotes(), btEffectRunIce(), btEffectRunJudgment(), btEffectRunJupiter(), btEffectRunKirin(), btEffectRunLobbedShells(), btEffectRunMars(), btEffectRunMercury(), btEffectRunMoteFountain(), btEffectRunNeptune(), btEffectRunNereid(), btEffectRunOrbitingSkulls(), btEffectRunPlasma(), btEffectRunPrism(), btEffectRunProcne(), btEffectRunProjectileVolley(), btEffectRunQuake(), btEffectRunRagnarok(), btEffectRunRamses(), btEffectRunRay(), btEffectRunShiningStar(), btEffectRunSleep(), btEffectRunSparkGroups(), btEffectRunSpiderWeb(), btEffectRunSpire(), btEffectRunStatBoost(), btEffectRunStatReduction(), btEffectRunStreakVolley(), btEffectRunTargetBursts(), btEffectRunTargetMotes(), btEffectRunThor(), btEffectRunThorn(), btEffectRunTitanBlade(), btEffectRunUnusedOrbitingSpirals() and 4 more.
Definition at line 46 of file battle_effect_params.h.
Enumerations in detail
BATTLE_EFFECT_SIDE
enum BATTLE_EFFECT_SIDE
BATTLE_EFFECT_PARM.side: the side the targets are on.
| Enumerator | Value | Description |
|---|---|---|
EFFECT_SIDE_ENEMIES | ||
EFFECT_SIDE_PARTY |
Definition at line 11 of file battle_effect_params.h.