pokemon_table.h 781 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef __POKEMON_TABLE_H__
  2. #define __POKEMON_TABLE_H__
  3. #include <stdint.h>
  4. #include "stats.h"
  5. typedef enum {
  6. GROWTH_MEDIUM_FAST = 0,
  7. GROWTH_MEDIUM_SLOW = 3,
  8. GROWTH_FAST = 4,
  9. GROWTH_SLOW = 5,
  10. } Growth;
  11. typedef enum {
  12. GENDER_F0 = 0x00,
  13. GENDER_F12_5 = 0x1F,
  14. GENDER_F25 = 0x3F,
  15. GENDER_F50 = 0x7F,
  16. GENDER_F75 = 0xBF,
  17. GENDER_F100 = 0xFE,
  18. GENDER_UNKNOWN = 0xFF,
  19. } Gender;
  20. typedef struct pokemon_data_table PokemonTable;
  21. int table_pokemon_pos_get(const PokemonTable* table, uint8_t index);
  22. uint8_t
  23. table_stat_base_get(const PokemonTable* table, uint8_t num, DataStat stat, DataStatSub which);
  24. const char* table_stat_name_get(const PokemonTable* table, int num);
  25. const PokemonTable* table_pointer_get();
  26. #endif // __POKEMON_TABLE_H__