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;
bool tumbling;
bool moving_to_bottle;
};
-
#endif
\ No newline at end of file