Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class Player {
- private:
- //Atributos
- char name;
- float health;
- float max_health;
- float mana;
- float max_mana;
- float strenght;
- float defense;
- float exp;
- public:
- //Metodos
- void set_health (float value) {health = value}
- void add_health (float value) {health+= value}
- void sub_health (float value) {health-= value}
- void set_mana (float value) {mana = value}
- void add_mana (float value) {mana+= value}
- void sub_mana (float value) {mana-= value}
- void set_strenght (float value) {strenght = value}
- void set_defense (float value) {defense = value}
- void set_exp {float value} {exp = value}
- void add_exp {float value} {exp += value}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement