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

#include <BoundingBoxCollection.hpp>

Inheritance diagram for yap::BoundingBoxCollection:
Collaboration diagram for yap::BoundingBoxCollection:

List of all members.

Public Types

typedef collection::List
< BoundingBox * >::ItType 
ItType
typedef collection::List
< BoundingBox * >::ConstItType 
ConstItType

Public Member Functions

virtual ~BoundingBoxCollection ()
ItType begin ()
ConstItType begin () const
ItType end ()
ConstItType end () const
ISpatial members.
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)
ISpatial3 members.
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.
ICollidable members.
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 ()

Protected Member Functions

 BoundingBoxCollection ()
 BoundingBoxCollection (const BoundingBoxCollection &copy)
void AddBoundingBox (BoundingBox *boundingBox)
void RemoveBoundingBox (BoundingBox *boundingBox)
CollidableAreaGetCollidableArea ()
void SetCollidableArea (CollidableArea *collidableArea)
const collection::List
< BoundingBox * > & 
GetBoundingBoxes () const

Private Member Functions

 DISALLOW_ASSIGN (BoundingBoxCollection)
void AddBoundingBoxToCollidableArea (BoundingBox *boundingBox)
void RemoveBoundingBoxFromCollidableArea (BoundingBox *boundingBox)
virtual void HandleAddBoundingBoxToCollidableArea (BoundingBox *boundingBox)=0
virtual void HandleRemoveBoundingBoxFromCollidableArea (BoundingBox *boundingBox)=0
void AddBoundingBoxesToCollidableArea ()
void RemoveBoundingBoxesFromCollidableArea ()

Private Attributes

Spatial3Info spatial3Info_
collection::List< BoundingBox * > boundingBoxes_
CollidableAreacollidableArea_

Detailed Description

Definition at line 15 of file BoundingBoxCollection.hpp.


Member Typedef Documentation


Constructor & Destructor Documentation

yap::BoundingBoxCollection::~BoundingBoxCollection ( )
virtual

Definition at line 15 of file BoundingBoxCollection.cpp.

yap::BoundingBoxCollection::BoundingBoxCollection ( )
protected

Definition at line 8 of file BoundingBoxCollection.cpp.

yap::BoundingBoxCollection::BoundingBoxCollection ( const BoundingBoxCollection copy)
protected

Definition at line 21 of file BoundingBoxCollection.cpp.


Member Function Documentation

void yap::BoundingBoxCollection::AddBoundingBox ( BoundingBox boundingBox)
protected

Definition at line 29 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::BoundingBoxCollection::AddBoundingBoxesToCollidableArea ( )
private

Definition at line 229 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::BoundingBoxCollection::AddBoundingBoxToCollidableArea ( BoundingBox boundingBox)
private

Definition at line 187 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

BoundingBoxCollection::ItType yap::BoundingBoxCollection::begin ( )

Definition at line 43 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

BoundingBoxCollection::ConstItType yap::BoundingBoxCollection::begin ( ) const

Definition at line 48 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

bool yap::BoundingBoxCollection::CollidesWith ( const ICollidable other) const
virtual

Implements yap::ICollidable.

Definition at line 171 of file BoundingBoxCollection.cpp.

Here is the caller graph for this function:

bool yap::BoundingBoxCollection::CollidesWith ( const ICollidable other,
const Vector2 offset 
) const
virtual

Implements yap::ICollidable.

Definition at line 176 of file BoundingBoxCollection.cpp.

yap::BoundingBoxCollection::DISALLOW_ASSIGN ( BoundingBoxCollection  )
private
BoundingBoxCollection::ItType yap::BoundingBoxCollection::end ( )

Definition at line 53 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

BoundingBoxCollection::ConstItType yap::BoundingBoxCollection::end ( ) const

Definition at line 58 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

const Vector2 & yap::BoundingBoxCollection::GetBottomRight ( ) const
virtual

Implements yap::ISpatial.

Definition at line 78 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

const collection::List< BoundingBox * > & yap::BoundingBoxCollection::GetBoundingBoxes ( ) const
protected

Definition at line 224 of file BoundingBoxCollection.cpp.

Here is the caller graph for this function:

const Vector2 & yap::BoundingBoxCollection::GetCenter ( ) const
virtual

