aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_funptr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_init_funptr.c')
-rw-r--r--src/ft_init_funptr.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/ft_init_funptr.c b/src/ft_init_funptr.c
index 75b3cee..f95e020 100644
--- a/src/ft_init_funptr.c
+++ b/src/ft_init_funptr.c
@@ -10,9 +10,28 @@
/* */
/* ************************************************************************** */
+#include <libft.h>
#include <cub3d.h>
void
+ ft_init_ref(t_cub *clist)
+{
+ ft_sprintf(clist->ref[0], "R");
+ ft_sprintf(clist->ref[1], "NO");
+ ft_sprintf(clist->ref[2], "SO");
+ ft_sprintf(clist->ref[3], "EA");
+ ft_sprintf(clist->ref[4], "WE");
+ ft_sprintf(clist->ref[5], "S");
+ ft_sprintf(clist->ref[6], "F");
+ ft_sprintf(clist->ref[7], "C");
+ ft_sprintf(clist->ref[8], "L");
+ ft_sprintf(clist->ref[9], "LT");
+ ft_sprintf(clist->ref[10], "MU");
+ ft_sprintf(clist->ref[11], "SH");
+ ft_bzero(clist->ref[12], 3);
+}
+
+void
ft_init_funptr(t_cub *clist)
{
clist->key_ptr[0] = ft_w_key;