#include <play_box_physics.h>
Public Member Functions | |
PlayBoxPhysics () | |
Default constructor. | |
virtual | ~PlayBoxPhysics () |
Destructor. | |
void | moveBubble (Bubble *bubble, float distance) |
Moves the bubble. | |
Private Member Functions | |
PlayBoxPhysics (const PlayBoxPhysics &) | |
PlayBoxPhysics & | operator= (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. |
Reference object (cannot be copied).
PlayBoxPhysics::PlayBoxPhysics | ( | const PlayBoxPhysics & | ) | [private] |
PlayBoxPhysics::PlayBoxPhysics | ( | ) |
Default constructor.
virtual PlayBoxPhysics::~PlayBoxPhysics | ( | ) | [virtual] |
Destructor.
PlayBoxPhysics& PlayBoxPhysics::operator= | ( | const PlayBoxPhysics & | ) | [private] |
virtual void PlayBoxPhysics::fixLeftWallCollision | ( | Bubble * | bubble, | |
float | borderPos | |||
) | [private, pure virtual] |
Fixes a collision with left wall.
[in] | bubble | Pointer to a bubble which has caused a collision |
[in] | borderPos | Position of the wall which the bubble collided |
Implemented in AdhesivePlayBoxPhysics, BasicPlayBoxPhysics, and RandomPlayBoxPhysics.
virtual void PlayBoxPhysics::fixRightWallCollision | ( | Bubble * | bubble, | |
float | borderPos | |||
) | [private, pure virtual] |
Fixes a collision with right wall.
[in] | bubble | Pointer to a bubble which has caused a collision |
[in] | borderPos | Position of the wall which the bubble collided |
Implemented in AdhesivePlayBoxPhysics, BasicPlayBoxPhysics, and RandomPlayBoxPhysics.
virtual void PlayBoxPhysics::fixTopWallCollision | ( | Bubble * | bubble, | |
float | borderPos | |||
) | [private, pure virtual] |
Fixes a collision with top wall.
[in] | bubble | Pointer to a bubble which has caused a collision |
[in] | borderPos | Position of the wall which the bubble collided |
Implemented in AdhesivePlayBoxPhysics, BasicPlayBoxPhysics, and RandomPlayBoxPhysics.
virtual void PlayBoxPhysics::fixBottomWallCollision | ( | Bubble * | bubble, | |
float | borderPos | |||
) | [private, pure virtual] |
Fixes a collision with bottom wall.
[in] | bubble | Pointer to a bubble which has caused a collision |
[in] | borderPos | Position of the wall which the bubble collided |
Implemented in AdhesivePlayBoxPhysics, BasicPlayBoxPhysics, and RandomPlayBoxPhysics.
void PlayBoxPhysics::moveBubble | ( | Bubble * | bubble, | |
float | distance | |||
) |
Moves the bubble.
[in] | bubble | Pointer to a bubble which should be moved |
[in] | distance | Length of which the bubble should be moved |