Skip to Content
The Alchemy Project

struct SCOOP_STATE

Scoop's state (heap slot HEAP_SLOT_BATTLE_EFFECT): the dust and sparkle tiles, the picture that ripples as the ground is dug, 64 particles, the sprite that digs and the one left where it dug, and the stage of the cast.

Declared in field_psynergy_state.h.

Fields

NameDescription
Uint8tiles [1024]
Uint8picture [SCOOP_PICTURE_SIZE * SCOOP_PICTURE_SIZE]
EFFECT_SPRsprites [SCOOP_PARTICLE_COUNT]
FIELD_PSYNERGY_PARTICLEparticles [SCOOP_PARTICLE_COUNT]
EFFECT_SPRpictureSprite
Sint16phaseThe stage of the cast; FIELD_PSYNERGY_FINISHED once it ends.
Sint16timerTicks into the stage.
Sint16particleTile
Sint16pictureTile
struct ACTOR *actorSPRITE_SCOOP_HAND, which digs and sinks as it does.
struct ACTOR *otherSPRITE_BROWN_BOULDER (grey where lit), where it digs.
Sint16modeThe kind of dig: 2 cast on a target; cast at nothing, 1 one time in sixteen (an item turns up), else 0, or 3 where lit is set.

Description

Scoop's state (heap slot HEAP_SLOT_BATTLE_EFFECT): the dust and sparkle tiles, the picture that ripples as the ground is dug, 64 particles, the sprite that digs and the one left where it dug, and the stage of the cast.

struct SCOOP_STATE

Referenced by fdPsynergyScoop(), fdScoopDigUpItem(), fdScoopDropFromHand(), fdScoopUpdate() and scYampiDesertCaveScoopDjinni().

Definition at line 47 of file field_psynergy_state.h.

Fields in detail

tiles

Uint8 tiles[1024]

picture

Uint8 picture[SCOOP_PICTURE_SIZE * SCOOP_PICTURE_SIZE]

sprites

EFFECT_SPR sprites[SCOOP_PARTICLE_COUNT]

particles

FIELD_PSYNERGY_PARTICLE particles[SCOOP_PARTICLE_COUNT]

pictureSprite

EFFECT_SPR pictureSprite

phase

Sint16 phase

The stage of the cast; FIELD_PSYNERGY_FINISHED once it ends.

timer

Sint16 timer

Ticks into the stage.

particleTile

Sint16 particleTile

pictureTile

Sint16 pictureTile

actor

struct ACTOR *actor

SPRITE_SCOOP_HAND, which digs and sinks as it does.

other

struct ACTOR *other

SPRITE_BROWN_BOULDER (grey where lit), where it digs.

mode

Sint16 mode

The kind of dig: 2 cast on a target; cast at nothing, 1 one time in sixteen (an item turns up), else 0, or 3 where lit is set.