diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-22 15:38:28 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-22 15:38:28 +0100 |
commit | 1363bda556bf08657bf19ff79e93319c17c22fc1 (patch) | |
tree | 9d67fd461d9dec00b65deba03aca94cda7cae0dd /src/ft_get_spawns.c | |
parent | Pretty bav (diff) | |
download | 42-cub3d-1363bda556bf08657bf19ff79e93319c17c22fc1.tar.gz 42-cub3d-1363bda556bf08657bf19ff79e93319c17c22fc1.tar.bz2 42-cub3d-1363bda556bf08657bf19ff79e93319c17c22fc1.tar.xz 42-cub3d-1363bda556bf08657bf19ff79e93319c17c22fc1.tar.zst 42-cub3d-1363bda556bf08657bf19ff79e93319c17c22fc1.zip |
More norm
Diffstat (limited to 'src/ft_get_spawns.c')
-rw-r--r-- | src/ft_get_spawns.c | 26 |
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); +} |