geekbrains_gof/SBomber/include/Ground.h

20 lines
311 B
C
Raw Permalink Normal View History

2021-12-20 22:22:05 +00:00
#pragma once
#include "GameObject.h"
#include "Crater.h"
#include <vector>
class Ground : public GameObject {
public:
Ground() = default;
void Draw() const override;
void AddCrater(double xn);
private:
bool isInsideAnyCrater(double x) const;
std::vector<Crater> vecCrates;
};