#include <model_avatar.h>
Public Member Functions | |
| ModelAvatar () | |
| Default constructor. | |
| virtual | ~ModelAvatar () |
| Destructor. | |
| virtual void | timeUpdate (float dt) |
| Timer value change event occured. | |
| virtual void | update (Camera *subject) |
| Observable object changed its state. | |
| virtual void | fire (Templates::CallableBack< Avatar > *fireDone) |
| The method that starts the avatar bubble-firing sequence. | |
Private Types | |
| enum | State { STOPPED, PREFIRE, POSTFIRE } |
| Enumeration of model avatar states. More... | |
Private Member Functions | |
| ModelAvatar (const ModelAvatar &) | |
| ModelAvatar & | operator= (const ModelAvatar &) |
Private Attributes | |
| SoRotationXYZ * | _rotX |
| Rotation in the X axis. | |
| SoRotationXYZ * | _rotY |
| Rotation in the Y axis. | |
| SoElapsedTime * | _hammerTimer |
| The timer used for hammer movement. | |
| SoSFFloat * | _timerTimeOut |
| The output time of the _hammerTimer. | |
| State | _state |
| The state of the avatar. | |
| Templates::CallableBack< Avatar > * | _fireDone |
Static Private Attributes | |
| static const float | INITIAL_HAMMER_ROT |
| Initial rotation of the bubble hammer. | |
enum ModelAvatar::State [private] |
| ModelAvatar::ModelAvatar | ( | const ModelAvatar & | ) | [private] |
| ModelAvatar::ModelAvatar | ( | ) |
Default constructor.
| virtual ModelAvatar::~ModelAvatar | ( | ) | [virtual] |
Destructor.
| ModelAvatar& ModelAvatar::operator= | ( | const ModelAvatar & | ) | [private] |
| virtual void ModelAvatar::timeUpdate | ( | float | dt | ) | [virtual] |
Timer value change event occured.
This method is called on each timer value change.
| [in] | dt | Time difference between the last call (delta). |
Implements TimeUpdateable.
| virtual void ModelAvatar::update | ( | Camera * | subject | ) | [virtual] |
Observable object changed its state.
| [in] | subject | Observable object. |
Implements Templates::Observer< Camera >.
| virtual void ModelAvatar::fire | ( | Templates::CallableBack< Avatar > * | fireDone | ) | [virtual] |
The method that starts the avatar bubble-firing sequence.
This method starts the avatar bubble-firing sequence. When it is done, it calls the fireDone "action performed" method.
| [in] | fireDone | Object on which the "action performed" method should be called when the bubble-firing sequence is completed |
Implements Avatar.
const float ModelAvatar::INITIAL_HAMMER_ROT [static, private] |
Initial rotation of the bubble hammer.
SoRotationXYZ* ModelAvatar::_rotX [private] |
Rotation in the X axis.
SoRotationXYZ* ModelAvatar::_rotY [private] |
Rotation in the Y axis.
SoElapsedTime* ModelAvatar::_hammerTimer [private] |
The timer used for hammer movement.
SoSFFloat* ModelAvatar::_timerTimeOut [private] |
The output time of the _hammerTimer.
State ModelAvatar::_state [private] |
The state of the avatar.
Templates::CallableBack<Avatar>* ModelAvatar::_fireDone [private] |
Object on which the "action performed" method should be called when the bubble-firing sequence is completed
1.5.6