src/field/field_psynergy_internal.h
What every part of the field_psynergy object shares: its includes. More…
#include "field/world_map.h"#include "window/window.h"#include "window/stubs.h"#include "field/perspective.h"#include "system.h"#include "game/main_routine_state.h"#include "field/field_effect.h"#include "field/field_effect_scripts.h"#include "field/stubs.h"#include "field/facing.h"#include "fixed_math.h"#include "types.h"#include "macros.h"#include "battle/battle_actor.h"#include "field/scene_tables.h"#include "battle/battle.h"#include "debug/debug.h"#include "field/field.h"#include "game/game.h"#include "menu/menu.h"#include "sound/sound.h"#include "field/actor.h"#include "field/field_psynergy.h"#include "field/field_psynergy_state.h"#include "field/sprite.h"#include "field/field_script.h"#include "field/field_particle.h"#include "field/effect_sprite.h"#include "field/script.h"#include "graphics/graphics.h"#include "scene_ids.h"#include "item_ids.h"#include "text/msg_ids.h"#include "field/arc_effect.h"#include "field/canvas_sprite.h"#include "field/map_grid.h"#include "field/field_engine.h"
Included by field_psynergy.c.
Structures
| Name | Description | |
|---|---|---|
struct | WHIRL_SPARK | A 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). |
struct | CYCLONE_STATE | Cyclone'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
| Name | Description | |
|---|---|---|
#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. |
#define | MAP_SHAPE_FREE 255 | The shape of a free entry among the map's shape entries (fdMapShapeFindOrAdd). |
#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. |
#define | SWAY_PEAK toFIXED(6) | |
#define | SWAY_RAMP (toFIXED(3) / 20) | 0.15 pixels a tick |
#define | SWAY_HOLD_TICKS 10 | |
#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. |
#define | GLOW_GREEN 23 | |
#define | GLOW_GREEN_SWING 8 | |
#define | GLOW_BLUE 12 | |
#define | GLOW_BLUE_SWING 10 | |
#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. |
#define | CANVAS_SHINE_SWING 12 | |
#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. |
Enumerations
| Name | Description | |
|---|---|---|
enum | RETREAT_PARTICLE_STATE { RETREAT_PARTICLE_AIM, RETREAT_PARTICLE_FLYING, RETREAT_PARTI … } | The states of a Retreat particle (fdRetreatUpdateSpark). |
enum | WORLD_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).
| Enumerator | Value | Description |
|---|---|---|
RETREAT_PARTICLE_AIM | 0 | placed on the main actor and aimed |
RETREAT_PARTICLE_FLYING | 1 | back to RETREAT_PARTICLE_AIM on arrival |
RETREAT_PARTICLE_LAST_FLIGHT | 2 | Set 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).
| Enumerator | Value | Description |
|---|---|---|
WORLD_MARKER_TILE_PARTY | 0 | where the party is |
WORLD_MARKER_TILE_SHIP | 2 | |
WORLD_MARKER_TILE_NEAREST | 3 | the larger dot on the place nearest the cursor |
Definition at line 121 of file field_psynergy_internal.h.