From ea96953c52f6ac9e7986d74ae2779f2ee05f019f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arvid=20Sj=C3=B6blom?= Date: Mon, 11 Dec 2023 09:55:05 +0100 Subject: [PATCH] cleanup Main_enemy.h --- src/Main_enemy.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Main_enemy.h b/src/Main_enemy.h index 087fa2f..af42b35 100644 --- a/src/Main_enemy.h +++ b/src/Main_enemy.h @@ -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 const& bottle); - sf::Vector2f find_closest_bottle(std::vector> & bottles); + sf::Vector2f find_closest_bottle( + std::vector> & 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 -- 2.30.2