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