animateMesh Class Reference

Class containing a mesh who can launched an animation, derive from observationMesh. More...

#include <actionMesh.h>

Inheritance diagram for animateMesh:
observationMesh actionMesh staticMesh

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

animateMesh::animateMesh ( ACTION_TYPE  act = ACTION_ANIMATE  ) 

Constructor.

Construct a prendreMesh and call observationMesh::observationMesh() with parameter Action

Parameters:
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.


Member Function Documentation

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

Parameters:
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
Returns:
observationMesh::init result

Definition at line 173 of file actionMesh.cpp.

References anim, begin, and end.

Referenced by lieu::addAnimateMesh().


Member Data Documentation

int animateMesh::anim [private]

The mesh Id to anim.

Definition at line 145 of file actionMesh.h.

Referenced by getAnim(), and init().

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.

Referenced by getEnd(), and init().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Friends

Generated on Wed Sep 9 18:20:15 2009 for The Merry Turnip by  doxygen 1.6.1