TurnTimerWidget.h 708 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * TurnTimerWidget.hpp, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "../gui/CIntObject.h"
  12. class CAnimImage;
  13. class CLabel;
  14. class TurnTimerWidget : public CIntObject
  15. {
  16. private:
  17. int turnTime;
  18. int lastTurnTime;
  19. int cachedTurnTime;
  20. std::shared_ptr<CAnimImage> watches;
  21. std::shared_ptr<CLabel> label;
  22. public:
  23. //void tick(uint32_t msPassed) override;
  24. void show(Canvas & to) override;
  25. void showAll(Canvas & to) override;
  26. void tick(uint32_t msPassed) override;
  27. void setTime(int time);
  28. TurnTimerWidget();
  29. };