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

#include <PhysicsBoundingBoxCollection.hpp>

Inheritance diagram for yap::PhysicsBoundingBoxCollection:
Collaboration diagram for yap::PhysicsBoundingBoxCollection:

List of all members.

Public Member Functions

 PhysicsBoundingBoxCollection ()
virtual ~PhysicsBoundingBoxCollection ()
 PhysicsBoundingBoxCollection (const PhysicsBoundingBoxCollection &copy)
void AddPhysicsBoundingBox (BoundingBox *boundingBox)
void RemovePhysicsBoundingBox (BoundingBox *boundingBox)
void SetCollidableArea (const WorldObject &parent, CollidableArea *collidableArea)
bool CollidesWithArea (const CollidableArea &collidableArea, const Vector2 &offset) const
- Public Member Functions inherited from yap::BoundingBoxCollection
virtual ~BoundingBoxCollection ()
ItType begin ()
ConstItType begin () const
ItType end ()
ConstItType end () const
virtual const Vector2GetPosition () const
 Gets the coordinates in pixels of the origin of this ISpatial from the global origin.
virtual const Vector2GetSize () const
 Gets the size in pixels of this ISpatial.
virtual const Vector2GetTopLeft () const
virtual const Vector2GetBottomRight () const
virtual const Vector2GetCenter () const
virtual const FloatRectGetRectangle () const
virtual void Move (const Vector2 &offset)
virtual void Scale (const Vector2 &factor)
virtual void SetPosition (const Vector2 &position)
virtual void SetSize (const Vector2 &size)
virtual const int & GetZ () const
 Gets the highness of this ISpatial3.
virtual void SetZ (int z)
 Sets the highness of this ISpatial3.
virtual const int & GetH () const
 Gets the height of this ISpatial3.
virtual void SetH (int h)
 Sets the height of this ISpatial3.
virtual bool CollidesWith (const ICollidable &other) const
virtual bool CollidesWith (const ICollidable &other, const Vector2 &offset) const
- Public Member Functions inherited from yap::ICollidable
virtual ~ICollidable ()
- Public Member Functions inherited from yap::ISpatial3
virtual ~ISpatial3 ()
- Public Member Functions inherited from yap::ISpatial
virtual ~ISpatial ()

Private Member Functions

 DISALLOW_ASSIGN (PhysicsBoundingBoxCollection)
virtual void HandleAddBoundingBoxToCollidableArea (BoundingBox *boundingBox)
virtual void HandleRemoveBoundingBoxFromCollidableArea (BoundingBox *boundingBox)

Private Attributes

const WorldObjectparent_

Additional Inherited Members

- Public Types inherited from yap::BoundingBoxCollection
typedef collection::List
< BoundingBox * >::ItType 
ItType
typedef collection::List
< BoundingBox * >::ConstItType 
ConstItType
- Protected Member Functions inherited from yap::BoundingBoxCollection
 BoundingBoxCollection ()
 BoundingBoxCollection (const BoundingBoxCollection &copy)
void AddBoundingBox (BoundingBox *boundingBox)
void RemoveBoundingBox (BoundingBox *boundingBox)
CollidableAreaGetCollidableArea ()
void SetCollidableArea (CollidableArea *collidableArea)
const collection::List
< BoundingBox * > & 
GetBoundingBoxes () const

Detailed Description

Definition at line 12 of file PhysicsBoundingBoxCollection.hpp.


Constructor & Destructor Documentation

yap::PhysicsBoundingBoxCollection::PhysicsBoundingBoxCollection ( )

Definition at line 9 of file PhysicsBoundingBoxCollection.cpp.

yap::PhysicsBoundingBoxCollection::~PhysicsBoundingBoxCollection ( )
virtual

Definition at line 15 of file PhysicsBoundingBoxCollection.cpp.

yap::PhysicsBoundingBoxCollection::PhysicsBoundingBoxCollection ( const PhysicsBoundingBoxCollection copy)

Definition at line 19 of file PhysicsBoundingBoxCollection.cpp.

Here is the call graph for this function:


Member Function Documentation

void yap::PhysicsBoundingBoxCollection::AddPhysicsBoundingBox ( BoundingBox boundingBox)

Definition at line 28 of file PhysicsBoundingBoxCollection.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool yap::PhysicsBoundingBoxCollection::CollidesWithArea ( const CollidableArea collidableArea,
const Vector2 offset 
) const

Definition at line 49 of file PhysicsBoundingBoxCollection.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

yap::PhysicsBoundingBoxCollection::DISALLOW_ASSIGN ( PhysicsBoundingBoxCollection  )
private
void yap::PhysicsBoundingBoxCollection::HandleAddBoundingBoxToCollidableArea ( BoundingBox boundingBox)
privatevirtual

Implements yap::BoundingBoxCollection.

Definition at line 60 of file PhysicsBoundingBoxCollection.cpp.

Here is the call graph for this function:

void yap::PhysicsBoundingBoxCollection::HandleRemoveBoundingBoxFromCollidableArea ( BoundingBox boundingBox)
privatevirtual

Implements yap::BoundingBoxCollection.

Definition at line 72 of file PhysicsBoundingBoxCollection.cpp.

Here is the call graph for this function:

void yap::PhysicsBoundingBoxCollection::RemovePhysicsBoundingBox ( BoundingBox boundingBox)

Definition at line 34 of file PhysicsBoundingBoxCollection.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::PhysicsBoundingBoxCollection::SetCollidableArea ( const WorldObject parent,
CollidableArea collidableArea 
)

Definition at line 40 of file PhysicsBoundingBoxCollection.cpp.

Here is the caller graph for this function:


Member Data Documentation

const WorldObject* yap::PhysicsBoundingBoxCollection::parent_
private

Definition at line 41 of file PhysicsBoundingBoxCollection.hpp.


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