YAPOG  0.0.1
Yet Another Pokemon Online Game
EventTriggerBoundingBoxCollection.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_EVENTTRIGGERBOUNDINGBOXCOLLECTION_HPP
2 # define YAPOG_EVENTTRIGGERBOUNDINGBOXCOLLECTION_HPP
3 
4 # include "YAPOG/Macros.hpp"
6 
7 namespace yap
8 {
9  class DynamicWorldObject;
10  class MapEventQueue;
11 
13  {
15 
16  public:
17 
20 
23 
24  void AddEventTriggerBoundingBox (BoundingBox* boundingBox);
25  void RemoveEventTriggerBoundingBox (BoundingBox* boundingBox);
26 
27  void SetCollidableArea (
28  DynamicWorldObject& parent,
29  CollidableArea* collidableArea);
30 
31  void GetEventsCollidingWith (
32  const CollidableArea& collidableArea,
33  MapEventQueue& events) const;
34 
35  private:
36 
37  virtual void HandleAddBoundingBoxToCollidableArea (
38  BoundingBox* boundingBox);
39  virtual void HandleRemoveBoundingBoxFromCollidableArea (
40  BoundingBox* boundingBox);
41 
43  };
44 } // namespace yap
45 
46 #endif // YAPOG_EVENTTRIGGERBOUNDINGBOXCOLLECTION_HPP