From f0598196ca1bac007be71a567ba1ff29e1314077 Mon Sep 17 00:00:00 2001 From: "Lucian-Danut Moraru (morarul)" Date: Fri, 20 Mar 2020 12:46:46 +0000 Subject: [PATCH] Create a --- a | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 a diff --git a/a b/a new file mode 100644 index 0000000..2be1d84 --- /dev/null +++ b/a @@ -0,0 +1,82 @@ +class Item; +class Character +{ + +public: + vectorinventory; + static int number; + int maxHealth; + bool dead = false; + string name; + int health, attack, defence, speed; + Character( string Name, int HP, int AT, int DEF, int SP); + Character(); + ~Character() + { + number -= 1; + } + string get_name() { return name; } + int get_health() { return health; } + bool get_life() { return dead; } + int get_attack() { return attack; } + int get_defence() { return defence; } + int get_speed() { return speed; } + void set_maxHealth(int newHealth) + { + maxHealth = newHealth; + } + void heal() + { + health = maxHealth; + } + void Stats() + { + cout <