Refactored all the game classes into derived classes.

This commit is contained in:
2023-07-02 08:42:18 -07:00
parent 5566eced77
commit 9aef66db47
7 changed files with 420 additions and 230 deletions
+6
View File
@@ -9,6 +9,12 @@
struct Player{
friend class Crawler;
friend class Warrior;
friend class Thief;
friend class Ranger;
friend class Bard;
friend class Wizard;
friend class Witch;
private:
Class cl=WARRIOR;
int hp=100,maxhp=hp;