28 lines
338 B
C++
28 lines
338 B
C++
#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
|