#include <play_box_graphics.h>
Public Member Functions | |
PlayBoxGraphics () | |
Default constructor. | |
virtual | ~PlayBoxGraphics () |
Destructor. | |
virtual void | moveWall (float newOffset) |
A method to be called when the wall offset changes. | |
Protected Attributes | |
SoTranslation * | _wallTranslation |
The translation of the back wall. | |
Private Member Functions | |
PlayBoxGraphics (const PlayBoxGraphics &) | |
PlayBoxGraphics & | operator= (const PlayBoxGraphics &) |
virtual SoGroup * | createWalls ()=0 |
A virtual method that creates walls. | |
virtual SoGroup * | createBackWall ()=0 |
A virtual method that creates the back wall. |
Reference object (cannot be copied).
PlayBoxGraphics::PlayBoxGraphics | ( | const PlayBoxGraphics & | ) | [private] |
PlayBoxGraphics::PlayBoxGraphics | ( | ) |
Default constructor.
virtual PlayBoxGraphics::~PlayBoxGraphics | ( | ) | [virtual] |
Destructor.
PlayBoxGraphics& PlayBoxGraphics::operator= | ( | const PlayBoxGraphics & | ) | [private] |
virtual SoGroup* PlayBoxGraphics::createWalls | ( | ) | [private, pure virtual] |
A virtual method that creates walls.
This methods creates the four PlayBoxGraphics side walls. It is to be overriden by each descendant of this abstract class.
Implemented in BasicPlayBoxGraphics, and TunnelPlayBoxGraphics.
virtual SoGroup* PlayBoxGraphics::createBackWall | ( | ) | [private, pure virtual] |
A virtual method that creates the back wall.
This methods creates the back wall of the PlayBoxGraphics. It is to be overriden by each descendant of this abstract class.
Implemented in BasicPlayBoxGraphics, and TunnelPlayBoxGraphics.
virtual void PlayBoxGraphics::moveWall | ( | float | newOffset | ) | [virtual] |
A method to be called when the wall offset changes.
This method is to be called from PlayField when the wall offset changes. The argument denotes the new offset of the wall.
[in] | newOffset | The new offset of the wall |
SoTranslation* PlayBoxGraphics::_wallTranslation [protected] |
The translation of the back wall.