struct PLAYER_SPR
The leader's sprite, or a ripple's (SPR), as the player's movement sets them, a byte at a time, under SPR's names.
Declared in field_internal.h.
Fields
| Name | Description | |
|---|---|---|
Uint8 | unused [5] | No code names it. |
Uint8 | affine : 2 | |
Uint8 | objectMode : 2 | |
Uint8 | mosaic : 1 | |
Uint8 | fullColor : 1 | |
Uint8 | shape : 2 | |
Uint8 | unusedAfterShape [3] | No code names it. |
Uint8 | tileHigh : 2 | Tile number bits 9..8. |
Uint8 | priority : 2 | |
Uint8 | palette : 4 | |
Uint8 | unusedAfterPalette [7] | No code names it. |
Uint8 | cacheFlags : 2 | SPR's retainCacheEntry and useOwnScale. |
Uint8 | sunkRows : 6 | The rows SPRITE_FLAG_SUNK sinks the |
Uint16 | rotation | sprite by, or SPRITE_FLAG_SHADED shades. |
Uint8 | unusedAfterRotation [5] | No code names it. |
Uint8 | dirty | |
Uint8 | flags | |
Uint8 | unusedAfterFlags [17] | No code names it. |
SPR_ANIMATION * | secondLayer | The sprite's second animation (entries[1]), drawn only at a priority of 0 to 3: the world map draws the leader's only in forest. |
Description
The leader's sprite, or a ripple's (SPR), as the player's movement sets them, a byte at a time, under SPR's names.
struct PLAYER_SPR
Referenced by fdActorFlyOnWorldMap(), fdActorMoveAsSandOnWorldMap(), fdActorMoveOnWorldMap(), fdActorSailOnWorldMap() and fdActorUpdatePlayerControl().
Definition at line 70 of file field_internal.h.
Fields in detail
unused
Uint8 unused[5]
No code names it.
affine
Uint8 affine : 2
objectMode
Uint8 objectMode : 2
mosaic
Uint8 mosaic : 1
fullColor
Uint8 fullColor : 1
shape
Uint8 shape : 2
unusedAfterShape
Uint8 unusedAfterShape[3]
No code names it.
tileHigh
Uint8 tileHigh : 2
Tile number bits 9..8.
priority
Uint8 priority : 2
palette
Uint8 palette : 4
unusedAfterPalette
Uint8 unusedAfterPalette[7]
No code names it.
cacheFlags
Uint8 cacheFlags : 2
SPR's retainCacheEntry and useOwnScale.
sunkRows
Uint8 sunkRows : 6
The rows SPRITE_FLAG_SUNK sinks the
rotation
Uint16 rotation
sprite by, or SPRITE_FLAG_SHADED
shades.
unusedAfterRotation
Uint8 unusedAfterRotation[5]
No code names it.
dirty
Uint8 dirty
flags
Uint8 flags
unusedAfterFlags
Uint8 unusedAfterFlags[17]
No code names it.
secondLayer
SPR_ANIMATION *secondLayer
The sprite's second animation (entries[1]), drawn only at a priority of 0 to 3: the world map draws the leader's only in forest.