user.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #ifndef USER_H
  2. #define USER_H
  3. #include <string>
  4. class User {
  5. private:
  6. int uid, experience, gun, fuel, metal, armor, shield, hitpoints, armorpoints, shieldpoints, shieldsup, laston;
  7. bool dirt;
  8. std::string nick, real;
  9. public:
  10. // Constructors
  11. User(void);
  12. User(std::string, std::string);
  13. User(int uuid, std::string name, std::string realname, int exp, int lo, int a, int ap, int s, int sp, int su, int hp, int g, int m, int f);
  14. // Initalizer
  15. void init(void);
  16. // Methods
  17. bool dirty(void);
  18. int calcArmor(void);
  19. int calcShield(void);
  20. int calcGun(void);
  21. int calcHP(void);
  22. int calcAP(void);
  23. int calcSP(void);
  24. void regen(void);
  25. void repair(bool);
  26. int takeDamage(int);
  27. // Sets and Gets
  28. void set_dirt(bool);
  29. bool get_dirt(void);
  30. void set_uid(int);
  31. int get_uid(void);
  32. void set_experience(int);
  33. int get_experience(void);
  34. void set_gun(int);
  35. int get_gun(void);
  36. void set_armor(int);
  37. int get_armor(void);
  38. void set_shield(int);
  39. int get_shield(void);
  40. void set_armorpoints(int);
  41. int get_armorpoints(void);
  42. void set_shieldpoints(int);
  43. int get_shieldpoints(void);
  44. void set_shieldsup(int);
  45. int get_shieldsup(void);
  46. void set_hitpoints(int);
  47. int get_hitpoints(void);
  48. void set_laston(int);
  49. int get_laston(void);
  50. void set_metal(int);
  51. int get_metal(void);
  52. void set_fuel(int);
  53. int get_fuel(void);
  54. void set_nick(std::string);
  55. std::string get_nick(void);
  56. void set_real(std::string);
  57. std::string get_real(void);
  58. // Adds and Removes
  59. void addEXP(int);
  60. void rmEXP(int);
  61. void addMetal(int);
  62. void rmMetal(int);
  63. void addFuel(int);
  64. void rmFuel(int);
  65. void rmLaston(int);
  66. void addHP(int);
  67. void addGun(int);
  68. void addArmor(int);
  69. void addShield(int);
  70. void rmSU(int);
  71. };
  72. #endif