|
QSDK 1.1 Documentation |
#include <maniccube.h>
Inheritance diagram for ManicCube:

Public Types | |
| typedef Com::Ptr< ManicCube > | PTR |
Public Member Functions | |
| ManicCube () | |
| ~ManicCube () | |
| virtual bool | embody (Q::EntityInstance *) |
| virtual void | disembody (bool destroyed) |
| virtual void | entered (unsigned int yourType, Q::EntityInstance *them, unsigned int theirType) |
| virtual void | exited (unsigned int yourType, Q::EntityInstance *them, unsigned int theirType) |
| virtual void | receive (Q::MessagePeer *from, Q::Message *, Q::MessageResult *) |
| virtual void | tick (float dt) |
| virtual void | onStart (Q::Playback &pb, Q::Animation &anim, float start, float end) |
| virtual void | onEnd (Q::Playback &pb, Q::Animation &anim, float start, float end) |
| void | spin () |
| void | bounce () |
| void | idle () |
| void | toggleLooping () |
Private Member Functions | |
| void | playAnim (const char *segName) |
Private Attributes | |
| Q::Instance | inst_ |
| Q::Playback | playback_ |
| bool | looping_ |
| Utils::String | segName_ |
Static Private Attributes | |
| Q::Animation | anim_ |
| Q::Mesh | mesh_ |
The methods spin(), bounce(), idle(), toggleLooping() are called externally as a result of keyboard events. They cause a spin or bounce animation to be played, in a loop or a single time. The idle() method will stop the current animation when it has completed its cycle.
The Q::PlaybackListener inheritance and registration (see the embody/ disembody methods for registration details) and its overridden onEnd() method are used to loop the animation by restarting it when it has completed.
Refer to the GameDev tutorial information about the Entity APIs for further detail.
Definition at line 54 of file maniccube.h.
|
|
Reimplemented from EntityBase. Definition at line 57 of file maniccube.h. |
|
|
|
|
|
Definition at line 60 of file maniccube.h.
00060 {}
|
|
|
|
|
|
Reimplemented from EntityBase. |
|
|
|
|
||||||||||||||||
|
Definition at line 66 of file maniccube.h.
00068 {}
|
|
||||||||||||||||
|
Definition at line 69 of file maniccube.h.
00071 {}
|
|
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
Definition at line 81 of file maniccube.h.
00082 {}
|
|
|
|
|
||||||||||||||||
|
Definition at line 72 of file maniccube.h.
00074 {}
|
|
|
|
|
|
Implements EntityBase. Definition at line 75 of file maniccube.h.
00075 {}
|
|
|
|
|
|
Definition at line 35 of file maniccube.cpp. |
|
|
Definition at line 100 of file maniccube.h. |
|
|
Definition at line 104 of file maniccube.h. |
|
|
Definition at line 36 of file maniccube.cpp. |
|
|
Definition at line 102 of file maniccube.h. |
|
|
Definition at line 109 of file maniccube.h. |
|
|
|
Qube Software Limited © 2000-2004
|
|