Projekty z kursu Systemy operacyjne 2 na PWr
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

12345678910111213141516171819202122232425262728293031
  1. #ifndef BRICK_H
  2. #define BRICK_H
  3. #include <thread>
  4. #include "Platform.h"
  5. #include "Scene.h"
  6. class Brick : public Scene
  7. {
  8. public:
  9. Brick(int xPosition, int descentRate);
  10. ~Brick();
  11. static void setPlatform(Platform *newPlatform);
  12. int getxPosition();
  13. int getyPosition();
  14. int getColor();
  15. bool isFalling();
  16. std::thread fallThread();
  17. protected:
  18. private:
  19. static Platform *platform;
  20. int xPosition;
  21. int yPosition;
  22. int descentRate;
  23. int color;
  24. bool falling;
  25. void fall();
  26. void randomColor();
  27. };
  28. #endif // BRICK_H