您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
31 行
500 B
31 行
500 B
#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
|
|
|