the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 15 lines 205 B view raw
1#pragma once 2 3class Sensing 4{ 5private: 6 Mob *mob; 7 vector<weak_ptr<Entity> > seen; 8 vector<weak_ptr<Entity> > unseen; 9 10public: 11 Sensing(Mob *mob); 12 13 void tick(); 14 bool canSee(shared_ptr<Entity> target); 15};