actionMesh Class Reference

Class containing a mesh who can launched an action when it is clicked, derive from staticMesh. More...

#include <actionMesh.h>

Inheritance diagram for actionMesh:
staticMesh observationMesh animateMesh persoMesh prendreMesh

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

actionMesh::actionMesh ( ACTION_TYPE  Action = ACTION_AUCUNE  ) 

Constructor.

Construct an actionMesh and set actionMesh::action to Action

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


Member Function Documentation

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

Parameters:
Id Id of mesh
Node The pointer to the irrlicht mesh corresponding
Combi Item to combine with
Returns:
staticMesh::init result

Reimplemented in observationMesh.

Definition at line 52 of file actionMesh.cpp.

References combi, staticMesh::getId(), and staticMesh::getNode().


Member Data Documentation

Contain the action type.

Definition at line 72 of file actionMesh.h.

Referenced by getAction().

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().


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:14 2009 for The Merry Turnip by  doxygen 1.6.1