added Main_enemy
authorAlma Dejus <almde515@student.liu.se>
Thu, 9 Nov 2023 14:48:18 +0000 (15:48 +0100)
committerAlma Dejus <almde515@student.liu.se>
Thu, 9 Nov 2023 14:48:18 +0000 (15:48 +0100)
src/Main_enemy.h

index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..111e6b25dc3cd5903e56e7da97a31e0609e9a314 100644 (file)
@@ -0,0 +1,26 @@
+#ifndef MAIN_ENEMY_H
+#define MAIN_ENEMY_H
+
+#include <SFML/Graphics.hpp> 
+
+#include "Autonomus_object.h"
+#include "Bottle.h"
+
+#include <vector>
+
+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<Bottle>);
+}
+
+#endif
\ No newline at end of file