diff options
Diffstat (limited to '')
-rw-r--r-- | inc/cub3d_structs.h | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 1f20f8c..a45af47 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -58,23 +58,30 @@ typedef struct s_bmp_info typedef struct s_sfx { - char *death; - char *footstep_one; - char *footstep_two; - char *new_lvl; - char *pain_one; - char *pain_two; - char *trap; - pthread_t death_tid; - pthread_t footstep_tid; - pthread_t new_lvl_tid; - pthread_t pain_tid; - pthread_t trap_tid; - pthread_mutex_t death_mutex; - pthread_mutex_t footstep_mutex; - pthread_mutex_t new_lvl_mutex; - pthread_mutex_t pain_mutex; - pthread_mutex_t trap_mutex; + char *cmd_one; + char *cmd_two; + pthread_t tid; + pthread_mutex_t mutex; + + /* old */ + /* ========= */ + /* char *death; */ + /* char *footstep_one; */ + /* char *footstep_two; */ + /* char *new_lvl; */ + /* char *pain_one; */ + /* char *pain_two; */ + /* char *trap; */ + /* pthread_t death_tid; */ + /* pthread_t footstep_tid; */ + /* pthread_t new_lvl_tid; */ + /* pthread_t pain_tid; */ + /* pthread_t trap_tid; */ + /* pthread_mutex_t death_mutex; */ + /* pthread_mutex_t footstep_mutex; */ + /* pthread_mutex_t new_lvl_mutex; */ + /* pthread_mutex_t pain_mutex; */ + /* pthread_mutex_t trap_mutex; */ } t_sfx; typedef struct s_bmp_rgb @@ -268,7 +275,7 @@ typedef struct s_cub struct s_sprite traps[512]; struct s_sprite heals[64]; struct s_sprite weaps[2][1]; - struct s_sfx sfx; + struct s_sfx sfx[10]; } t_cub; # endif |