From: Alma Dejus Date: Thu, 9 Nov 2023 14:48:18 +0000 (+0100) Subject: added Main_enemy X-Git-Url: https://gitweb.forssennils.se/?a=commitdiff_plain;h=7db6fedc10d53b93011d20d4108f300749077a6c;p=TDDC76_proj.git added Main_enemy --- 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