Advertisement
Vlad3955

LevelGUI.h

Sep 18th, 2022
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.83 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include <stdint.h>
  4.  
  5. #include "GameObject.h"
  6.  
  7. class LevelGUI : public GameObject {
  8. public:
  9.  
  10.     LevelGUI() : bombsNumber(0), score(0), passedTime(0), fps(0), height(0) { }
  11.  
  12.     void __fastcall SetParam(uint64_t passedTimeNew, uint64_t fpsNew, uint16_t bombsNumberNew, int16_t scoreNew);
  13.    
  14.     void __fastcall SetHeight(uint16_t heightN) { height = heightN; };
  15.    
  16.     inline uint16_t GetFinishX() const { return finishX; }
  17.     inline void SetFinishX(uint16_t finishXN) { finishX = finishXN; }
  18.     void BeNotified(std::string& mes) const { _receiveMessage.push(mes); }
  19.     void Draw() const override;
  20.  
  21. private:
  22.    
  23.     mutable std::queue<std::string> _receiveMessage;
  24.     uint16_t height;
  25.     uint16_t finishX = 109;
  26.  
  27.     uint64_t passedTime, fps;
  28.     uint16_t bombsNumber;
  29.     int16_t score;
  30. };
  31.  
  32.  
  33.  
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement