From: Arvid Sjöblom Date: Mon, 11 Dec 2023 08:55:05 +0000 (+0100) Subject: cleanup Main_enemy.h X-Git-Url: https://gitweb.forssennils.se/?a=commitdiff_plain;h=ea96953c52f6ac9e7986d74ae2779f2ee05f019f;p=TDDC76_proj.git cleanup Main_enemy.h --- 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