mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-14 03:57:14 +00:00
15 lines
220 B
C++
15 lines
220 B
C++
#pragma once
|
|
|
|
class Sensing
|
|
{
|
|
private:
|
|
Mob *mob;
|
|
std::vector<weak_ptr<Entity> > seen;
|
|
std::vector<weak_ptr<Entity> > unseen;
|
|
|
|
public:
|
|
Sensing(Mob *mob);
|
|
|
|
void tick();
|
|
bool canSee(std::shared_ptr<Entity> target);
|
|
}; |