1 #ifndef BLOBS_CREATURE_LOCATERESOURCEGOAL_HPP_
2 #define BLOBS_CREATURE_LOCATERESOURCEGOAL_HPP_
4 #include "Composition.hpp"
5 #include "../math/glm.hpp"
11 class LocateResourceGoal
15 LocateResourceGoal(Creature &);
16 ~LocateResourceGoal() noexcept override;
19 void SetMinimum(double m) noexcept { minimum = m; }
20 void Accept(int resource, double attractiveness);
22 std::string Describe() const override;
23 void Enable() override;
24 void Tick(double dt) override;
25 void Action() override;
28 void LocateResource();
29 void SearchVicinity();
32 bool OnTarget() const noexcept;
37 glm::dvec3 target_pos;