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.
 
 

37 lines
586 B

  1. #ifndef SPACESHIP_H
  2. #define SPACESHIP_H
  3. #define PLANET_UNSET -1
  4. class Window;
  5. class SpaceShip
  6. {
  7. public:
  8. SpaceShip();
  9. SpaceShip(unsigned char color, unsigned char size);
  10. void render(Window *window, int y, int x, bool checkPlaced = true);
  11. unsigned char getColor();
  12. void setColor(unsigned char color);
  13. unsigned char getSize();
  14. void setSize(unsigned char size);
  15. char getPlanet();
  16. void setPlanet(char planet);
  17. enum Size {
  18. SIZE_UNSET = 0,
  19. SMALL = 1,
  20. MEDIUM = 3,
  21. BIG = 4,
  22. };
  23. private:
  24. unsigned char color;
  25. unsigned char size;
  26. char planet;
  27. };
  28. #endif // SPACESHIP_H