mirror of
https://github.com/pret/pokeemerald.git
synced 2026-03-26 12:15:19 -05:00
Conflicts: include/battle_anim.h include/battle_controllers.h include/battle_gfx_sfx_util.h include/battle_interface.h include/battle_main.h include/battle_script_commands.h include/battle_util.h include/easy_chat.h include/event_object_movement.h include/field_effect.h include/field_effect_helpers.h include/field_player_avatar.h include/intro.h include/item_use.h include/metatile_behavior.h include/move_relearner.h include/pokedex.h include/pokemon.h include/pokemon_icon.h include/roamer.h include/script_pokemon_util.h include/sprite.h include/text.h include/wild_encounter.h src/battle_controllers.c
21 lines
764 B
C
21 lines
764 B
C
#ifndef GUARD_UTIL_H
|
|
#define GUARD_UTIL_H
|
|
|
|
#include "sprite.h"
|
|
|
|
extern const u8 gMiscBlank_Gfx[]; // unused in Emerald
|
|
|
|
u8 CreateInvisibleSpriteWithCallback(void (*callback)(struct Sprite *));
|
|
void StoreWordInTwoHalfwords(u16 *h, u32 w);
|
|
void LoadWordFromTwoHalfwords(u16 *h, u32 *w);
|
|
int CountTrailingZeroBits(u32 value);
|
|
u16 CalcCRC16(const u8 *data, s32 length);
|
|
u16 CalcCRC16WithTable(const u8 *data, u32 length);
|
|
u32 CalcByteArraySum(const u8 *data, u32 length);
|
|
void BlendPalette(u16 palOffset, u16 numEntries, u8 coeff, u32 blendColor);
|
|
void DoBgAffineSet(struct BgAffineDstData *dest, u32 texX, u32 texY, s16 scrX, s16 scrY, s16 sx, s16 sy, u16 alpha);
|
|
void CopySpriteTiles(u8 shape, u8 size, u8 *tiles, u16 *tilemap, u8 *output);
|
|
|
|
|
|
#endif // GUARD_UTIL_H
|