You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
500 B
32 lines
500 B
4 years ago
|
#ifndef PLAYER_H
|
||
|
#define PLAYER_H
|
||
|
|
||
|
#define CHIP_AMOUNT 4
|
||
|
#define CHIP_SCORE 2
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
class InfoWindow;
|
||
|
|
||
|
class Player
|
||
|
{
|
||
|
public:
|
||
|
Player();
|
||
|
|
||
|
void render(InfoWindow *window, int y, int x, unsigned char number);
|
||
|
|
||
|
unsigned char getChip();
|
||
|
void setChip(unsigned char chip);
|
||
|
unsigned char getColor();
|
||
|
void setColor(unsigned char color);
|
||
|
std::string getName();
|
||
|
void setName(std::string name);
|
||
|
|
||
|
private:
|
||
|
unsigned char chip;
|
||
|
unsigned char color;
|
||
|
std::string name;
|
||
|
};
|
||
|
|
||
|
#endif // PLAYER_H
|