20#define ENEMY_CLASS_LAST 171
66 return value ? value : 1;
79 return value ? value : 0;
u32 BattleClass_GetAttackEffect(u32 index)
Returns the effect a class's plain attack shows, 1 for none or out of range.
s32 BattleClass_GetPalette(s32 index)
Returns the class's sprite palette.
u32 BattleClass_GetAttackHop(u32 index)
Returns how high a class hops as it runs up to attack, in pixels; 0 out of range.
s32 BattleClass_IsSmall(s32 index)
Returns 1 for a small class, which takes one enemy sprite slot instead of two and stands closer to it...
s32 BattleClass_GetEffectHeight(s32 index)
Returns the height an effect is drawn at over a class, in pixels, or 0 for its size's default; 0 out ...
s32 BattleClass_GetSprite(s32 index)
Returns the class's battle sprite, row 0's for a class out of range.
s32 Summon_IsEntrySecondaryFlagged(s32 index)
Returns 1 for a class whose blow lands with SE_HEAVY_IMPACT instead of SE_133; 0 out of range.
#define ENEMY_CLASS_LAST
The last class with a row in gSummon_EntryTable (sprites.tsv).
u32 BattleClass_GetDefeatSoundKind(s32 index)
Returns the class's defeat-sound kind, 0 to 4, or -1 for none; a fallen enemy's sound is SE_146 plus ...
What every part of the battle object shares: its includes, in their original order,...
struct BattleSpriteDefinition gSummon_EntryTable[]
u8 layoutBit0
The byte at 3.
u8 spriteBits1
the attack-effect kind; 0 reads as 1
u16 animation
the class's battle sprite
u8 layoutBits1
the sprite's palette
u8 layoutKind
the defeat-sound kind; above 4 reads as none
u8 unk04[4]
[0] is the effect height (BattleClass_GetEffectHeight)
u8 spriteBits5
the attack-hop height