YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::CollidableArea Class Reference

#include <CollidableArea.hpp>

Inheritance diagram for yap::CollidableArea:
Collaboration diagram for yap::CollidableArea:

List of all members.

Public Member Functions

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)
virtual bool CollidesWith (const ICollidable &collidable, const Vector2 &offset, const WorldObject &parent) const =0
virtual void GetEventsCollidingWith (const ICollidable &collidable, MapEventQueue &events, DynamicWorldObject &parent) const =0

Protected Member Functions

 CollidableArea ()
virtual void HandleSetSize (const Vector2 &size)
virtual void HandleAddPhysicsCollidable (ICollidable *collidable, const MapCollidableInfo::PtrType &mapCollidableInfo)=0
virtual void HandleRemovePhysicsCollidable (ICollidable *collidable)=0
virtual void HandleAddEventCollidable (ICollidable *collidable, const MapEventInfo::PtrType &mapEventInfo)=0
virtual void HandleRemoveEventCollidable (ICollidable *collidable)=0

Private Member Functions

 DISALLOW_COPY (CollidableArea)

Private Attributes

Vector2 size_

Detailed Description

Definition at line 18 of file CollidableArea.hpp.


Constructor & Destructor Documentation

yap::CollidableArea::~CollidableArea ( )
virtual

Definition at line 9 of file CollidableArea.cpp.

yap::CollidableArea::CollidableArea ( )
protected

Definition at line 5 of file CollidableArea.cpp.


Member Function Documentation

void yap::CollidableArea::AddEventCollidable ( ICollidable collidable,
const MapEventInfo::PtrType mapEventInfo 
)

Definition at line 32 of file CollidableArea.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::CollidableArea::AddPhysicsCollidable ( ICollidable collidable,
const MapCollidableInfo::PtrType mapCollidableInfo 
)

Definition at line 20 of file CollidableArea.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

virtual bool yap::CollidableArea::CollidesWith ( const ICollidable collidable,
const Vector2 offset,
const WorldObject parent 
) const
pure virtual

Implemented in yap::GridCollidableArea.

Here is the caller graph for this function:

yap::CollidableArea::DISALLOW_COPY ( CollidableArea  )
private
virtual void yap::CollidableArea::GetEventsCollidingWith ( const ICollidable collidable,
MapEventQueue events,
DynamicWorldObject parent 
) const
pure virtual

Implemented in yap::GridCollidableArea.

Here is the caller graph for this function:

virtual void yap::CollidableArea::HandleAddEventCollidable ( ICollidable collidable,
const MapEventInfo::PtrType mapEventInfo 
)
protectedpure virtual

Implemented in yap::GridCollidableArea.

Here is the caller graph for this function:

virtual void yap::CollidableArea::HandleAddPhysicsCollidable ( ICollidable collidable,
const MapCollidableInfo::PtrType mapCollidableInfo 
)
protectedpure virtual

Implemented in yap::GridCollidableArea.

Here is the caller graph for this function:

virtual void yap::CollidableArea::HandleRemoveEventCollidable ( ICollidable collidable)
protectedpure virtual

Implemented in yap::GridCollidableArea.

Here is the caller graph for this function:

virtual void yap::CollidableArea::HandleRemovePhysicsCollidable ( ICollidable collidable)
protectedpure virtual

Implemented in yap::GridCollidableArea.

Here is the caller graph for this function:

void yap::CollidableArea::HandleSetSize ( const Vector2 size)
protectedvirtual

Reimplemented in yap::GridCollidableArea.

Definition at line 44 of file CollidableArea.cpp.

Here is the caller graph for this function:

void yap::CollidableArea::RemoveEventCollidable ( ICollidable collidable)

Definition at line 39 of file CollidableArea.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::CollidableArea::RemovePhysicsCollidable ( ICollidable collidable)

Definition at line 27 of file CollidableArea.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::CollidableArea::SetSize ( const Vector2 size)

Definition at line 13 of file CollidableArea.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Vector2 yap::CollidableArea::size_
private

Definition at line 66 of file CollidableArea.hpp.


The documentation for this class was generated from the following files: