mirror of
https://github.com/pret/pokeruby.git
synced 2026-08-09 10:57:40 -05:00
* matching sub_813A280 and sub_813A4B4 * move data to item_use.c * slightly less ugly NewGameInitPCItems * more less ugly NewGameInitPCItems - Game Freak doesn't know how to use structs * decompile HandleQuantityRolling and sub_813A6FC * partially label and comment battle_anim.c * decompile sub_813A794 and sub_813A83C * minor comments on battle_anim.c * decompile up to GF shenanigans #14390 * up to GF shenanigans #38571 * dump half of battle_anim_80CA710.s incbins * dump most incbins from battle_anim_812C144.s * obj_rot_scal fixes * subsprite * i cant even identify byte arrays
59 lines
1.3 KiB
C
59 lines
1.3 KiB
C
#ifndef GUARD_BATTLEANIM_H
|
|
#define GUARD_BATTLEANIM_H
|
|
|
|
#define SCRIPT_READ_8(ptr) ((ptr)[0])
|
|
#define SCRIPT_READ_16(ptr) ((ptr)[0] | ((ptr)[1] << 8))
|
|
#define SCRIPT_READ_32(ptr) ((ptr)[0] + ((ptr)[1] << 8) + ((ptr)[2] << 16) + ((ptr)[3] << 24))
|
|
|
|
#define REG_BGnCNT_BITFIELD(n) (*(struct BGCntrlBitfield *)REG_ADDR_BG##n##CNT)
|
|
#define REG_BG1CNT_BITFIELD REG_BGnCNT_BITFIELD(1)
|
|
#define REG_BG2CNT_BITFIELD REG_BGnCNT_BITFIELD(2)
|
|
|
|
#define EWRAM_14800 ((u16 *)(unk_2000000 + 0x14800))
|
|
#define EWRAM_17800 ((struct UnknownStruct1 *)(unk_2000000 + 0x17800))
|
|
#define EWRAM_17810 ((struct UnknownStruct3 *)(unk_2000000 + 0x17810))
|
|
#define EWRAM_18000 ((u16 *)(unk_2000000 + 0x18000))
|
|
#define EWRAM_19348 (*(u16 *)(unk_2000000 + 0x19348))
|
|
|
|
struct BGCntrlBitfield
|
|
{
|
|
volatile u16 priority:2;
|
|
volatile u16 charBaseBlock:2;
|
|
volatile u16 field_0_2:4;
|
|
volatile u16 field_1_0:5;
|
|
volatile u16 areaOverflowMode:1;
|
|
volatile u16 screenSize:2;
|
|
};
|
|
|
|
struct BattleAnimBackground
|
|
{
|
|
void *image;
|
|
void *palette;
|
|
void *tilemap;
|
|
};
|
|
|
|
struct UnknownStruct1
|
|
{
|
|
u8 unk0;
|
|
};
|
|
|
|
struct UnknownStruct2
|
|
{
|
|
void *unk0;
|
|
u16 *unk4;
|
|
u8 unk8;
|
|
};
|
|
|
|
struct UnknownStruct3
|
|
{
|
|
u8 unk0;
|
|
u8 filler1[0xB];
|
|
};
|
|
|
|
void DoMoveAnim(const u8 *const moveAnims[], u16 b, u8 c);
|
|
bool8 b_side_obj__get_some_boolean(u8 a);
|
|
void sub_8076034(u8, u8);
|
|
bool8 IsContest(void);
|
|
|
|
#endif
|