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.

29 lines
547 B

  1. #ifndef WEAPON_H
  2. #define WEAPON_H
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5. #include <stdbool.h>
  6. #include <string.h>
  7. typedef struct
  8. {
  9. int id;
  10. char *fullName;
  11. char *name;
  12. int typeID;
  13. char *typeName;
  14. int damageModifier;
  15. int baseDamage;
  16. bool canBeUsed;
  17. } Weapon;
  18. char *getName(Weapon *weapon);
  19. void setName(Weapon *weapon, char *nameToSet);
  20. char *getFullName(Weapon *weapon);
  21. void setFullName(Weapon *weapon, char *fullNameToSet);
  22. int getTypeID(Weapon *weapon);
  23. void setTypeID(Weapon *weapon, int typeToSet);
  24. #endif