Skip to Content
The Alchemy Project

struct PLACED_SPR

An actor's sprite (SPR) as the code that sets its image and shadow priorities reads it (the actors' freeze and placement, an actor taking the leader's layer): a byte at a time, under SPR's names.

Declared in sprite.h.

Fields

NameDescription
Uint8unused [9]no code names it
Uint8tileHigh : 2tile number bits 9..8
Uint8priority : 2
Uint8palette : 4
Uint8unusedAfterPalette [2]no code names it
FIXEDscale16.16 fixed point
Uint8slot
Uint8retainCacheEntrybit 0
Uint16rotation
Uint8unusedAfterRotation [5]no code names it
Uint8dirty
Uint8flags
Uint8unusedAfterFlags [10]no code names it
Uint8shadowTileHigh : 2
Uint8shadowPriority : 2
Uint8shadowPalette : 4

Description

An actor's sprite (SPR) as the code that sets its image and shadow priorities reads it (the actors' freeze and placement, an actor taking the leader's layer): a byte at a time, under SPR's names.

struct PLACED_SPR

Referenced by btObjectSetSpritePriority(), fdActorGetSpritePriority(), fdActorShowEmoteById(), fdActorTakeLeaderLayer(), fdEffectSetAttached(), fdPsynergyGetCanvasPriority(), fdPsynergyUpdateMindReadWave(), scEffectAdvanceMotionAtLeaderPriority() and scMarsLighthouseHallSpawnFlamePuff().

Definition at line 232 of file sprite.h.

Fields in detail

unused

Uint8 unused[9]

no code names it

tileHigh

Uint8 tileHigh : 2

tile number bits 9..8

priority

Uint8 priority : 2

palette

Uint8 palette : 4

unusedAfterPalette

Uint8 unusedAfterPalette[2]

no code names it

scale

FIXED scale

16.16 fixed point

slot

Uint8 slot

retainCacheEntry

Uint8 retainCacheEntry

bit 0

rotation

Uint16 rotation

unusedAfterRotation

Uint8 unusedAfterRotation[5]

no code names it

dirty

Uint8 dirty

flags

Uint8 flags

unusedAfterFlags

Uint8 unusedAfterFlags[10]

no code names it

shadowTileHigh

Uint8 shadowTileHigh : 2

shadowPriority

Uint8 shadowPriority : 2

shadowPalette

Uint8 shadowPalette : 4