X-Git-Url: http://git.localhorst.tv/?p=blobs.git;a=blobdiff_plain;f=src%2Fcreature%2FMemory.hpp;h=1d72c751bc694516fc608e5a19058d854f925315;hp=c58fd26420576067d0688df153da1b5b0b6dd5df;hb=76c09039792065ca1c259fb4b681c84c29a9dbd8;hpb=ffda75aa10f772b706c2466e96a2250c89f05120 diff --git a/src/creature/Memory.hpp b/src/creature/Memory.hpp index c58fd26..1d72c75 100644 --- a/src/creature/Memory.hpp +++ b/src/creature/Memory.hpp @@ -27,10 +27,16 @@ public: ~Memory(); public: - void Tick(double dt); - + /// remove all memories void Erase(); + /// try to remember where stuff was + /// when true, pos contains an approximation of the + /// location of the best fitting resource + bool RememberLocation(const Composition &, glm::dvec3 &pos) const noexcept; + + void Tick(double dt); + private: /// track time spent on a tile void TrackStay(const Location &, double t);