CPP-RPG/Player.h

28 lines
338 B
C
Raw Permalink Normal View History

2021-01-24 14:40:11 -05:00
#ifndef PLAYER_H
#define PLAYER_H
#include <string>
//#include "Weapon.h"
enum CharClass {
FIGHTER,
WIZARD,
ROGUE,
};
class Player {
public:
Player(std::string setName,
CharClass setCharClass);
bool Alive() const { return hp > 0; }
private:
std::string name;
CharClass charClass;
int hp;
// Weapon weapon;
};
#endif