| 123456789101112131415161718192021222324252627282930313233343536373839 |
- /*
- * TurnTimerWidget.hpp, part of VCMI engine
- *
- * Authors: listed in file AUTHORS in main folder
- *
- * License: GNU General Public License v2.0 or later
- * Full text of license available in license.txt file, in main folder
- *
- */
- #pragma once
- #include "../gui/CIntObject.h"
- class CAnimImage;
- class CLabel;
- class TurnTimerWidget : public CIntObject
- {
- private:
- int turnTime;
- int lastTurnTime;
- int cachedTurnTime;
-
- std::shared_ptr<CAnimImage> watches;
- std::shared_ptr<CLabel> label;
- public:
- //void tick(uint32_t msPassed) override;
- void show(Canvas & to) override;
- void showAll(Canvas & to) override;
- void tick(uint32_t msPassed) override;
-
- void setTime(int time);
- TurnTimerWidget();
- };
|