Implements yap::ISpatial.

Definition at line 83 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

CollidableArea & yap::BoundingBoxCollection::GetCollidableArea ( )
protected

Definition at line 205 of file BoundingBoxCollection.cpp.

Here is the caller graph for this function:

const int & yap::BoundingBoxCollection::GetH ( ) const
virtual

Gets the height of this ISpatial3.

Returns:
The height of this ISpatial3.

Implements yap::ISpatial3.

Definition at line 152 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const Vector2 & yap::BoundingBoxCollection::GetPosition ( ) const
virtual

Gets the coordinates in pixels of the origin of this ISpatial from the global origin.

Returns:
The coordinates in pixels of the origin of this ISpatial from the global origin.

Implements yap::ISpatial.

Definition at line 63 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const sf::FloatRect & yap::BoundingBoxCollection::GetRectangle ( ) const
virtual

Implements yap::ISpatial.

Definition at line 88 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

const Vector2 & yap::BoundingBoxCollection::GetSize ( ) const
virtual

Gets the size in pixels of this ISpatial.

Returns:
The size in pixels of this ISpatial.

Implements yap::ISpatial.

Definition at line 68 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const Vector2 & yap::BoundingBoxCollection::GetTopLeft ( ) const
virtual

Implements yap::ISpatial.

Definition at line 73 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

const int & yap::BoundingBoxCollection::GetZ ( ) const
virtual

Gets the highness of this ISpatial3.

Returns:
The highness of this ISpatial3.

Implements yap::ISpatial3.

Definition at line 133 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void yap::BoundingBoxCollection::HandleAddBoundingBoxToCollidableArea ( BoundingBox boundingBox)
privatepure virtual

Implemented in yap::EventBoundingBoxCollection, yap::EventTriggerBoundingBoxCollection, and yap::PhysicsBoundingBoxCollection.

Here is the caller graph for this function:

virtual void yap::BoundingBoxCollection::HandleRemoveBoundingBoxFromCollidableArea ( BoundingBox boundingBox)
privatepure virtual

Implemented in yap::EventBoundingBoxCollection, yap::EventTriggerBoundingBoxCollection, and yap::PhysicsBoundingBoxCollection.

Here is the caller graph for this function:

void yap::BoundingBoxCollection::Move ( const Vector2 offset)
virtual

Implements yap::ISpatial.

Definition at line 93 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::BoundingBoxCollection::RemoveBoundingBox ( BoundingBox boundingBox)
protected

Definition at line 36 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::BoundingBoxCollection::RemoveBoundingBoxesFromCollidableArea ( )
private

Definition at line 238 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::BoundingBoxCollection::RemoveBoundingBoxFromCollidableArea ( BoundingBox boundingBox)
private

Definition at line 196 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::BoundingBoxCollection::Scale ( const Vector2 factor)
virtual

Implements yap::ISpatial.

Definition at line 105 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::BoundingBoxCollection::SetCollidableArea ( CollidableArea collidableArea)
protected

Definition at line 210 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

void yap::BoundingBoxCollection::SetH ( int  h)
virtual

Sets the height of this ISpatial3.

Parameters:
hHeight of this ISpatial3.

Implements yap::ISpatial3.

Definition at line 157 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::BoundingBoxCollection::SetPosition ( const Vector2 position)
virtual

Implements yap::ISpatial.

Definition at line 120 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

void yap::BoundingBoxCollection::SetSize ( const Vector2 size)
virtual

Implements yap::ISpatial.

Definition at line 125 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

void yap::BoundingBoxCollection::SetZ ( int  z)
virtual

Sets the highness of this ISpatial3.

Parameters:
zHighness of this ISpatial3.

Implements yap::ISpatial3.

Definition at line 138 of file BoundingBoxCollection.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

collection::List<BoundingBox*> yap::BoundingBoxCollection::boundingBoxes_
private

Definition at line 95 of file BoundingBoxCollection.hpp.

CollidableArea* yap::BoundingBoxCollection::collidableArea_
private

Definition at line 97 of file BoundingBoxCollection.hpp.

Spatial3Info yap::BoundingBoxCollection::spatial3Info_
private

Definition at line 93 of file BoundingBoxCollection.hpp.


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