Pokebot
Pokemon FireRed bot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
PokemonUtils.hh File Reference
#include <stdint.h>
#include "../vbam/gba/Globals.h"
Include dependency graph for PokemonUtils.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define WRAM_OFFSET   0x2000000
 
#define IRAM_OFFSET   0x3000000
 
#define ROM_OFFSET   0x8000000
 
#define BANK_PTR   0x3526A8
 
#define NAMES_PTR   0x245EE0
 
#define MOVE_NAMES_PTR   0x247094
 
#define PTEAM_PTR   0x024284
 
#define ETEAM_PTR   0x02402C
 
#define CURR_BANK_PTR   0x031DBC
 
#define CURR_MAP_PTR   0x031DBD
 
#define POW(x)   ((x) * (x))
 

Functions

char pokeCharsetToAscii (uint8_t c)
 
bool getFlag (uint16_t flag)
 
uint16_t getVar (uint16_t var)
 
void * gbaMem (uint32_t ptr)
 

Macro Definition Documentation

#define BANK_PTR   0x3526A8
#define CURR_BANK_PTR   0x031DBC
#define CURR_MAP_PTR   0x031DBD
#define ETEAM_PTR   0x02402C
#define IRAM_OFFSET   0x3000000
#define MOVE_NAMES_PTR   0x247094
#define NAMES_PTR   0x245EE0
#define POW (   x)    ((x) * (x))
#define PTEAM_PTR   0x024284
#define ROM_OFFSET   0x8000000
#define WRAM_OFFSET   0x2000000

Function Documentation

void* gbaMem ( uint32_t  ptr)
bool getFlag ( uint16_t  flag)
uint16_t getVar ( uint16_t  var)
char pokeCharsetToAscii ( uint8_t  c)