No Description

bpre.h 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef BPRE_H_
  2. #define BPRE_H_
  3. #include "types.h"
  4. #include "sound.h"
  5. #include "fade.h"
  6. #include "lcd.h"
  7. #include <callback.h>
  8. #include <config.h>
  9. #include <pkmn_attributes.h>
  10. u32 __aeabi_uidivmod(u32 a, u32 b);
  11. u16 *var_access(int index);
  12. u8 flag_check(int flag);
  13. void clear_flag(u16 flag);
  14. u16 random();
  15. void* malloc(int size);
  16. void free(void* address);
  17. void* memcpy (void * destination, const void* source, size_t num);
  18. void* memset (void* dst, int value, size_t size);
  19. //debug
  20. void agbprintf(const char* pBuf, ...);
  21. void agbprint_flush();
  22. void agb_assert(const char *file, int line, const char *expression, u32 stop);
  23. // sound related stuff
  24. extern MPlayTable mplay_table[];
  25. extern SongTable _songtable[];
  26. void m4aSongNumStart(u16 songid);
  27. void MPlayStart_rev01(MusicPlayerArea *ma, SongHeader *so);
  28. void MPlayContinue(MusicPlayerArea *ma);
  29. //graphical stuff
  30. //object related stuff
  31. void objc_exec();
  32. void obj_sync();
  33. //task related stuff
  34. void task_exec();
  35. //attribute setter and getter
  36. u8 get_attributes(struct pokemon* poke_address, u8 request, void* destination);
  37. void set_attributes(struct pokemon* poke_address, u8 request, void* new_value);
  38. #endif