src/battle_effect/battle_effect_positions.c
Where on the screen an effect draws: points and units projected through the battle camera, each set 16 pixels higher. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | EFFECT_RANGE_CASTING_IMPACT 100 | Where the casting impacts' effect kinds start, CASTING_IMPACT_KINDS of them. |
#define | CASTING_IMPACT_KINDS 101 |
Functions
| Name | Description | |
|---|---|---|
void | btEffectPosAdvanceWithGravity3D (PARTICLE *particle, Sint32 damping, Sint32 gravity) | Unused: moves a particle one tick in three dimensions, as btParticleAdvanceWithGravity3D does, which the effects call; nothing calls this copy. |
void | btEffectPosAdvanceWithGravity2D (PARTICLE *particle, Sint32 damping, Sint32 gravity) | Unused: moves a particle one tick on the screen, as btParticleAdvanceWithGravity2D does; nothing calls this copy. |
Sint32 | btEffectPosProjectPoint (const void *point, SCREEN_POINT *pos) | Projects a 16.16 point onto the screen through the current transform, 16 pixels higher; returns syConvert3Dto2D's result. |
void | btEffectPosProjectSprite (Sint32 id, SCREEN_POINT *pos) | Projects a unit's sprite onto the screen, raised by half its height, 16 pixels higher. |
void | btEffectPosProjectScaledBattler (Sint32 id, SCREEN_POINT *pos) | Projects a unit's place onto the screen at its scale, 16 pixels higher. |
void | btEffectPosProjectBattler (Sint32 id, SCREEN_POINT *pos) | Projects a unit's place onto the screen, 16 pixels higher. |
void | btEffectGetTargetsMidpoint (SCREEN_POINT *pos) | Midpoint between the first and last targets. |
Sint32 | btUnitProjectToScreen (Sint32 unit, Sint32 *screen) | Projects a unit onto the screen, raised by half its height, from the battle camera. |
void | btEffectReadKeysForEnemyTarget (void) | Unused: reads the held keys when the first target is an enemy and does nothing with them. |
void | btEffectRunByIdRange (BATTLE_EFFECT_PARM *args) | Runs a battle effect from the second range of kinds: the casting impacts, the plain attacks and their critical hits, and the ball an enemy class throws (ATTACK_EFFECT_BURST). |
Description
Where on the screen an effect draws: points and units projected through the
battle camera, each set 16 pixels higher. Also btEffectRunByIdRange, which
runs the casting impacts, the plain attacks and the critical hits by effect
kind; their own files draw them. Part of battle_effect.c.
Macros in detail
EFFECT_RANGE_CASTING_IMPACT
#define EFFECT_RANGE_CASTING_IMPACT 100
Where the casting impacts' effect kinds start, CASTING_IMPACT_KINDS of them.
Below them are the classes' plain attacks (ATTACK_EFFECT), and from
EFFECT_ID_CRITICAL_OFFSET on the same attacks landing as critical hits.
Referenced by btEffectRunByIdRange().
Definition at line 127 of file battle_effect_positions.c.
CASTING_IMPACT_KINDS
#define CASTING_IMPACT_KINDS 101
Referenced by btEffectRunByIdRange().
Definition at line 128 of file battle_effect_positions.c.
Functions in detail
btEffectPosAdvanceWithGravity3D
void btEffectPosAdvanceWithGravity3D(PARTICLE *particle, Sint32 damping, Sint32 gravity)
Unused: moves a particle one tick in three dimensions, as
btParticleAdvanceWithGravity3D does, which the effects call; nothing calls
this copy.
References Sint32.
Definition at line 9 of file battle_effect_positions.c.
btEffectPosAdvanceWithGravity2D
void btEffectPosAdvanceWithGravity2D(PARTICLE *particle, Sint32 damping, Sint32 gravity)
Unused: moves a particle one tick on the screen, as
btParticleAdvanceWithGravity2D does; nothing calls this copy.
References Sint32.
Definition at line 28 of file battle_effect_positions.c.
btEffectPosProjectPoint
Sint32 btEffectPosProjectPoint(const void *point, SCREEN_POINT *pos)
Projects a 16.16 point onto the screen through the current transform, 16
pixels higher; returns syConvert3Dto2D's result.
References fdScreenPointCoordinates(), result, Sint32 and syConvert3Dto2D().
Referenced by btEffectDrawStreaks(), btEffectRunAnnihilation(), btEffectRunAstralBlast(), btEffectRunAtalanta(), btEffectRunBind(), btEffectRunBreak(), btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunCoatlicue(), btEffectRunCriticalHit(), btEffectRunCrystal(), btEffectRunCybele(), btEffectRunDeathPlunge(), btEffectRunDjinnBeams(), btEffectRunDjinnHeal(), btEffectRunDjinniCharge(), btEffectRunDjinniEntrance(), btEffectRunDragonCloud(), btEffectRunDrainMotes(), btEffectRunElementPillar(), btEffectRunEruption(), btEffectRunFire(), btEffectRunFlora(), btEffectRunFlurry(), btEffectRunFrost(), btEffectRunFroth(), btEffectRunGaspFamily(), btEffectRunGatheringLights(), btEffectRunGround(), btEffectRunHaunt(), btEffectRunHealingMotes(), btEffectRunJudgment(), btEffectRunLightSurge(), btEffectRunLobbedShells(), btEffectRunMoteFountain(), btEffectRunNirvana(), btEffectRunProcne(), btEffectRunProjectileVolley(), btEffectRunQuake(), btEffectRunRadiantFire(), btEffectRunRushingStrike(), btEffectRunShiningStar(), btEffectRunSoulShatter(), btEffectRunStarfieldFall(), btEffectRunStarMine(), btEffectRunStarSwarm(), btEffectRunStatBoost(), btEffectRunStatReduction(), btEffectRunStreakVolley(), btEffectRunSwirlingStars() and 10 more.
Definition at line 44 of file battle_effect_positions.c.
btEffectPosProjectSprite
void btEffectPosProjectSprite(Sint32 id, SCREEN_POINT *pos)
Projects a unit's sprite onto the screen, raised by half its height, 16 pixels higher.
References btUnitProjectToScreen(), fdScreenPointCoordinates() and Sint32.
Referenced by btEffectRunAttackSlash(), btEffectRunBurstShower(), btEffectRunCards(), btEffectRunElementCards() and btEffectRunJuggle().
Definition at line 53 of file battle_effect_positions.c.
btEffectPosProjectScaledBattler
void btEffectPosProjectScaledBattler(Sint32 id, SCREEN_POINT *pos)
Projects a unit's place onto the screen at its scale, 16 pixels higher.
References btMotionProjectScaledPosStub(), fdScreenPointCoordinates() and Sint32.
Referenced by btEffectRunAnnihilation(), btEffectRunAtalanta(), btEffectRunAttackSlash(), btEffectRunBackstab(), btEffectRunBind(), btEffectRunBladeRain(), btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunCharon(), btEffectRunCondemn(), btEffectRunCriticalHit(), btEffectRunCurse(), btEffectRunDjinnBeams(), btEffectRunDragonFire(), btEffectRunElementBurst(), btEffectRunElementCards(), btEffectRunFirePuppet(), btEffectRunFlurry(), btEffectRunGaspFamily(), btEffectRunHealingMotes(), btEffectRunHeartbreak(), btEffectRunLifeShear(), btEffectRunMegiddo(), btEffectRunNeptune(), btEffectRunOdyssey(), btEffectRunRagingHeat(), btEffectRunSparkGroups(), btEffectRunSpire(), btEffectRunStatBoost(), btEffectRunStoneJustice(), btEffectRunSwirlSwipe(), btEffectRunTargetMotes(), btEffectRunTargetStrike(), btEffectRunTwistingColumn(), btEffectRunUnusedTriangleStrike(), btEffectRunVengeance() and btEffectRunVine().
Definition at line 60 of file battle_effect_positions.c.
btEffectPosProjectBattler
void btEffectPosProjectBattler(Sint32 id, SCREEN_POINT *pos)
Projects a unit's place onto the screen, 16 pixels higher.
References btMotionProjectPosStub(), fdScreenPointCoordinates() and Sint32.
Referenced by btEffectGetTargetsMidpoint(), btEffectRunBackstab(), btEffectRunBallLightning(), btEffectRunBolt(), btEffectRunBreaths(), btEffectRunCanvasBurst(), btEffectRunCatastrophe(), btEffectRunCool(), btEffectRunCrescentSlash(), btEffectRunCruelRuin(), btEffectRunDeathPlunge(), btEffectRunDiamondBerg(), btEffectRunDragonCloud(), btEffectRunElementPillar(), btEffectRunFallingSword(), btEffectRunFormChange(), btEffectRunFume(), btEffectRunGaspFamily(), btEffectRunGeode(), btEffectRunHail(), btEffectRunHeavyBlow(), btEffectRunHelmSplitter(), btEffectRunHurricane(), btEffectRunJuggle(), btEffectRunKirin(), btEffectRunLeapingStrike(), btEffectRunLegend(), btEffectRunLightSurge(), btEffectRunLiquifier(), btEffectRunMirroredWall(), btEffectRunOceanFist(), btEffectRunPlumeEdge(), btEffectRunProjectileVolley(), btEffectRunRagnarok(), btEffectRunRisingDragon(), btEffectRunRisingDragonEnemy(), btEffectRunRushingStrike(), btEffectRunSabreDance(), btEffectRunSoulShatter(), btEffectRunTargetStrike(), btEffectRunTripleChomp(), btEffectRunTumblingQuads(), btEffectRunTwistingColumn(), btEffectRunUndeadSword(), btEffectRunWaterSheet(), btEffectRunWhiplash() and btEffectRunWyrdCurse().
Definition at line 67 of file battle_effect_positions.c.
btEffectGetTargetsMidpoint
void btEffectGetTargetsMidpoint(SCREEN_POINT *pos)
Midpoint between the first and last targets.
References btEffectPosProjectBattler().
Referenced by btEffectRunCanvasBurst(), btEffectRunCards(), btEffectRunGeyser(), btEffectRunJuggle(), btEffectRunRay(), btEffectRunSleep(), btEffectRunSpiderWeb() and btEffectRunTrident().
Definition at line 74 of file battle_effect_positions.c.
btUnitProjectToScreen
Sint32 btUnitProjectToScreen(Sint32 unit, Sint32 *screen)
Projects a unit onto the screen, raised by half its height, from the battle camera.
References btActorGetSpriteStub(), btObjectGetStub(), btUnitGetEffectHeightStub(), Sint32 and syConvert3Dto2D().
Referenced by btEffectPosProjectSprite().
Definition at line 91 of file battle_effect_positions.c.
btEffectReadKeysForEnemyTarget
void btEffectReadKeysForEnemyTarget(void)
Unused: reads the held keys when the first target is an enemy and does nothing with them.
References PerWork.
Definition at line 110 of file battle_effect_positions.c.
btEffectRunByIdRange
void btEffectRunByIdRange(BATTLE_EFFECT_PARM *args)
Runs a battle effect from the second range of kinds: the casting impacts, the
plain attacks and their critical hits, and the ball an enemy class throws
(ATTACK_EFFECT_BURST).
References btEffectRunAttackSlash(), btEffectRunBallAttack(), btEffectRunCastingImpact(), btEffectRunCriticalHit(), Sint32, syHeapSlotAllocate(), syHeapSlotAllocateEWRAM() and syHeapSlotRelease().
Definition at line 133 of file battle_effect_positions.c.