Skip to Content
The Alchemy Project

src/field/field_psynergy_internal.h

What every part of the field_psynergy object shares: its includes. More…

Included by field_psynergy.c.

Structures

NameDescription
structWHIRL_SPARKA spark that circles a centre: the centre in 16.16 fixed-point pixels, the angle and radius it is drawn at, and its age in ticks (-1 while unused).
structCYCLONE_STATECyclone's state (heap slot HEAP_SLOT_BATTLE_EFFECT): the particle burst (PARTICLE_BURST_STATE) at its start (run when kind is nonzero for a nearby kind-1 metatile from fdPsynergyGatherNearbyMetatiles), then the leader's ride on the whirlwind.

Macros

NameDescription
#defineCAST_THROW_STEPS 10The steps, one a tick, in which Halt's and Catch's effects fly from the caster to their target or back.
#defineMAP_SHAPE_FREE 255The shape of a free entry among the map's shape entries (fdMapShapeFindOrAdd).
#defineSWAY_START toFIXED(2)The view's sway (fdViewMoveSwing) as fdPsynergyRun casts Tremor and Grind at no object, in 16.16 pixels: it grows from SWAY_START to SWAY_PEAK by SWAY_RAMP a tick, holds for SWAY_HOLD_TICKS, and shrinks back to SWAY_START.
#defineSWAY_PEAK toFIXED(6)
#defineSWAY_RAMP (toFIXED(3) / 20)0.15 pixels a tick
#defineSWAY_HOLD_TICKS 10
#defineGLOW_RED 28The cycling glow of the Parch disc and the Ring: red stays put while green and blue swing either side of their middles, each colour a step further along the swing.
#defineGLOW_GREEN 23
#defineGLOW_GREEN_SWING 8
#defineGLOW_BLUE 12
#defineGLOW_BLUE_SWING 10
#defineCANVAS_SHINE_MIDDLE 16The cycling shine of Burst's and Pound's canvas: one channel or two swing CANVAS_SHINE_SWING levels either side of CANVAS_SHINE_MIDDLE.
#defineCANVAS_SHINE_SWING 12
#defineOBJ_TILES_PER_8BPP_TILE (TILE_SIZE_8BPP / TILE_SIZE_4BPP)A 256-colour picture's size in the 16-colour tiles a sprite counts.

Enumerations

NameDescription
enumRETREAT_PARTICLE_STATE { RETREAT_PARTICLE_AIM, RETREAT_PARTICLE_FLYING, RETREAT_PARTI … }The states of a Retreat particle (fdRetreatUpdateSpark).
enumWORLD_MARKER_TILE { WORLD_MARKER_TILE_PARTY, WORLD_MARKER_TILE_SHIP, WORLD_MARKE … }The map screen's marker tiles (fdMapScreenInit draws them).

Description

What every part of the field_psynergy object shares: its includes. field_psynergy.c includes it before the parts, and each part includes it too.

Macros in detail

CAST_THROW_STEPS

#define CAST_THROW_STEPS 10

The steps, one a tick, in which Halt's and Catch's effects fly from the caster to their target or back.

Referenced by fdCatchInterpolate(), fdPsynergyCatch() and fdPsynergyHalt().

Definition at line 50 of file field_psynergy_internal.h.

MAP_SHAPE_FREE

#define MAP_SHAPE_FREE 255

The shape of a free entry among the map's shape entries (fdMapShapeFindOrAdd).

Referenced by fdMapShapeFindOrAdd().

Definition at line 54 of file field_psynergy_internal.h.

SWAY_START

#define SWAY_START toFIXED(2)

The view's sway (fdViewMoveSwing) as fdPsynergyRun casts Tremor and Grind at no object, in 16.16 pixels: it grows from SWAY_START to SWAY_PEAK by SWAY_RAMP a tick, holds for SWAY_HOLD_TICKS, and shrinks back to SWAY_START. Tremor's stronger sway at an object starts and ends there too.

