From 62a1f00bebade8523599af249a06e555132feb24 Mon Sep 17 00:00:00 2001 From: "Mahamed-Amin Ali mohamed (alimoha2)" Date: Fri, 20 Mar 2020 15:35:29 +0000 Subject: [PATCH] Create health class --- health class | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 health class diff --git a/health class b/health class new file mode 100644 index 0000000..52d5c4f --- /dev/null +++ b/health class @@ -0,0 +1,40 @@ +#include +#include +using namespace std; + + +class health +{ + private: + int player, monster; + string level; + + public: + void setPlayer(int _player) + { + player = _player; + } + + int getPlayer() + { + return player; + } + + void setMonster(int _monster) + { + monster = _monster; + } + + int getMonster() + { + return monster; + } + + string getLevel(string _level) + { + return level; + } + + + +};