Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
aabbenteredpoll.h
1 #pragma once
2 
3 #include <functional>
4 
5 #include "geometry/aabb.h"
6 
7 #include "utils/handle/handle.h"
8 
9 #include "eventpoll.h"
10 
11 
12 class AABBEnteredPoll : public EventPoll {
13 public:
14  AABBEnteredPoll(WorldObject* worldObject, const AABB& aabb, const std::function<void()>& callback);
15 
16  virtual bool isDead() override;
17 
18 
19 protected:
20  Handle<WorldObject> m_worldObject;
21  AABB m_aabb;
22 
23  bool m_entered;
24 
25 
26  virtual bool poll() override;
27  virtual void specialOnCallback() override;
28 };
29 
Definition: worldobject.h:43
Definition: aabbenteredpoll.h:12
Definition: eventpoll.h:11