The bitmap wars source code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

item.h 578B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef ITEM_H
  2. #define ITEM_H
  3. #include <gint/display.h>
  4. #include <stdbool.h>
  5. #define EMPTY 0
  6. #define WALL 1
  7. #define HOUSE 2
  8. extern image_t img_houses;
  9. extern image_t img_wall;
  10. extern image_t img_brouillard;
  11. extern image_t img_water;
  12. // display item from map on sx,sy
  13. void display_case(int mx, int my, int sx, int sy);
  14. struct generic_item // map à l'échelle d'un point
  15. {
  16. int type;
  17. bool ally; // brouillard de guerre
  18. int life; // 0<100
  19. char dir; // optionnel
  20. // 3
  21. // 2 0
  22. // 1
  23. };
  24. typedef struct generic_item generic_item;
  25. #endif