mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 15:23:37 +00:00
14 lines
248 B
C++
14 lines
248 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);
|
|
}; |