YAPOG  0.0.1
Yet Another Pokemon Online Game
EventTriggerBoundingBoxCollection.cpp
Go to the documentation of this file.
5 
6 namespace yap
7 {
10  , parent_ (nullptr)
11  {
12  }
13 
15  {
16  }
17 
20  : BoundingBoxCollection (copy)
21  , parent_ (nullptr)
22  {
23  for (BoundingBox* boundingBox : copy.GetBoundingBoxes ())
24  AddEventTriggerBoundingBox (new BoundingBox (*boundingBox));
25  }
26 
28  BoundingBox* boundingBox)
29  {
30  AddBoundingBox (boundingBox);
31  }
32 
34  BoundingBox* boundingBox)
35  {
36  RemoveBoundingBox (boundingBox);
37  }
38 
40  DynamicWorldObject& parent,
41  CollidableArea* collidableArea)
42  {
43  parent_ = &parent;
44 
46  }
47 
49  const CollidableArea& collidableArea,
50  MapEventQueue& events) const
51  {
52  for (const BoundingBox* boundingBox : GetBoundingBoxes ())
53  collidableArea.GetEventsCollidingWith (*boundingBox, events, *parent_);
54  }
55 
56  void
58  BoundingBox* boundingBox)
59  {
60  }
61 
64  BoundingBox* boundingBox)
65  {
66  }
67 } // namespace yap