YAPOG  0.0.1
Yet Another Pokemon Online Game
EventBoundingBoxCollection.cpp
Go to the documentation of this file.
6 
7 namespace yap
8 {
11  , parent_ (nullptr)
12  , eventBoundingBoxes_ ()
13  {
14  }
15 
17  {
18  }
19 
21  const EventBoundingBoxCollection& copy)
22  : BoundingBoxCollection (copy)
23  , parent_ (nullptr)
24  , eventBoundingBoxes_ ()
25  {
26  }
27 
29  BoundingBox* boundingBox,
30  MapEvent* event)
31  {
32  eventBoundingBoxes_.Add (boundingBox, event);
33 
34  AddBoundingBox (boundingBox);
35  }
36 
38  BoundingBox* boundingBox)
39  {
40  eventBoundingBoxes_.Remove (boundingBox);
41 
42  RemoveBoundingBox (boundingBox);
43  }
44 
46  DynamicWorldObject& parent,
47  CollidableArea* collidableArea)
48  {
49  parent_ = &parent;
50 
52  }
53 
55  BoundingBox* boundingBox)
56  {
58  boundingBox,
60  new MapEventInfo (
61  *boundingBox,
62  *eventBoundingBoxes_[boundingBox],
63  *parent_)));
64  }
65 
67  BoundingBox* boundingBox)
68  {
70  }
71 } // namespace yap