Skip to content
Permalink
Browse files
Create health class
  • Loading branch information
alimoha2 committed Mar 20, 2020
0 parents commit 62a1f00bebade8523599af249a06e555132feb24
Showing 1 changed file with 40 additions and 0 deletions.
@@ -0,0 +1,40 @@
#include <string>
#include <iostream>
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;
}



};

0 comments on commit 62a1f00

Please sign in to comment.