From 7db6fedc10d53b93011d20d4108f300749077a6c Mon Sep 17 00:00:00 2001 From: Alma Dejus Date: Thu, 9 Nov 2023 15:48:18 +0100 Subject: [PATCH] added Main_enemy --- src/Main_enemy.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/Main_enemy.h b/src/Main_enemy.h index e69de29..111e6b2 100644 --- a/src/Main_enemy.h +++ b/src/Main_enemy.h @@ -0,0 +1,26 @@ +#ifndef MAIN_ENEMY_H +#define MAIN_ENEMY_H + +#include + +#include "Autonomus_object.h" +#include "Bottle.h" + +#include + +class Main_enemy : public Autonomus_object +{ +public: + bool collides(Object& other) override; + void collision(Object& other) override; + void update() override; + void render(sf::RenderWindow& window) override; + +protected: + void move(Time) override; + +private: + Bottle find_closest_bottle(std::vector); +} + +#endif \ No newline at end of file -- 2.30.2