2025-09-17 16:59:32 +02:00
|
|
|
/* ************************************************************************** */
|
|
|
|
|
/* */
|
|
|
|
|
/* ::: :::::::: */
|
|
|
|
|
/* weapon.h :+: :+: :+: */
|
|
|
|
|
/* +:+ +:+ +:+ */
|
|
|
|
|
/* By: tchampio <tchampio@student.42lehavre.fr> +#+ +:+ +#+ */
|
|
|
|
|
/* +#+#+#+#+#+ +#+ */
|
|
|
|
|
/* Created: 2025/09/17 16:50:52 by tchampio #+# #+# */
|
2025-09-18 12:10:25 +02:00
|
|
|
/* Updated: 2025/09/18 11:54:22 by tchampio ### ########.fr */
|
2025-09-17 16:59:32 +02:00
|
|
|
/* */
|
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
|
|
|
|
|
#ifndef WEAPON_H
|
|
|
|
|
# define WEAPON_H
|
|
|
|
|
|
|
|
|
|
# include "../draw/img_data.h"
|
|
|
|
|
|
|
|
|
|
typedef struct s_weapon
|
|
|
|
|
{
|
|
|
|
|
t_img_data *texture;
|
|
|
|
|
t_img_data *shoot_texture;
|
2025-09-18 12:10:25 +02:00
|
|
|
char name[255];
|
|
|
|
|
int damages;
|
2025-09-17 16:59:32 +02:00
|
|
|
bool is_auto;
|
|
|
|
|
bool is_shooting;
|
|
|
|
|
bool reloading;
|
|
|
|
|
int clip;
|
|
|
|
|
int remaining_ammos;
|
|
|
|
|
int base_clip;
|
|
|
|
|
int base_ammos;
|
|
|
|
|
} t_weapon;
|
|
|
|
|
|
|
|
|
|
#endif // WEAPON_H
|