aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_spawns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_get_spawns.c')
-rw-r--r--src/ft_get_spawns.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/ft_get_spawns.c b/src/ft_get_spawns.c
new file mode 100644
index 0000000..6422785
--- /dev/null
+++ b/src/ft_get_spawns.c
@@ -0,0 +1,26 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_get_sprite_spawns.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/02/14 17:28:51 by rbousset #+# #+# */
+/* Updated: 2020/02/14 17:28:51 by rbousset ### ########lyon.fr */
+/* */
+/* ************************************************************************** */
+
+#include <libft.h>
+#include <cub3d.h>
+#include <stdint.h>
+
+void
+ ft_get_spawns(t_cub *cl)
+{
+ ft_get_player_spawn(&cl->plist, cl);
+ ft_get_sprite_spawn(cl);
+ ft_get_trap_spawn(cl);
+ ft_get_heal_spawn(cl);
+ if (cl->isdead == 0)
+ ft_get_weapon_spawn(cl);
+}