You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
547 B

#ifndef WEAPON_H
#define WEAPON_H
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
typedef struct
{
int id;
char *fullName;
char *name;
int typeID;
char *typeName;
int damageModifier;
int baseDamage;
bool canBeUsed;
} Weapon;
char *getName(Weapon *weapon);
void setName(Weapon *weapon, char *nameToSet);
char *getFullName(Weapon *weapon);
void setFullName(Weapon *weapon, char *fullNameToSet);
int getTypeID(Weapon *weapon);
void setTypeID(Weapon *weapon, int typeToSet);
#endif