Alchemy
Loading...
Searching...
No Matches

carry.c File Reference

Carry: two hands lift the target, move it with the d-pad and drop it. More...

Go to the source code of this file.

Macros

#define CARRY_SHARD_MAX   20
 shards

Functions

 STATIC_ASSERT (sizeof(struct EffectVector)==0x0c)
void BattleFx_SpawnFallingParticles (void)
 Per-frame update: drops one particle round the lifted object, 8 to 24 pixels above it and 0 to 48 pixels away in a random direction.
static __inline__ s32 BattleFx_CheckRaisedTargetCollision (struct FieldActor *target, struct EffectVector *position)
 Tests the target's move with its terrain reference raised 16 pixels.
void BattleFx_SteerLiftedTarget (s32 targetId)
 Two hands lift it to 24 pixels above the ground; the d-pad moves it 16 pixels at a time and A, B, L or R drops it where it is.
void FieldFx_RunCarry (void)
 Carry cast with no target: objects appear above the caster and to either side, move apart and scatter into shards.
struct MotionObject * BattleFx_SpawnItemBreakMode1 (s32 x, s32 y, s32 z, s32 angle)
 Spawns object 215 with the item break sound, in animation 1, and grows it, spinning, from a quarter to full size over 24 frames; angle is the way it faces once grown.

Detailed Description

Carry: two hands lift the target, move it with the d-pad and drop it.

Part of psynergy_effects.c, compiled only through it.

Definition in file carry.c.

Macro Definition Documentation

◆ CARRY_SHARD_MAX

#define CARRY_SHARD_MAX   20

shards

Definition at line 30 of file carry.c.

Referenced by BattleFx_SteerLiftedTarget().

Function Documentation

◆ STATIC_ASSERT()

STATIC_ASSERT ( sizeof(struct EffectVector) = =0x0c)

◆ BattleFx_SpawnFallingParticles()

void BattleFx_SpawnFallingParticles ( void )

Per-frame update: drops one particle round the lifted object, 8 to 24 pixels above it and 0 to 48 pixels away in a random direction.

Definition at line 11 of file carry.c.

Referenced by BattleFx_SpawnFallingParticles(), BattleFx_SteerLiftedTarget(), and Djinn_ResolvePendingEvent().

◆ BattleFx_CheckRaisedTargetCollision()

__inline__ s32 BattleFx_CheckRaisedTargetCollision ( struct FieldActor * target,
struct EffectVector * position )
static

Tests the target's move with its terrain reference raised 16 pixels.

Restore the reference before returning the collision result.

Definition at line 35 of file carry.c.

Referenced by BattleFx_CheckRaisedTargetCollision(), and BattleFx_SteerLiftedTarget().

◆ BattleFx_SteerLiftedTarget()

void BattleFx_SteerLiftedTarget ( s32 targetId)

Two hands lift it to 24 pixels above the ground; the d-pad moves it 16 pixels at a time and A, B, L or R drops it where it is.

Abilities: Carry (field kind 11), cast on a target.

Where the way is blocked a buzzer sounds.

Definition at line 52 of file carry.c.

Referenced by BattleFx_DispatchRequestKind(), BattleFx_SteerLiftedTarget(), and Djinn_ResolvePendingEvent().

◆ FieldFx_RunCarry()

void FieldFx_RunCarry ( void )

Carry cast with no target: objects appear above the caster and to either side, move apart and scatter into shards.

Abilities: Carry (field kind 11), cast with no target.

Definition at line 285 of file carry.c.

Referenced by BattleFx_Run(), and FieldFx_RunCarry().

◆ BattleFx_SpawnItemBreakMode1()

struct MotionObject * BattleFx_SpawnItemBreakMode1 ( s32 x,
s32 y,
s32 z,
s32 angle )

Spawns object 215 with the item break sound, in animation 1, and grows it, spinning, from a quarter to full size over 24 frames; angle is the way it faces once grown.

Definition at line 290 of file carry.c.

Referenced by BattleFx_SpawnItemBreakMode1(), BattleFx_SteerLiftedTarget(), Djinn_ResolvePendingEvent(), and FieldFx_RunCarry().