123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
-
-
-
-
- #ifndef GAME_ENGINE_H
- #define GAME_ENGINE_H
-
-
- #include <types.h>
- #include <battle_structs.h>
-
-
-
-
- extern u16 *var_access(u32 index);
-
-
- extern u16 var_get(u16 index);
-
-
- extern u8 var_set(u16 index, u16 value);
-
-
- extern u8 flag_check(u32 flag);
-
-
- extern void flag_clear(u16 flag);
-
-
- extern void flag_set(u16 flag);
-
-
- extern u32 pokemon_get_attribute(struct pokemon* poke_address, u8 request, void* destination);
-
- struct move_data {
- u8 effect;
- u8 damage;
- u8 type;
- u8 accuracy;
- u8 pp;
- u8 effect_accuracy;
- u8 target;
- s8 priority;
- u8 flags;
- u8 arg1;
- u8 split;
- u8 arg3;
- };
-
- extern struct move_data move_table[676];
-
-
- void pokemon_set_attribute(struct pokemon* poke_address, u8 request, void* new_value);
-
-
- extern u8 pokemon_get_gender(struct pokemon* poke_address);
-
-
- extern u8 item_get_x12(u16 item_id);
-
-
- #define pokemon_party_player ((struct pokemon*) 0x02024284)
-
- #endif
-
|