![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
#include <GridCollidableArea.hpp>
Public Member Functions | |
| GridCollidableArea () | |
| virtual | ~GridCollidableArea () |
| void | SetSegmentCount (uint vSegmentCount, uint hSegmentCount) |
| virtual bool | CollidesWith (const ICollidable &collidable, const Vector2 &offset, const WorldObject &parent) const |
| virtual void | GetEventsCollidingWith (const ICollidable &collidable, MapEventQueue &events, DynamicWorldObject &parent) const |
Public Member Functions inherited from yap::CollidableArea | |
| virtual | ~CollidableArea () |
| void | SetSize (const Vector2 &size) |
| void | AddPhysicsCollidable (ICollidable *collidable, const MapCollidableInfo::PtrType &mapCollidableInfo) |
| void | RemovePhysicsCollidable (ICollidable *collidable) |
| void | AddEventCollidable (ICollidable *collidable, const MapEventInfo::PtrType &mapEventInfo) |
| void | RemoveEventCollidable (ICollidable *collidable) |
Protected Member Functions | |
| virtual void | HandleSetSize (const Vector2 &size) |
| virtual void | HandleAddPhysicsCollidable (ICollidable *collidable, const MapCollidableInfo::PtrType &mapCollidableInfo) |
| virtual void | HandleRemovePhysicsCollidable (ICollidable *collidable) |
| virtual void | HandleAddEventCollidable (ICollidable *collidable, const MapEventInfo::PtrType &mapEventInfo) |
| virtual void | HandleRemoveEventCollidable (ICollidable *collidable) |
Protected Member Functions inherited from yap::CollidableArea | |
| CollidableArea () | |
Private Member Functions | |
| DISALLOW_COPY (GridCollidableArea) | |
| void | GetCollidableRectangle (const ICollidable &collidable, UIntRect &rectangle) const |
| void | GetCollidableRectangle (const ICollidable &collidable, const Vector2 &offset, UIntRect &rectangle) const |
Private Attributes | |
| uint | vSegmentCount_ |
| uint | hSegmentCount_ |
| Vector2 | cellSize_ |
| collection::Matrix < CollidableAreaCell * > | cells_ |
Static Private Attributes | |
| static const uint | MIN_VSEGMENT_COUNT = 1 |
| static const uint | MIN_HSEGMENT_COUNT = 1 |
Definition at line 13 of file GridCollidableArea.hpp.
| yap::GridCollidableArea::GridCollidableArea | ( | ) |
Definition at line 15 of file GridCollidableArea.cpp.
|
virtual |
Definition at line 22 of file GridCollidableArea.cpp.
|
virtual |
Implements yap::CollidableArea.
Definition at line 51 of file GridCollidableArea.cpp.
|
private |
|
private |
|
private |
|
virtual |
Implements yap::CollidableArea.
Definition at line 71 of file GridCollidableArea.cpp.
|
protectedvirtual |
Implements yap::CollidableArea.
Definition at line 126 of file GridCollidableArea.cpp.
|
protectedvirtual |
Implements yap::CollidableArea.
Definition at line 95 of file GridCollidableArea.cpp.
|
protectedvirtual |
Implements yap::CollidableArea.
Definition at line 142 of file GridCollidableArea.cpp.
|
protectedvirtual |
Implements yap::CollidableArea.
Definition at line 111 of file GridCollidableArea.cpp.
|
protectedvirtual |
Reimplemented from yap::CollidableArea.
Definition at line 88 of file GridCollidableArea.cpp.
Definition at line 26 of file GridCollidableArea.cpp.
|
private |
Definition at line 66 of file GridCollidableArea.hpp.
|
private |
Definition at line 64 of file GridCollidableArea.hpp.
|
private |
Definition at line 62 of file GridCollidableArea.hpp.
|
staticprivate |
Definition at line 59 of file GridCollidableArea.hpp.
|
staticprivate |
Definition at line 58 of file GridCollidableArea.hpp.
|
private |
Definition at line 61 of file GridCollidableArea.hpp.