Skip to Content
The Alchemy Project

include/field/field_particle.h

The field effect sprites the field Psynergy keeps (FIELD_PARTICLE).

Included by field_psynergy_internal.h, script_commands_internal.h, shop_internal.h, field_engine_functions.h, field_psynergy.h, field_psynergy_state.h and script_commands.h.

Structures

NameDescription
structFIELD_PARTICLEA particle a Psynergy effect moves and draws: its sprite, its position and target, its speed, scale and heading, and its per-tick callback.

Macros

NameDescription
#defineEFFECT_NO_TARGET ((Sint32)0x80000000)A targetX that marks an effect with no target to steer toward.
#defineFIELD_PARTICLE_LIFTED_BY_Z 0x04FIELD_PARTICLE.flags: z also lifts the sprite off the ground.

Typedefs

NameDescription
typedef void (*EFFECT_CALLBACK )(struct FIELD_PARTICLE *);

Enumerations

NameDescription
enumOUT_AND_BACK_STATE { OUT_AND_BACK_AIM_OUT, OUT_AND_BACK_FLYING_OUT, OUT_AND_BACK_ … }The states of a particle that flies out and back: Halt's and Force's (fdEffectUpdateHaltParticle, fdEffectUpdateRadialBurst).

Description

The field effect sprites the field Psynergy keeps (FIELD_PARTICLE).

Macros in detail

EFFECT_NO_TARGET

#define EFFECT_NO_TARGET ((Sint32)0x80000000)

A targetX that marks an effect with no target to steer toward.

Referenced by fdParticleHasPendingTarget(), fdParticleSetPos() and fdParticleUpdateMotion().

Definition at line 12 of file field_particle.h.

FIELD_PARTICLE_LIFTED_BY_Z

#define FIELD_PARTICLE_LIFTED_BY_Z 0x04

FIELD_PARTICLE.flags: z also lifts the sprite off the ground.

Referenced by fdEffectUpdateMarsSpark(), fdParticleDraw() and fdParticleInit().

Definition at line 58 of file field_particle.h.

Typedefs in detail

EFFECT_CALLBACK

typedef void (*EFFECT_CALLBACK)(struct FIELD_PARTICLE *);

Referenced by fdParticleSetCallback().

Definition at line 15 of file field_particle.h.

Enumerations in detail

OUT_AND_BACK_STATE

enum OUT_AND_BACK_STATE

The states of a particle that flies out and back: Halt's and Force's (fdEffectUpdateHaltParticle, fdEffectUpdateRadialBurst).

EnumeratorValueDescription
OUT_AND_BACK_AIM_OUT0picks the point it flies out to
OUT_AND_BACK_FLYING_OUT1waits to arrive there
OUT_AND_BACK_AIM_BACK2picks the point it comes back to
OUT_AND_BACK_FLYING_BACK3frees its slot once it arrives

Definition at line 66 of file field_particle.h.