Skip to Content
The Alchemy Project

include/field/field_particle.h

The particles field Psynergy moves and draws, each with a sprite of its own.

Included by engine_stubs.h, field_engine.h, field_engine_functions.h, field_psynergy_state.h, script_commands.h and shop.h.

Structures

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

Macros

NameDescription
#defineFIELD_PARTICLE_NO_TARGET ((Sint32)0x80000000)FIELD_PARTICLE.targetX and targetZ while the particle has no target, at rest.

Typedefs

NameDescription
typedef void (*EFFECT_CALLBACK )(struct FIELD_PARTICLE *);A particle's per-tick function (FIELD_PARTICLE.callback).

Enumerations

NameDescription
enumFIELD_PARTICLE_FLAG { FIELD_PARTICLE_SORTED_IN_FRONT }FIELD_PARTICLE.flags bits.

Description

The particles field Psynergy moves and draws, each with a sprite of its own.

Macros in detail

FIELD_PARTICLE_NO_TARGET

#define FIELD_PARTICLE_NO_TARGET ((Sint32)0x80000000)

FIELD_PARTICLE.targetX and targetZ while the particle has no target, at rest.

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

Definition at line 12 of file field_particle.h.

Typedefs in detail

EFFECT_CALLBACK

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

A particle's per-tick function (FIELD_PARTICLE.callback).

Referenced by fdParticleSetCallback().

Definition at line 16 of file field_particle.h.

Enumerations in detail

FIELD_PARTICLE_FLAG

enum FIELD_PARTICLE_FLAG

FIELD_PARTICLE.flags bits.

EnumeratorValueDescription
FIELD_PARTICLE_SORTED_IN_FRONT0x04Placed 508 pixels down the screen for the depth sort and raised back to its own z, so that it shows where it is but sorts in front of what stands on the field; set when it is filled (fdParticleInit).

Definition at line 61 of file field_particle.h.