Class containing a mesh who can launched an animation, derive from observationMesh. More...
#include <actionMesh.h>
Public Member Functions | |
animateMesh (ACTION_TYPE=ACTION_ANIMATE) | |
Constructor. | |
~animateMesh () | |
Destructor. | |
virtual int | init (int, IAnimatedMeshSceneNode *, int, int, int, int) |
Init the mesh. | |
int | getAnim () |
Return animateMesh::anim. | |
int | getBegin () |
Return animateMesh::begin. | |
int | getEnd () |
Return animateMesh::end. | |
Private Attributes | |
int | anim |
The mesh Id to anim. | |
int | begin |
The numeber of the frame where begin the animation. | |
int | end |
The numeber of the frame where end the animation. |
Class containing a mesh who can launched an animation, derive from observationMesh.
When the mesh is clicked the animation of mesh of id animateMesh::anim is laucnhed from animateMesh::begin to animateMesh::end. And since it's derive from an observationMesh it can be looked at too.
Definition at line 123 of file actionMesh.h.
animateMesh::animateMesh | ( | ACTION_TYPE | act = ACTION_ANIMATE |
) |
Constructor.
Construct a prendreMesh and call observationMesh::observationMesh() with parameter Action
act | The action type |
Definition at line 155 of file actionMesh.cpp.
References actionMesh::color.
animateMesh::~animateMesh | ( | ) |
Destructor.
Definition at line 160 of file actionMesh.cpp.
int animateMesh::getAnim | ( | ) |
Return animateMesh::anim.
Definition at line 181 of file actionMesh.cpp.
References anim.
Referenced by BOOST_PYTHON_MODULE(), and interface::OnEvent().
int animateMesh::getBegin | ( | ) |
Return animateMesh::begin.
Definition at line 186 of file actionMesh.cpp.
References begin.
Referenced by BOOST_PYTHON_MODULE(), and interface::OnEvent().
int animateMesh::getEnd | ( | ) |
Return animateMesh::end.
Definition at line 191 of file actionMesh.cpp.
References end.
Referenced by BOOST_PYTHON_MODULE(), and interface::OnEvent().
int animateMesh::init | ( | int | Id, | |
IAnimatedMeshSceneNode * | Node, | |||
int | Combi, | |||
int | Anim, | |||
int | Begin, | |||
int | End | |||
) | [virtual] |
Init the mesh.
Call the actionMesh::init, set prendreMesh::it to ite
Id | Id of mesh | |
Node | The pointer to the irrlicht mesh corresponding | |
Combi | Item to combine with | |
Anim | Id of the mesh to animate | |
Begin | Number of the Frame where begin the animation | |
End | Number of the Frame where end the animation |
Definition at line 173 of file actionMesh.cpp.
References anim, begin, and end.
Referenced by lieu::addAnimateMesh().
int animateMesh::anim [private] |
The mesh Id to anim.
Definition at line 145 of file actionMesh.h.
int animateMesh::begin [private] |
The numeber of the frame where begin the animation.
Definition at line 147 of file actionMesh.h.
Referenced by getBegin(), and init().
int animateMesh::end [private] |
The numeber of the frame where end the animation.
Definition at line 149 of file actionMesh.h.