aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_funptr.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p6.le-101.fr>2020-03-09 17:41:08 +0100
committerRudy Bousset <rbousset@z2r5p6.le-101.fr>2020-03-09 17:41:08 +0100
commitfffd37b3423720af58c416221ffbdbc5960b1439 (patch)
treed5f8c2946fff86e5bcc533484cf886bfd92c048e /src/ft_init_funptr.c
parentPerf (diff)
download42-cub3d-fffd37b3423720af58c416221ffbdbc5960b1439.tar.gz
42-cub3d-fffd37b3423720af58c416221ffbdbc5960b1439.tar.bz2
42-cub3d-fffd37b3423720af58c416221ffbdbc5960b1439.tar.xz
42-cub3d-fffd37b3423720af58c416221ffbdbc5960b1439.tar.zst
42-cub3d-fffd37b3423720af58c416221ffbdbc5960b1439.zip
Norme
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;