Projekty z kursu Systemy operacyjne 2 na PWr
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Platform.h 591B

123456789101112131415161718192021222324252627282930
  1. #ifndef PLATFORM_H
  2. #define PLATFORM_H
  3. #include <string>
  4. #include <thread>
  5. #include "Scene.h"
  6. class Platform : public Scene
  7. {
  8. public:
  9. Platform();
  10. ~Platform();
  11. const char *getSprite();
  12. int getPosition();
  13. int getEnd();
  14. int getColor();
  15. void terminateThreads();
  16. std::thread moveKeyThread();
  17. std::thread colorChangeThread();
  18. protected:
  19. private:
  20. std::string sprite;
  21. int position;
  22. int points;
  23. int color;
  24. void moveKey();
  25. void colorChange();
  26. };
  27. #endif // PLATFORM_H