geekbrains_gof/SBomber/include/Tank.h

22 lines
338 B
C
Raw Permalink Normal View History

2021-12-20 22:22:05 +00:00
#pragma once
#include <stdint.h>
#include "DestroyableGroundObject.h"
class Tank : public DestroyableGroundObject
{
public:
bool isInside(double x1, double x2) const override;
inline uint16_t GetScore() const override { return score; }
void Draw() const override;
private:
const uint16_t score = 30;
};