Advertisement
Vlad3955

Tank.h

Sep 18th, 2022
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include <stdint.h>
  4. #include <string>
  5. #include "Mediator.h"
  6. #include "DestroyableGroundObject.h"
  7.  
  8. class Mediator;
  9.  
  10. class Tank : public DestroyableGroundObject
  11. {
  12. public:
  13.  
  14.     bool __fastcall isInside(double x1, double x2) const override;
  15.  
  16.     inline uint16_t GetScore() const override { return score; }
  17.  
  18.     void BeNotified(std::string& mes) const;
  19.  
  20.     void Draw() const override;
  21.  
  22.     static Mediator* med;
  23.  
  24. private:
  25.    
  26.     const uint16_t score = 30;
  27. };
  28.  
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement