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

Entry.h 587B

123456789101112131415161718192021222324252627282930
  1. #ifndef ENTRY_H
  2. #define ENTRY_H
  3. #include <string>
  4. #include <thread>
  5. #include <unistd.h>
  6. class Entry
  7. {
  8. public:
  9. Entry(int speedRate);
  10. ~Entry();
  11. static void initScene(int xRes, int yRes);
  12. int getxPosition();
  13. int getyPosition();
  14. std::string getSymbol();
  15. std::thread runThread();
  16. protected:
  17. private:
  18. static bool initialized;
  19. static int xMax;
  20. static int yMax;
  21. int xPosition;
  22. int yPosition;
  23. int speedRate;
  24. std::string symbol;
  25. void run();
  26. };
  27. #endif // ENTRY_H