Space Walk board game
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

  1. #ifndef PLAYER_H
  2. #define PLAYER_H
  3. #define CHIP_AMOUNT 4
  4. #define CHIP_SCORE 2
  5. #include <string>
  6. class InfoWindow;
  7. class Player
  8. {
  9. public:
  10. Player();
  11. void render(InfoWindow *window, int y, int x, unsigned char number);
  12. unsigned char getChip();
  13. void setChip(unsigned char chip);
  14. unsigned char getColor();
  15. void setColor(unsigned char color);
  16. std::string getName();
  17. void setName(std::string name);
  18. private:
  19. unsigned char chip;
  20. unsigned char color;
  21. std::string name;
  22. };
  23. #endif // PLAYER_H