include/battle/battle_sprites.h
Each enemy's battle sprite and how it attacks and falls, and the summons.
Included by battle_internal.h, battle_sprites.c, window_internal.h and game.h.
Structures
| Name | Description | |
|---|---|---|
struct | BATTLE_SPR_DEFINITION | An enemy class's battle sprite: its animation, size, attack effect, palette and defeat-sound kind. |
struct | SUMMON_DEFINITION | A summon: its name and the Djinn of each element it needs. |
Enumerations
| Name | Description | |
|---|---|---|
enum | ATTACK_EFFECT { ATTACK_EFFECT_NONE, ATTACK_EFFECT_SLASH, ATTACK_EFFECT_CLAW, … } | A class's plain attack (BATTLE_SPR_DEFINITION.attackEffect), which btEffectRunByIdRange plays: btEffectRunAttackSlash's beam from the attacker and the target's recoil, or the canvas burst. |
enum | DEFEAT_SND { DEFEAT_SOUND_ENEMY_CRY, DEFEAT_SOUND_BEAST_CRY, DEFEAT_SOUND … } | A fallen class's cry (BATTLE_SPR_DEFINITION.defeatSound): BattlePlayback plays SE_ENEMY_CRY plus it, or one less (never below SE_ENEMY_CRY) when the playback's flags are set. |
Variables
| Name | Description | |
|---|---|---|
extern BATTLE_SPR_DEFINITION | BattleSprites [] | Each enemy's battle sprite and how it attacks and falls, by enemy id. |
Description
Each enemy's battle sprite and how it attacks and falls, and the summons.
Enumerations in detail
ATTACK_EFFECT
enum ATTACK_EFFECT
A class's plain attack (BATTLE_SPR_DEFINITION.attackEffect), which
btEffectRunByIdRange plays: btEffectRunAttackSlash's beam from the attacker
and the target's recoil, or the canvas burst.
| Enumerator | Value | Description |
|---|---|---|
ATTACK_EFFECT_NONE | none set: played as ATTACK_EFFECT_SLASH | |
ATTACK_EFFECT_SLASH | a blue arc; the target is nudged | |
ATTACK_EFFECT_CLAW | three blue arcs; the target is nudged | |
ATTACK_EFFECT_THRUST | a beam reaching further each picture | |
ATTACK_EFFECT_WAVE | a wave, played backwards | |
ATTACK_EFFECT_RISING_SLASH | the arc upside down; the target hops | |
ATTACK_EFFECT_RISING_SLASH_LOW | as ATTACK_EFFECT_RISING_SLASH, drawn 16 pixels lower | |
ATTACK_EFFECT_HURL | no beam; the target is hurled (KNOCKBACK_HURL) | |
ATTACK_EFFECT_SHOVE | no beam; the target is pushed to 150 percent | |
ATTACK_EFFECT_BLOW | no beam; the target is nudged | |
ATTACK_EFFECT_BURST | btEffectRunBallAttack's small ball |
Definition at line 13 of file battle_sprites.h.
DEFEAT_SND
enum DEFEAT_SND
A fallen class's cry (BATTLE_SPR_DEFINITION.defeatSound): BattlePlayback
plays SE_ENEMY_CRY plus it, or one less (never below SE_ENEMY_CRY) when the
playback's flags are set.
| Enumerator | Value | Description |
|---|---|---|
DEFEAT_SOUND_ENEMY_CRY | SE_ENEMY_CRY | |
DEFEAT_SOUND_BEAST_CRY | SE_BEAST_CRY | |
DEFEAT_SOUND_BOSS_ROAR | SE_BOSS_ROAR | |
DEFEAT_SOUND_MONSTER_ROAR | SE_MONSTER_ROAR | |
DEFEAT_SOUND_UNUSED_CRY | SE_UNUSED_DEFEAT_CRY; no class has it |
Definition at line 34 of file battle_sprites.h.