Class containing a mesh who can launched an action when it is clicked, derive from staticMesh. More...
#include <actionMesh.h>
Public Member Functions | |
actionMesh (ACTION_TYPE=ACTION_AUCUNE) | |
Constructor. | |
~actionMesh () | |
Destructor. | |
virtual int | init (int, IAnimatedMeshSceneNode *, int) |
Init the mesh. | |
ACTION_TYPE | getAction () |
Return the action type. | |
int | getCombi () |
Return actionMesh::combi. | |
SColor | getColor () |
Return Color. | |
Protected Attributes | |
SColor | color |
Color of the ray who will point to the mesh. | |
Private Attributes | |
ACTION_TYPE | action |
Contain the action type. | |
int | combi |
Contain the id of the item needed to combine. |
Class containing a mesh who can launched an action when it is clicked, derive from staticMesh.
This class is most of the time use by child class and not directly. If combi=0, the action will be launched just by clicking instead it will wait to be combined with item of id actionMesh::combi. (A bit different for observation Mesh)
Definition at line 50 of file actionMesh.h.
actionMesh::actionMesh | ( | ACTION_TYPE | Action = ACTION_AUCUNE |
) |
Constructor.
Construct an actionMesh and set actionMesh::action to Action
Action | The action type |
Definition at line 37 of file actionMesh.cpp.
References color.
actionMesh::~actionMesh | ( | ) |
Destructor.
Definition at line 42 of file actionMesh.cpp.
ACTION_TYPE actionMesh::getAction | ( | ) |
Return the action type.
Definition at line 61 of file actionMesh.cpp.
References action.
Referenced by BOOST_PYTHON_MODULE(), interface::OnEvent(), and interface::update().
SColor actionMesh::getColor | ( | ) |
Return Color.
Definition at line 71 of file actionMesh.cpp.
References color.
Referenced by interface::update().
int actionMesh::getCombi | ( | ) |
Return actionMesh::combi.
Definition at line 66 of file actionMesh.cpp.
References combi.
Referenced by BOOST_PYTHON_MODULE(), and interface::OnEvent().
int actionMesh::init | ( | int | Id, | |
IAnimatedMeshSceneNode * | Node, | |||
int | Combi | |||
) | [virtual] |
Init the mesh.
Call the staticMesh::init, and set actionMesh::combi to comb
Id | Id of mesh | |
Node | The pointer to the irrlicht mesh corresponding | |
Combi | Item to combine with |
Reimplemented in observationMesh.
Definition at line 52 of file actionMesh.cpp.
References combi, staticMesh::getId(), and staticMesh::getNode().
ACTION_TYPE actionMesh::action [private] |
SColor actionMesh::color [protected] |
Color of the ray who will point to the mesh.
Definition at line 77 of file actionMesh.h.
Referenced by actionMesh(), animateMesh::animateMesh(), getColor(), observationMesh::observationMesh(), and prendreMesh::prendreMesh().
int actionMesh::combi [private] |
Contain the id of the item needed to combine.
Definition at line 74 of file actionMesh.h.
Referenced by getCombi(), and init().