cleanup Main_enemy.h
authorArvid Sjöblom <arvsj277@student.liu.se>
Mon, 11 Dec 2023 08:55:05 +0000 (09:55 +0100)
committerArvid Sjöblom <arvsj277@student.liu.se>
Mon, 11 Dec 2023 08:55:05 +0000 (09:55 +0100)
src/Main_enemy.h

index 087fa2f94cb3e764faa12d56e2864cf5ae2933b9..af42b3574416b556ab5043bcbb4c0ee0eb625816 100644 (file)
@@ -23,12 +23,10 @@ public:
     void collision_player();
     void update(Context& context) override;
     void render(sf::RenderWindow& window) const override;
-
-protected:
-
 private:
     float bottle_dist(std::unique_ptr<Bottle> const& bottle);
-    sf::Vector2f find_closest_bottle(std::vector<std::unique_ptr<Bottle>> & bottles);
+    sf::Vector2f find_closest_bottle(
+        std::vector<std::unique_ptr<Bottle>> & bottles);
     void move(bool forward = true);
 
     float max_speed;
@@ -38,5 +36,4 @@ private:
     bool tumbling;
     bool moving_to_bottle;
 };
-
 #endif
\ No newline at end of file