struct BATTLE_SPR_DEFINITION
An enemy class's battle sprite: its animation, size, attack effect, palette and defeat-sound kind.
Declared in battle_sprites.h.
Fields
| Name | Description | |
|---|---|---|
Uint16 | animation | The class's battle sprite. |
Uint8 | isSmall : 1 | 1 for a small enemy, which takes one sprite slot. |
Uint8 | attackEffect : 4 | ATTACK_EFFECT; ATTACK_EFFECT_NONE reads as ATTACK_EFFECT_SLASH. |
Uint8 | attackHop : 3 | The attack-hop height. |
Uint8 | heavyImpact : 1 | 1 for an enemy whose beam blow lands heavily. |
Uint8 | palette : 4 | The sprite's palette. |
Uint8 | defeatSound : 3 | DEFEAT_SND; above 4 reads as none. |
Uint8 | effectHeight | The height a battle effect is drawn at over the enemy, in pixels; 0 for its size's default. |
Uint8 | reserved [3] | 0 in every row. |
Description
An enemy class's battle sprite: its animation, size, attack effect, palette and defeat-sound kind.
struct BATTLE_SPR_DEFINITION
Referenced by BattleSprites.
Definition at line 45 of file battle_sprites.h.
Fields in detail
animation
Uint16 animation
The class's battle sprite.
isSmall
Uint8 isSmall : 1
1 for a small enemy, which takes one sprite slot.
attackEffect
Uint8 attackEffect : 4
ATTACK_EFFECT; ATTACK_EFFECT_NONE reads as
ATTACK_EFFECT_SLASH.
attackHop
Uint8 attackHop : 3
The attack-hop height.
heavyImpact
Uint8 heavyImpact : 1
1 for an enemy whose beam blow lands heavily.
palette
Uint8 palette : 4
The sprite's palette.
defeatSound
Uint8 defeatSound : 3
DEFEAT_SND; above 4 reads as none.
effectHeight
Uint8 effectHeight
The height a battle effect is drawn at over the enemy, in pixels; 0 for its size's default.
reserved
Uint8 reserved[3]
0 in every row.