YAPOG  0.0.1
Yet Another Pokemon Online Game
EventBoundingBoxCollection.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_EVENTBOUNDINGBOXCOLLECTION_HPP
2 # define YAPOG_EVENTBOUNDINGBOXCOLLECTION_HPP
3 
4 # include "YAPOG/Macros.hpp"
7 # include "YAPOG/Collection/Map.hpp"
8 
9 namespace yap
10 {
11  class WorldObject;
12  class DynamicWorldObject;
13  class MapEvent;
14 
16  {
18 
19  public:
20 
22  virtual ~EventBoundingBoxCollection ();
23 
25 
26  void AddEventBoundingBox (
27  BoundingBox* boundingBox,
28  MapEvent* event);
29  void RemoveEventBoundingBox (BoundingBox* boundingBox);
30 
31  void SetCollidableArea (
32  DynamicWorldObject& parent,
33  CollidableArea* collidableArea);
34 
35  private:
36 
37  virtual void HandleAddBoundingBoxToCollidableArea (
38  BoundingBox* boundingBox);
39  virtual void HandleRemoveBoundingBoxFromCollidableArea (
40  BoundingBox* boundingBox);
41 
43 
45  };
46 } // namespace yap
47 
48 #endif // YAPOG_EVENTBOUNDINGBOXCOLLECTION_HPP