Refactor item overlap and add standoff distance

This commit is contained in:
Alexander Bock
2017-11-06 11:02:58 -06:00
parent dc9831b6a6
commit bc4e0e4af0
4 changed files with 76 additions and 39 deletions
@@ -33,6 +33,8 @@
#include <mutex>
#include <random>
// #define LOADINGSCREEN_DEBUGGING
namespace ghoul::fontrendering {
class Font;
} // namespace ghoul::fontrendering
@@ -111,9 +113,14 @@ private:
struct Item {
std::string name;
ItemStatus status;
bool hasLocation;
#ifdef LOADINGSCREEN_DEBUGGING
bool exhaustedSearch;
#endif // LOADINGSCREEN_DEBUGGING
glm::vec2 ll;
glm::vec2 ur;
std::chrono::system_clock::time_point finishedTime;
};
std::vector<Item> _items;