Skip to Content
The Alchemy Project

include/battle/battle_effect_params.h

The command a battle effect is run with: its kind, its user and its targets.

Included by battle_internal.h, battle_effect_internal.h and battle_effect_state.h.

Structures

NameDescription
structBATTLE_EFFECT_PARMThe command shared by an effect's caller, dispatcher and handlers.

Macros

NameDescription
#defineEFFECT_ID_CRITICAL_OFFSET 200What a critical hit adds to an attack's effect kind: btStagingRunAttack plays the critical version of the blow, as The Broken Seal's does.
#defineEFFECT_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

NameDescription
enumBATTLE_EFFECT_SIDE { EFFECT_SIDE_ENEMIES, EFFECT_SIDE_PARTY }BATTLE_EFFECT_PARM.side: the side the targets are on.

Description

The command a battle effect is run with: its kind, its user and its targets.

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, as The Broken Seal's does.

Referenced by btEffectRunBallAttack(), btEffectRunByIdRange(), btEffectRunCriticalHit() and btStagingRunAttack().

Definition at line 18 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(), btEffectRunCrystal(), btEffectRunCurse(), btEffectRunCybele(), btEffectRunDjinnBeams(), btEffectRunDjinnHeal(), btEffectRunDouse(), btEffectRunDragonFire(), btEffectRunEruption(), btEffectRunFlare(), btEffectRunFrost(), btEffectRunFroth(), btEffectRunGaia(), btEffectRunGatheringLights(), btEffectRunHaunt(), btEffectRunIce(), btEffectRunJupiter(), btEffectRunKirin(), btEffectRunLobbedShells(), btEffectRunMars(), btEffectRunMercury(), btEffectRunNeptune(), btEffectRunPlasma(), btEffectRunPrism(), btEffectRunProcne(), btEffectRunQuake(), btEffectRunRamses(), btEffectRunRay(), btEffectRunSleep(), btEffectRunSparkGroups(), btEffectRunSpire(), btEffectRunStreakVolley(), btEffectRunTargetBursts(), btEffectRunTargetMotes(), btEffectRunUnusedOrbitingSpirals(), btEffectRunVenus(), btEffectRunVolcano() and btEffectRunWhirlwind().

Definition at line 42 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.

EnumeratorValueDescription
EFFECT_SIDE_ENEMIES
EFFECT_SIDE_PARTY

Definition at line 10 of file battle_effect_params.h.