YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
PhysicsBoundingBoxCollection.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_PHYSICSBOUNDINGBOXCOLLECTION_HPP
2
# define YAPOG_PHYSICSBOUNDINGBOXCOLLECTION_HPP
3
4
# include "
YAPOG/Macros.hpp
"
5
# include "
YAPOG/Game/World/Map/Physics/BoundingBoxCollection.hpp
"
6
# include "
YAPOG/Game/World/Map/Physics/MapCollidableInfo.hpp
"
7
8
namespace
yap
9
{
10
class
WorldObject;
11
12
class
YAPOG_LIB
PhysicsBoundingBoxCollection
:
public
BoundingBoxCollection
13
{
14
DISALLOW_ASSIGN
(
PhysicsBoundingBoxCollection
);
15
16
public
:
17
18
PhysicsBoundingBoxCollection
();
19
virtual
~
PhysicsBoundingBoxCollection
();
20
21
PhysicsBoundingBoxCollection
(
const
PhysicsBoundingBoxCollection
& copy);
22
23
void
AddPhysicsBoundingBox (
BoundingBox
* boundingBox);
24
void
RemovePhysicsBoundingBox (
BoundingBox
* boundingBox);
25
26
void
SetCollidableArea (
27
const
WorldObject
& parent,
28
CollidableArea
* collidableArea);
29
30
bool
CollidesWithArea (
31
const
CollidableArea
& collidableArea,
32
const
Vector2
& offset)
const
;
33
34
private
:
35
36
virtual
void
HandleAddBoundingBoxToCollidableArea (
37
BoundingBox
* boundingBox);
38
virtual
void
HandleRemoveBoundingBoxFromCollidableArea (
39
BoundingBox
* boundingBox);
40
41
const
WorldObject
*
parent_
;
42
};
43
}
// namespace yap
44
45
#endif // YAPOG_PHYSICSBOUNDINGBOXCOLLECTION_HPP
YAPOG
include
YAPOG
Game
World
Map
Physics
PhysicsBoundingBoxCollection.hpp
Generated on Mon Sep 17 2012 22:24:23 for YAPOG by
1.8.1.1