BasicPlayBoxPhysics Class Reference

Basic play box physics. More...

#include <basic_play_box_physics.h>

Inheritance diagram for BasicPlayBoxPhysics:

PlayBoxPhysics TimeUpdateable GraphicalNode

List of all members.

Public Member Functions

 BasicPlayBoxPhysics ()
 Default constructor.
virtual ~BasicPlayBoxPhysics ()
 Destructor.
virtual void timeUpdate (float dt)
 Timer value change event occured.

Private Member Functions

 BasicPlayBoxPhysics (const BasicPlayBoxPhysics &)
BasicPlayBoxPhysicsoperator= (const BasicPlayBoxPhysics &)
void fixHorizontalWallCollision (Bubble *bubble, float borderPos)
 Fixes a collision with top or bottom wall.
void fixVerticalWallCollision (Bubble *bubble, float borderPos)
 Fixes a collision with left or right wall.
virtual void fixLeftWallCollision (Bubble *bubble, float borderPos)
 Fixes a collision with left wall.
virtual void fixRightWallCollision (Bubble *bubble, float borderPos)
 Fixes a collision with right wall.
virtual void fixTopWallCollision (Bubble *bubble, float borderPos)
 Fixes a collision with top wall.
virtual void fixBottomWallCollision (Bubble *bubble, float borderPos)
 Fixes a collision with bottom wall.


Detailed Description

Basic play box physics.

Reference object (cannot be copied).


Constructor & Destructor Documentation

BasicPlayBoxPhysics::BasicPlayBoxPhysics ( const BasicPlayBoxPhysics  )  [private]

BasicPlayBoxPhysics::BasicPlayBoxPhysics (  ) 

Default constructor.

virtual BasicPlayBoxPhysics::~BasicPlayBoxPhysics (  )  [virtual]

Destructor.


Member Function Documentation

BasicPlayBoxPhysics& BasicPlayBoxPhysics::operator= ( const BasicPlayBoxPhysics  )  [private]

void BasicPlayBoxPhysics::fixHorizontalWallCollision ( Bubble bubble,
float  borderPos 
) [private]

Fixes a collision with top or bottom wall.

void BasicPlayBoxPhysics::fixVerticalWallCollision ( Bubble bubble,
float  borderPos 
) [private]

Fixes a collision with left or right wall.

virtual void BasicPlayBoxPhysics::fixLeftWallCollision ( Bubble bubble,
float  borderPos 
) [private, virtual]

Fixes a collision with left wall.

Parameters:
[in] bubble Pointer to a bubble which has caused a collision
[in] borderPos Position of the wall which the bubble collided
Implements template method design pattern

Implements PlayBoxPhysics.

virtual void BasicPlayBoxPhysics::fixRightWallCollision ( Bubble bubble,
float  borderPos 
) [private, virtual]

Fixes a collision with right wall.

Parameters:
[in] bubble Pointer to a bubble which has caused a collision
[in] borderPos Position of the wall which the bubble collided
Implements template method design pattern

Implements PlayBoxPhysics.

virtual void BasicPlayBoxPhysics::fixTopWallCollision ( Bubble bubble,
float  borderPos 
) [private, virtual]

Fixes a collision with top wall.

Parameters:
[in] bubble Pointer to a bubble which has caused a collision
[in] borderPos Position of the wall which the bubble collided
Implements template method design pattern

Implements PlayBoxPhysics.

virtual void BasicPlayBoxPhysics::fixBottomWallCollision ( Bubble bubble,
float  borderPos 
) [private, virtual]

Fixes a collision with bottom wall.

Parameters:
[in] bubble Pointer to a bubble which has caused a collision
[in] borderPos Position of the wall which the bubble collided
Implements template method design pattern

Implements PlayBoxPhysics.

virtual void BasicPlayBoxPhysics::timeUpdate ( float  dt  )  [virtual]

Timer value change event occured.

This method is called on each timer value change.

Parameters:
[in] dt Time difference between the last call (delta).

Implements TimeUpdateable.


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

Generated on Sat Dec 20 19:21:24 2008 for PGR2008 by  doxygen 1.5.6