aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p6.le-101.fr>2020-02-02 18:37:10 +0100
committerRudy Bousset <rbousset@z2r5p6.le-101.fr>2020-02-02 18:37:10 +0100
commit88c8592fa835c7c5a010f69e80e09a8e38caa09f (patch)
treef2371c512957931e6446a9bedacc79ac815e7e6f /inc
parentChanged variable name (diff)
download42-cub3d-88c8592fa835c7c5a010f69e80e09a8e38caa09f.tar.gz
42-cub3d-88c8592fa835c7c5a010f69e80e09a8e38caa09f.tar.bz2
42-cub3d-88c8592fa835c7c5a010f69e80e09a8e38caa09f.tar.xz
42-cub3d-88c8592fa835c7c5a010f69e80e09a8e38caa09f.tar.zst
42-cub3d-88c8592fa835c7c5a010f69e80e09a8e38caa09f.zip
Added player list
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index 2fd6396..923e877 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -57,8 +57,15 @@ typedef struct s_cub
size_t line_chk;
uint8_t isspawn;
struct s_win *wlist;
+ struct s_player *plist;
} t_cub;
+typedef struct s_player
+{
+ size_t pos_x;
+ size_t pos_y;
+} t_player;
+
t_win *ft_init_win(void);
t_cub *ft_init_cub(void);
int ft_key_event(int keycode, void *param);