Skip to Content
The Alchemy Project

include/field/particle.h

Particle and SCREEN_POINT, the positions animations move through.

Included by battle_effect_internal.h, screens_internal.h, window_internal.h and battle_effect_state.h.

Structures

NameDescription
structPARTICLEA particle of an animation: its position, its velocity and a value each animation uses its own way (a size, a timer, -1 for idle).
structSCREEN_POINTA point projected onto the screen, with its depth.

Functions

NameDescription
static inline const Sint32 *btParticleCoordinates (const PARTICLE *step)Returns the particle's three coordinates as an array.
static inline Sint32 *fdScreenPointCoordinates (SCREEN_POINT *pos)Returns the position's three coordinates as an array.

Description

Particle and SCREEN_POINT, the positions animations move through.

Functions in detail

btParticleCoordinates

static inline const Sint32 *btParticleCoordinates(const PARTICLE *step)

Returns the particle's three coordinates as an array. UB: indexing from &x crosses the particle's separate scalar members. UBFIX supplies a real coordinate array without including motion state.

References Sint32.

Referenced by btEffectRunAstralBlast().

Definition at line 41 of file particle.h.

fdScreenPointCoordinates

static inline Sint32 *fdScreenPointCoordinates(SCREEN_POINT *pos)

Returns the position's three coordinates as an array. UB: indexing from &x crosses separate scalar members of the point. UBFIX provides a real array while keeping the animations' named coordinates.

References Sint32.

Referenced by btEffectRunAttackSlash(), btEffectRunBind(), btEffectRunStarfieldFall(), btEffectRunUnusedTriangleStrike(), btElementGlowPlay(), btProjectionPoint(), btProjectionScaledUnit(), btProjectionSprite(), btProjectionUnit() and mnSelectionMenuDraw().

Definition at line 76 of file particle.h.