Class containing a mesh who can be taken, derive from observationMesh. More...
#include <actionMesh.h>
Public Member Functions | |
prendreMesh (ACTION_TYPE=ACTION_PRENDRE) | |
Constructor. | |
~prendreMesh () | |
Destructor. | |
virtual int | init (int, IAnimatedMeshSceneNode *, int, int) |
Init the mesh. | |
int | getItem () |
Return the item id corresponding to the mesh. | |
Private Attributes | |
int | it |
Item id corresponding to the mesh. |
Class containing a mesh who can be taken, derive from observationMesh.
This mesh is linked to the item of id prendreMesh::it, when action launched, the user should get the item. And since it's derive from an observationMesh it can be looked at too.
Definition at line 101 of file actionMesh.h.
prendreMesh::prendreMesh | ( | ACTION_TYPE | act = ACTION_PRENDRE |
) |
Constructor.
Construct a prendreMesh and call observationMesh::observationMesh() with parameter Action
act | The action type |
Definition at line 117 of file actionMesh.cpp.
References actionMesh::color.
prendreMesh::~prendreMesh | ( | ) |
Destructor.
Definition at line 122 of file actionMesh.cpp.
int prendreMesh::getItem | ( | ) |
Return the item id corresponding to the mesh.
Definition at line 139 of file actionMesh.cpp.
References it.
Referenced by BOOST_PYTHON_MODULE().
int prendreMesh::init | ( | int | Id, | |
IAnimatedMeshSceneNode * | Node, | |||
int | Combi, | |||
int | It | |||
) | [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 | |
It | Item associate to the mesh |
Definition at line 133 of file actionMesh.cpp.
References it.
Referenced by lieu::addPrendreMesh().
int prendreMesh::it [private] |
Item id corresponding to the mesh.
Definition at line 117 of file actionMesh.h.