jaunes
This commit is contained in:
24
HolidayTrip/Fundamentals/reap_and_tear/weapons.h
Normal file
24
HolidayTrip/Fundamentals/reap_and_tear/weapons.h
Normal 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
|
||||
Reference in New Issue
Block a user