Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.67 KB | None | 0 0
  1. Class Player {
  2.     private:
  3.         //Atributos
  4.         char name;
  5.         float health;
  6.         float max_health;
  7.         float mana;
  8.         float max_mana;
  9.         float strenght;
  10.         float defense;
  11.         float exp;
  12.     public:
  13.         //Metodos
  14.         void set_health (float value) {health = value}
  15.         void add_health (float value) {health+= value}
  16.         void sub_health (float value) {health-= value}
  17.         void set_mana (float value) {mana = value}
  18.         void add_mana (float value) {mana+= value}
  19.         void sub_mana (float value) {mana-= value}
  20.         void set_strenght (float value) {strenght = value}
  21.         void set_defense (float value) {defense = value}
  22.         void set_exp {float value} {exp = value}
  23.         void add_exp {float value} {exp += value}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement