/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_switch_weapons.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: joelecle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 17:28:55 by joelecle #+# #+# */ /* Updated: 2020/02/14 17:28:55 by joelecle ### ########lyon.fr */ /* */ /* ************************************************************************** */ #include #include int8_t ft_switch_weap_one(t_cub *cl) { cl->sfx[6].sfx_play(cl->sfx); cl->plist.handles_weapon = 0; return (0); } int8_t ft_switch_weap_two(t_cub *cl) { cl->sfx[8].sfx_play(cl->sfx); cl->plist.handles_weapon = 2; return (0); } int8_t ft_switch_weap_three(t_cub *cl) { cl->sfx[10].sfx_play(cl->sfx); cl->plist.handles_weapon = 4; return (0); }