Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <stdint.h>
- #include "GameObject.h"
- class LevelGUI : public GameObject {
- public:
- LevelGUI() : bombsNumber(0), score(0), passedTime(0), fps(0), height(0) { }
- void __fastcall SetParam(uint64_t passedTimeNew, uint64_t fpsNew, uint16_t bombsNumberNew, int16_t scoreNew);
- void __fastcall SetHeight(uint16_t heightN) { height = heightN; };
- inline uint16_t GetFinishX() const { return finishX; }
- inline void SetFinishX(uint16_t finishXN) { finishX = finishXN; }
- void BeNotified(std::string& mes) const { _receiveMessage.push(mes); }
- void Draw() const override;
- private:
- mutable std::queue<std::string> _receiveMessage;
- uint16_t height;
- uint16_t finishX = 109;
- uint64_t passedTime, fps;
- uint16_t bombsNumber;
- int16_t score;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement