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

#include <BoundingBox.hpp>

Inheritance diagram for yap::BoundingBox:
Collaboration diagram for yap::BoundingBox:

List of all members.

Public Member Functions

 BoundingBox ()
 BoundingBox (const Vector2 &position, const Vector2 &size, int z, int h)
virtual ~BoundingBox ()
 BoundingBox (const BoundingBox &copy)
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 ()

Private Member Functions

 DISALLOW_ASSIGN (BoundingBox)

Private Attributes

Spatial3Info spatial3Info_

Detailed Description

Definition at line 11 of file BoundingBox.hpp.


Constructor & Destructor Documentation

yap::BoundingBox::BoundingBox ( )

Definition at line 5 of file BoundingBox.cpp.

yap::BoundingBox::BoundingBox ( const Vector2 position,
const Vector2 size,
int  z,
int  h 
)

Definition at line 10 of file BoundingBox.cpp.

yap::BoundingBox::~BoundingBox ( )
virtual

Definition at line 19 of file BoundingBox.cpp.

yap::BoundingBox::BoundingBox ( const BoundingBox copy)

Definition at line 23 of file BoundingBox.cpp.


Member Function Documentation

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

Implements yap::ICollidable.

Definition at line 104 of file BoundingBox.cpp.

Here is the call graph for this function:

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

Implements yap::ICollidable.

Definition at line 113 of file BoundingBox.cpp.

Here is the call graph for this function:

yap::BoundingBox::DISALLOW_ASSIGN ( BoundingBox  )
private
const Vector2 & yap::BoundingBox::GetBottomRight ( ) const
virtual

Implements yap::ISpatial.

Definition at line 43 of file BoundingBox.cpp.

Here is the call graph for this function:

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

Implements yap::ISpatial.

Definition at line 48 of file BoundingBox.cpp.

Here is the call graph for this function:

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

Gets the height of this ISpatial3.

Returns:
The height of this ISpatial3.

Implements yap::ISpatial3.

Definition at line 94 of file BoundingBox.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const Vector2 & yap::BoundingBox::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 28 of file BoundingBox.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const FloatRect & yap::BoundingBox::GetRectangle ( ) const
virtual

Implements yap::ISpatial.

Definition at line 53 of file BoundingBox.cpp.

Here is the call graph for this function:

const Vector2 & yap::BoundingBox::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 33 of file BoundingBox.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements yap::ISpatial.

Definition at line 38 of file BoundingBox.cpp.

Here is the call graph for this function:

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

Gets the highness of this ISpatial3.

Returns:
The highness of this ISpatial3.

Implements yap::ISpatial3.

Definition at line 84 of file BoundingBox.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements yap::ISpatial.

Definition at line 58 of file BoundingBox.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements yap::ISpatial.

Definition at line 63 of file BoundingBox.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Sets the height of this ISpatial3.

Parameters:
hHeight of this ISpatial3.

Implements yap::ISpatial3.

Definition at line 99 of file BoundingBox.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements yap::ISpatial.

Definition at line 71 of file BoundingBox.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements yap::ISpatial.

Definition at line 76 of file BoundingBox.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Sets the highness of this ISpatial3.

Parameters:
zHighness of this ISpatial3.

Implements yap::ISpatial3.

Definition at line 89 of file BoundingBox.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Spatial3Info yap::BoundingBox::spatial3Info_
private

Definition at line 64 of file BoundingBox.hpp.


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