Referenced by fdPsynergyGrind(), fdPsynergyTremor() and fdPsynergyTremorOnTarget().

Definition at line 82 of file field_psynergy_internal.h.

SWAY_PEAK

#define SWAY_PEAK toFIXED(6)

Referenced by fdPsynergyGrind() and fdPsynergyTremor().

Definition at line 83 of file field_psynergy_internal.h.

SWAY_RAMP

#define SWAY_RAMP (toFIXED(3) / 20)

0.15 pixels a tick

Referenced by fdPsynergyGrind() and fdPsynergyTremor().

Definition at line 84 of file field_psynergy_internal.h.

SWAY_HOLD_TICKS

#define SWAY_HOLD_TICKS 10

Referenced by fdPsynergyGrind() and fdPsynergyTremor().

Definition at line 85 of file field_psynergy_internal.h.

GLOW_RED

#define GLOW_RED 28

The cycling glow of the Parch disc and the Ring: red stays put while green and blue swing either side of their middles, each colour a step further along the swing.

Referenced by fdPsynergyParch() and fdPsynergyUpdateRing().

Definition at line 110 of file field_psynergy_internal.h.

GLOW_GREEN

#define GLOW_GREEN 23

Referenced by fdPsynergyParch() and fdPsynergyUpdateRing().

Definition at line 111 of file field_psynergy_internal.h.

GLOW_GREEN_SWING

#define GLOW_GREEN_SWING 8

Referenced by fdPsynergyParch() and fdPsynergyUpdateRing().

Definition at line 112 of file field_psynergy_internal.h.

GLOW_BLUE

#define GLOW_BLUE 12

Referenced by fdPsynergyParch() and fdPsynergyUpdateRing().

Definition at line 113 of file field_psynergy_internal.h.

GLOW_BLUE_SWING

#define GLOW_BLUE_SWING 10

Referenced by fdPsynergyParch() and fdPsynergyUpdateRing().

Definition at line 114 of file field_psynergy_internal.h.

CANVAS_SHINE_MIDDLE

#define CANVAS_SHINE_MIDDLE 16

The cycling shine of Burst's and Pound's canvas: one channel or two swing CANVAS_SHINE_SWING levels either side of CANVAS_SHINE_MIDDLE.

Referenced by fdPsynergyUpdateBurst() and fdPsynergyUpdatePound().

Definition at line 117 of file field_psynergy_internal.h.

CANVAS_SHINE_SWING

#define CANVAS_SHINE_SWING 12

Referenced by fdPsynergyUpdateBurst() and fdPsynergyUpdatePound().

Definition at line 118 of file field_psynergy_internal.h.

OBJ_TILES_PER_8BPP_TILE

#define OBJ_TILES_PER_8BPP_TILE (TILE_SIZE_8BPP / TILE_SIZE_4BPP)

A 256-colour picture's size in the 16-colour tiles a sprite counts.

Referenced by fdActorAppearInSparks(), fdTeleportPlaySparks() and fdTeleportPlayWhirl().

Definition at line 130 of file field_psynergy_internal.h.

Enumerations in detail

RETREAT_PARTICLE_STATE

enum RETREAT_PARTICLE_STATE

The states of a Retreat particle (fdRetreatUpdateSpark).

EnumeratorValueDescription
RETREAT_PARTICLE_AIM0placed on the main actor and aimed
RETREAT_PARTICLE_FLYING1back to RETREAT_PARTICLE_AIM on arrival
RETREAT_PARTICLE_LAST_FLIGHT2Set by fdPsynergyRetreat: freed on arrival

Definition at line 70 of file field_psynergy_internal.h.

WORLD_MARKER_TILE

enum WORLD_MARKER_TILE

The map screen's marker tiles (fdMapScreenInit draws them).

EnumeratorValueDescription
WORLD_MARKER_TILE_PARTY0where the party is
WORLD_MARKER_TILE_SHIP2
WORLD_MARKER_TILE_NEAREST3the larger dot on the place nearest the cursor

Definition at line 121 of file field_psynergy_internal.h.