This commit is contained in:
2026-02-11 13:20:47 +01:00
commit d3645f663c
30 changed files with 403 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#ifndef WEAPONS_H
#define WEAPONS_H
enum distance
{
CLOSE,
NEAR,
FAR,
};
struct gun {
char name[50];
int damage;
enum distance range;
int magazine_size;
int current_magazine;
};
struct gun *init_gun(char name[50], int damage, enum distance range, int magazine_size);
void reload(struct gun *gun);
void destroy_gun(struct gun *gun);
#endif