struct FIELD_SPR
SPR (field/sprite.h) as the field's scenes read it: its image's OAM attributes as bit fields, its retain, own-scale and sunk-rows bits, its layer count and its shadow's first two attributes as bytes, and its shadow's attribute 2 as bit fields; the first layer is record.
Declared in field_sprite.h.
Fields
| Name | Description | |
|---|---|---|
struct SPR * | link | The link to the next sprite queued at its depth (struct ANIMATION_SPR_PART's first word). |
Uint16 | y : 8 | The image's OAM attributes 0 to 2, x and y in screen pixels. |
Uint16 | affine : 2 | |
Uint16 | objectMode : 2 | |
Uint16 | mosaic : 1 | |
Uint16 | fullColor : 1 | 256 colours. |
Uint16 | shape : 2 | |
Uint16 | x : 9 | |
Uint16 | affineIndex : 5 | |
Uint16 | size : 2 | |
Uint16 | tile : 10 | First sprite tile in VRAM. |
Uint16 | priority : 2 | |
Uint16 | palette : 4 | |
Uint8 | unusedAfterPalette [2] | No code names it. |
FIXED | scale | 16.16 fixed point, toFIXED(1) full size. |
Uint8 | slot | VRAM cache entry holding its tiles. |
Uint8 | retainCacheEntry : 1 | |
Uint8 | useOwnScale : 1 | |
Uint8 | sunkRows : 6 | Rows SPRITE_FLAG_SUNK pushes the picture down, or SPRITE_FLAG_SHADED tints at its foot. |
Uint16 | rotation | 1/65536 turns. |
Uint8 | width | Its picture's size and its offset from its place, in pixels; a width of zero marks a free sprite. |
Uint8 | height | |
Sint8 | offsetX | |
Sint8 | offsetY | |
Uint8 | lastNo | The animation number last selected, saved with the actor's snapshot. |
Uint8 | dirty | Nonzero redraws its pixels into VRAM when next drawn. |
Uint8 | flags | The sprite flags (SPR_FLAG), saved with the actor's snapshot; zeroed for sprites shown without them. |
Uint8 | count | The layer count (SPR.count), cleared with the first layer. |
Uint8 | unusedShadow [8] | The shadow's link and attributes 0 and 1; no code names them. |
Uint16 | shadowTile : 10 | The shadow's OAM attribute 2. |
Uint16 | shadowPriority : 2 | |
Uint16 | shadowPalette : 4 | |
Uint8 | unusedAfterShadowPalette [2] | No code names it. |
struct SPR_ANIMATION * | record | Released by fdSpriteAnimationClearStub. |
Description
SPR (field/sprite.h) as the field's scenes read it: its image's OAM
attributes as bit fields, its retain, own-scale and sunk-rows bits, its layer
count and its shadow's first two attributes as bytes, and its shadow's
attribute 2 as bit fields; the first layer is record.
struct FIELD_SPR
Referenced by btEffectCreateSprites(), btEffectRunHaures(), EFFECT_SPAWN, fdActorLaunchAhead(), fdEffectAdvanceMotion(), fdEffectSpawnResident(), fdPsynergySand(), mnFileListPlacePartySprites(), mnFileListShowPartySprites(), scActorBob(), scActorEmitRipples(), scActorSpawnWadingSplash(), scActorStartScripted(), scAirsRockBlowGust(), scAirsRockCrumbleRock(), scAirsRockInsideBlowGust(), scAirsRockInsideMovePooledWhirlwind(), scAirsRockInsideMoveWhirlwind(), scAirsRockInsidePoundStake(), scAirsRockInsideSpawnMotes(), scAirsRockInsideStatueBreathesPooledWhirlwind(), scAirsRockInsideStatueBreathesWhirlwind(), scAirsRockInsideStepOntoStake(), scAirsRockInsideVanishStone(), scAirsRockInsideWakeEntranceStatue(), scAirsRockInsideWakeHallStatue(), scAirsRockMoveWhirlwind(), scAirsRockStatueBreathesWhirlwind(), scAirsRockSwirlDust(), scAirsRockWhirlwindClearsFog(), scAirsRockWhirlwindClearsWall(), scAirsRockWhirlwindOpensTheTop(), scAncientLemuriaRockTheStatue(), scAncientLemuriaStillTheStatue(), scAnemosInnerSanctumDropMimicStone(), scAnkohlRuinsSetUpWeeds(), scAquaRockArriveFromPassage(), scAquaRockInsideSplashBeneath(), scAquaRockKeepLeaderPriority(), scAquaRockRockMoai(), scAquaRockShakeMoai(), scAquaRockStopShakingMoai(), scAquaRockTurnFish(), scAttekaInletShareLeadersPriority(), scAttekaInletShareLeadersPriorityWithBoulder(), scChampaSpawnQuestionMark(), scContigoKeepPriorityWithLeader(), scDehkanPlateauCreatePoundCube(), scDehkanPlateauStepOnCrack(), scDustBurst() and 112 more.
Definition at line 16 of file field_sprite.h.
Fields in detail
link
struct SPR *link
The link to the next sprite queued at its
depth (struct ANIMATION_SPR_PART's first
word).
y
Uint16 y : 8
The image's OAM attributes 0 to 2, x and y in screen pixels.
affine
Uint16 affine : 2
objectMode
Uint16 objectMode : 2
mosaic
Uint16 mosaic : 1
fullColor
Uint16 fullColor : 1
256 colours.
shape
Uint16 shape : 2
x
Uint16 x : 9
affineIndex
Uint16 affineIndex : 5
size
Uint16 size : 2
tile
Uint16 tile : 10
First sprite tile in VRAM.
priority
Uint16 priority : 2
palette
Uint16 palette : 4
unusedAfterPalette
Uint8 unusedAfterPalette[2]
No code names it.
scale
FIXED scale
16.16 fixed point,
toFIXED(1) full size.
slot
Uint8 slot
VRAM cache entry holding its tiles.
retainCacheEntry
Uint8 retainCacheEntry : 1
useOwnScale
Uint8 useOwnScale : 1
sunkRows
Uint8 sunkRows : 6
Rows SPRITE_FLAG_SUNK pushes
the picture down, or
SPRITE_FLAG_SHADED tints at
its foot.
rotation
Uint16 rotation
1/65536 turns.
width
Uint8 width
Its picture's size and its offset from its place, in pixels; a width of zero marks a free sprite.
height
Uint8 height
offsetX
Sint8 offsetX
offsetY
Sint8 offsetY
lastNo
Uint8 lastNo
The animation number last selected, saved with the actor's snapshot.
dirty
Uint8 dirty
Nonzero redraws its pixels into
VRAM when next drawn.
flags
Uint8 flags
The sprite flags (SPR_FLAG), saved
with the actor's snapshot; zeroed
for sprites shown without them.
count
Uint8 count
The layer count (SPR.count), cleared with the first layer.
unusedShadow
Uint8 unusedShadow[8]
The shadow's link and attributes 0 and 1; no code names them.
shadowTile
Uint16 shadowTile : 10
The shadow's OAM attribute 2.
shadowPriority
Uint16 shadowPriority : 2
shadowPalette
Uint16 shadowPalette : 4
unusedAfterShadowPalette
Uint8 unusedAfterShadowPalette[2]
No code names it.
record
struct SPR_ANIMATION *record
Released by fdSpriteAnimationClearStub.