aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-30 15:36:16 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-30 15:36:16 +0200
commit5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894 (patch)
tree9f706d2c691ac8e23f0b8d804baca3d80fb9e9bf /inc
parentNorm (diff)
download42-cub3d-5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894.tar.gz
42-cub3d-5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894.tar.bz2
42-cub3d-5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894.tar.xz
42-cub3d-5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894.tar.zst
42-cub3d-5d2dfe4daed3a0c0a9f872cc6c3baa4124ea0894.zip
Check missing enemy good
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d_defines.h7
-rw-r--r--inc/cub3d_structs.h7
2 files changed, 13 insertions, 1 deletions
diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h
index 3cee49a..b1c93d8 100644
--- a/inc/cub3d_defines.h
+++ b/inc/cub3d_defines.h
@@ -120,6 +120,10 @@ enum
# define FT_WEAPON_TWO_FIRE_PATH "./media/img/weapons/colt_w_fire.xpm"
# define FT_WEAPON_THREE_PATH "./media/img/weapons/double_b_w.xpm"
# define FT_WEAPON_THREE_FIRE_PATH "./media/img/weapons/double_b_w_fire.xpm"
+# define FT_ENMY_WAIT_PATH "./media/img/tex/crapaud.xpm"
+# define FT_ENMY_WALK_PATH "./media/img/tex/linuz.xpm"
+# define FT_ENMY_FIRE_PATH "./media/img/tex/linus.xpm"
+# define FT_ENMY_DEAD_PATH "./media/img/sprites/wood_chest.xpm"
# define FT_HEAL_PACK_PATH "./media/img/sprites/first_aid.xpm"
# define FT_ZER_PATH "./media/img/hud/zero.xpm"
# define FT_ONE_PATH "./media/img/hud/one.xpm"
@@ -281,6 +285,7 @@ enum
# define FT_ERR_MISS_W_ONE_SPR "weapon one sprite image"
# define FT_ERR_MISS_W_TWO_SPR "weapon two sprite image"
# define FT_ERR_MISS_W_THREE_SPR "weapon three sprite image"
+# define FT_ERR_MISS_ENMY "one or several enemy sprites image"
# define FT_ERR_MISS_NUMBER "number image"
# define FT_ERR_MISS_H_CAPTION "health caption"
# define FT_ERR_MISS_A_CAPTION "ammo caption"
@@ -303,6 +308,6 @@ enum
*/
# define FT_PARSE_END_RET 25
-# define FT_TOTAL_SPRT 13
+# define FT_TOTAL_SPRT 14
# endif
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index e2905f2..a5c2bcc 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -224,6 +224,12 @@ typedef struct s_map
float y_floor_step;
} t_map;
+typedef struct s_bad_boy
+{
+ int8_t life;
+ void (*act[5])(struct s_sprite*, struct s_map*);
+} t_bad_boy;
+
typedef struct s_cub
{
uint8_t w_side;
@@ -270,6 +276,7 @@ typedef struct s_cub
struct s_img tnum[12];
struct s_sprite **sprites;
struct s_sfx sfx[13];
+ struct s_bad_boy *bad_boy;
} t_cub;
# endif