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
| Name | Description | |
|---|---|---|
struct | FIELD_PARTICLE | A particle a Psynergy effect moves and draws: its sprite, its position and target, its speed, scale and heading, and its per-tick callback. |
Macros
| Name | Description | |
|---|---|---|
#define | EFFECT_NO_TARGET ((Sint32)0x80000000) | A targetX that marks an effect with no target to steer toward. |
#define | FIELD_PARTICLE_LIFTED_BY_Z 0x04 | FIELD_PARTICLE.flags: z also lifts the sprite off the ground. |
Typedefs
| Name | Description | |
|---|---|---|
typedef void (* | EFFECT_CALLBACK )(struct FIELD_PARTICLE *); |
Enumerations
| Name | Description | |
|---|---|---|
enum | OUT_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).
| Enumerator | Value | Description |
|---|---|---|
OUT_AND_BACK_AIM_OUT | 0 | picks the point it flies out to |
OUT_AND_BACK_FLYING_OUT | 1 | waits to arrive there |
OUT_AND_BACK_AIM_BACK | 2 | picks the point it comes back to |
OUT_AND_BACK_FLYING_BACK | 3 | frees its slot once it arrives |
Definition at line 66 of file field_particle.h.