diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-19 20:35:06 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-19 20:35:06 +0100 |
commit | 97e74992bd3f25d165b4d3c4c3c92ed5a0f67bc3 (patch) | |
tree | 8e50447ee5c170f70a1a4eb17430e945aad8f4fe /inc | |
parent | New images, that'll do the trick (diff) | |
download | 42-cub3d-97e74992bd3f25d165b4d3c4c3c92ed5a0f67bc3.tar.gz 42-cub3d-97e74992bd3f25d165b4d3c4c3c92ed5a0f67bc3.tar.bz2 42-cub3d-97e74992bd3f25d165b4d3c4c3c92ed5a0f67bc3.tar.xz 42-cub3d-97e74992bd3f25d165b4d3c4c3c92ed5a0f67bc3.tar.zst 42-cub3d-97e74992bd3f25d165b4d3c4c3c92ed5a0f67bc3.zip |
Starting sfx rework
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 |