PlayBoxPhysics Class Reference

Graphical properties of a play box (abstract class). More...

#include <play_box_physics.h>

Inheritance diagram for PlayBoxPhysics:

TimeUpdateable GraphicalNode AdhesivePlayBoxPhysics BasicPlayBoxPhysics RandomPlayBoxPhysics

List of all members.

Public Member Functions

 PlayBoxPhysics ()
 Default constructor.
virtual ~PlayBoxPhysics ()
 Destructor.
void moveBubble (Bubble *bubble, float distance)
 Moves the bubble.

Private Member Functions

 PlayBoxPhysics (const PlayBoxPhysics &)
PlayBoxPhysicsoperator= (const PlayBoxPhysics &)
virtual void fixLeftWallCollision (Bubble *bubble, float borderPos)=0
 Fixes a collision with left wall.
virtual void fixRightWallCollision (Bubble *bubble, float borderPos)=0
 Fixes a collision with right wall.
virtual void fixTopWallCollision (Bubble *bubble, float borderPos)=0
 Fixes a collision with top wall.
virtual void fixBottomWallCollision (Bubble *bubble, float borderPos)=0
 Fixes a collision with bottom wall.


Detailed Description

Graphical properties of a play box (abstract class).

Reference object (cannot be copied).


Constructor & Destructor Documentation

PlayBoxPhysics::PlayBoxPhysics ( const PlayBoxPhysics  )  [private]

PlayBoxPhysics::PlayBoxPhysics (  ) 

Default constructor.

virtual PlayBoxPhysics::~PlayBoxPhysics (  )  [virtual]

Destructor.


Member Function Documentation

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

virtual void PlayBoxPhysics::fixLeftWallCollision ( Bubble bubble,
float  borderPos 
) [private, pure 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

Implemented in AdhesivePlayBoxPhysics, BasicPlayBoxPhysics, and RandomPlayBoxPhysics.

virtual void PlayBoxPhysics::fixRightWallCollision ( Bubble bubble,
float  borderPos 
) [private, pure 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

Implemented in AdhesivePlayBoxPhysics, BasicPlayBoxPhysics, and RandomPlayBoxPhysics.

virtual void PlayBoxPhysics::fixTopWallCollision ( Bubble bubble,
float  borderPos 
) [private, pure 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

Implemented in AdhesivePlayBoxPhysics, BasicPlayBoxPhysics, and RandomPlayBoxPhysics.

virtual void PlayBoxPhysics::fixBottomWallCollision ( Bubble bubble,
float  borderPos 
) [private, pure 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

Implemented in AdhesivePlayBoxPhysics, BasicPlayBoxPhysics, and RandomPlayBoxPhysics.

void PlayBoxPhysics::moveBubble ( Bubble bubble,
float  distance 
)

Moves the bubble.

Parameters:
[in] bubble Pointer to a bubble which should be moved
[in] distance Length of which the bubble should be moved
Moves the flying bubble to a new position


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