map.h 719 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef _MAP_H
  2. #define _MAP_H
  3. #include <stdint.h>
  4. struct _item_onmap_struct
  5. {
  6. uint8_t x;
  7. uint8_t y;
  8. uint8_t template_index;
  9. uint8_t option;
  10. };
  11. typedef struct _item_onmap_struct item_onmap_t;
  12. struct _map_struct
  13. {
  14. unsigned char *data;
  15. item_onmap_t *onmap_list;
  16. uint16_t init_proc;
  17. uint8_t onmap_cnt;
  18. uint8_t width;
  19. uint8_t height;
  20. };
  21. typedef struct _map_struct map_t;
  22. struct _item_template_struct
  23. {
  24. uint16_t init_proc;
  25. uint16_t hit_proc;
  26. uint16_t step_proc;
  27. uint8_t fg_tile; /* for tga output and inital tile */
  28. };
  29. typedef struct _item_template_struct item_template_t;
  30. extern unsigned char map_code[] ;
  31. extern item_template_t item_template_list[];
  32. extern map_t map_list[];
  33. #endif