YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
"
5
# include "
YAPOG/Game/World/Map/Physics/BoundingBoxCollection.hpp
"
6
# include "
YAPOG/Game/World/Map/Physics/MapEventInfo.hpp
"
7
# include "
YAPOG/Collection/Map.hpp
"
8
9
namespace
yap
10
{
11
class
WorldObject;
12
class
DynamicWorldObject;
13
class
MapEvent;
14
15
class
YAPOG_LIB
EventBoundingBoxCollection
:
public
BoundingBoxCollection
16
{
17
DISALLOW_ASSIGN
(
EventBoundingBoxCollection
);
18
19
public
:
20
21
EventBoundingBoxCollection
();
22
virtual
~
EventBoundingBoxCollection
();
23
24
EventBoundingBoxCollection
(
const
EventBoundingBoxCollection
& copy);
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
42
DynamicWorldObject
*
parent_
;
43
44
collection::Map<BoundingBox*, MapEvent*>
eventBoundingBoxes_
;
45
};
46
}
// namespace yap
47
48
#endif // YAPOG_EVENTBOUNDINGBOXCOLLECTION_HPP
YAPOG
include
YAPOG
Game
World
Map
Physics
EventBoundingBoxCollection.hpp
Generated on Mon Sep 17 2012 22:24:23 for YAPOG by
1.8.1.1