Pokebot
Pokemon FireRed bot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
PokemonUtils.hh
Go to the documentation of this file.
1 #ifndef __POKEMONUTILS_HH__
2 #define __POKEMONUTILS_HH__
3 
4 #include <stdint.h>
5 #include "../vbam/gba/Globals.h"
6 
7 #define WRAM_OFFSET 0x2000000
8 #define IRAM_OFFSET 0x3000000
9 #define ROM_OFFSET 0x8000000
10 
11 #define BANK_PTR 0x3526A8
12 #define NAMES_PTR 0x245EE0
13 #define MOVE_NAMES_PTR 0x247094
14 #define PTEAM_PTR 0x024284
15 #define ETEAM_PTR 0x02402C
16 #define CURR_BANK_PTR 0x031DBC
17 #define CURR_MAP_PTR 0x031DBD
18 
19 #define POW(x) ((x) * (x))
20 
21 char pokeCharsetToAscii(uint8_t c);
22 bool getFlag(uint16_t flag);
23 uint16_t getVar(uint16_t var);
24 void *gbaMem(uint32_t ptr);
25 
26 #endif
void * gbaMem(uint32_t ptr)
Definition: PokemonUtils.cpp:57
uint16_t getVar(uint16_t var)
Definition: PokemonUtils.cpp:49
char pokeCharsetToAscii(uint8_t c)
Definition: PokemonUtils.cpp:14
bool getFlag(uint16_t flag)
Definition: PokemonUtils.cpp:39