|
Public Member Functions |
| | Robot (String Name, String DescFile, SceneNode *ParentNode, SceneManager *SceneMgr) |
| | Constructeur.
|
| virtual | ~Robot () |
| | Destruction.
|
| long | getTypeID (void) const |
| | Surchage de la fonction d'identification de la classe UserDefinedObject.
|
| void | addToScene () |
| | Ajoute le robot à la scene courante.
|
| void | removeFromScene () |
| | Retire le robot de la scene courante.
|
| void | setEngineOn () |
| | Met en route le son du moteur du Robot.
|
| void | setEngineOff () |
| | Coupe le son du moteur du Robot.
|
| void | setBroken (bool broken) |
| | Le robot est endommagé (fumée et buitage).
|
| void | setPosition (Vector3 Position) |
| | Definit la position du robot (X=Gauche - Y=Haut - Z=devant).
|
| void | setOrientation (int Orientation) |
| | Definit l'orientation du robot (en degres).
|
| String | getName () |
| | Renvoie le Nom du robot.
|
| Vector3 | getPosition () |
| | Renvoie la position du robot (position relative a son ParentNode).
|
| void | adjustAltitude () |
| | Positionne le Robot en Y à sa bonne altitude par rapport au sol le plus proche.
|
| void | gotoPoint (Vector3 Destination) |
| | Memorise le point de destination du Robot, et declenche le mouvement.
|
| void | gotoNode (String NodeName) |
| | Memorise le point de destination du Robot, et declenche le mouvement.
|
| void | setFocusOn () |
| | On active le focus au moment ou la souris passe sur l'objet.
|
| void | setFocusOff () |
| | Quand on perd le focus, on détruit le GUI d'interface Robot.
|
| void | activateRobot (bool quick=false) |
| | On active le Robot.
|
| void | deactivateRobot (bool quick=false) |
| | Desactivation du Robot: Il s'éteint et tombe sur le sol.
|
| void | removeInterface () |
| | Détruit un objet d'Interface Robot (GUI).
|
| void | createInterface () |
| | Crée un objet d'Interface Robot (GUI).
|
| void | hideInterface () |
| | L'interface est masquée mais pas détruite.
|
| void | work (bool Working) |
| | Le robot travaille.
|
| void | requestExitInterface (Real seconds) |
| | Mémorise une demande de fin de la GUI.
|
| bool | isExitInterfaceRequiered () |
| | Renvoie TRUE si une demande de sortie de GUI est en cours.
|
| bool | isInterfaceDisabled () |
| | Renvoie TRUE si le GUI est inactif (cad non affiché).
|
| bool | isBroken () |
| | Renvoie TRUE si le robot est endommagé.
|
| bool | isDown () |
| | Renvoie si le robot est activé ou non (shutdown).
|
| bool | isVisible () |
| | Renvoie TRUE si le robot est visible.
|
| void | attachToNode (SceneNode *ParentNode=NULL) |
| | Le Node du Robot est rattaché à un nouveau ParentNode.
|
| void | setActionString (String ActionString) |
| | Change la Description de l'action en cours du robot.
|
| String | getActionString () |
| | Renvoie la description de l'action en cours du robot.
|
| SubEntity * | getSubEntity (String MaterialName) |
| | Retrouve une SubEntity du Robot par son nom de Materiel.
|
Protected Types |
| enum | SoundList {
ENGINE,
SPARKS,
FOCUS,
SHUTDOWN,
ACTIVATION,
ANALYSE,
WORK
} |
Protected Member Functions |
| Radian | findAngle () |
| | Determine l'angle vers la destination.
|
| void | updateSoundSource (int Channel) |
| | Mise a jour de la position des sons 3D (moteur, etc).
|
| void | vibrate (const FrameEvent &evt) |
| void | move (const FrameEvent &evt) |
| | Effectue un mouvement en avant (progressif).
|
| void | moveVertical (const FrameEvent &evt) |
| | Effectue un mouvement vertical (progressif).
|
| void | gotoNextWaypoint () |
| | Le Robot continue un trajet initié avec gotoNode().
|
| void | rotate (const FrameEvent &evt) |
| void | playSound (SoundList soundtype) |
| | Joue les sons du robot.
|
| bool | frameStarted (const FrameEvent &evt) |
| | Gère les mouvements du robot (déplacement, vibration, etc).
|
| void | startAnimation (String AnimationName, bool Loop) |
| | Commence a jouer l'animation demandée.
|
| void | loadDescription (String DescFile) |
| | Charge les parametres initiaux du Robot.
|
| void | loadObject () |
| | Charge l'etat initial du Robot (position, état, etc).
|
Protected Attributes |
| Root * | mRoot |
| SceneManager * | mSceneMgr |
| SceneNode * | mRobotNode |
| SceneNode * | mParentNode |
| Entity * | mRobotEntity |
| String | mRobotName |
| bool | mEngineOn |
| bool | mBroken |
| bool | mTurning |
| bool | mMoving |
| bool | mMovingUpDown |
| bool | mWorking |
| bool | mHasFocus |
| bool | mDown |
| int | mNormalAltitude |
| int | mTargetAltitude |
| String | mActionString |
| Robot_Interface * | mRobot_GUI |
| bool | mExitGui |
| Real | mExitGuiDelay |
| Real | mSpeed |
| Real | mVy |
| Vector3 | mDestination |
| SceneNode * | mNextWaypoint |
| SceneNode * | mLastWaypoint |
| SceneNode * | mCurrentWaypoint |
| int | mHelloChannel |
| int | mSparkChannel |
| int | mWork1Channel |
| int | mWork2Channel |
| int | mEngineChannel |
| int | mShutdownChannel |
| int | mActivationChannel |
| SceneNode * | mSourceNode |
| ParticleSystem * | mSmoke |
| ParticleSystem * | mSparks |
| String | mMeshFile |
| String | mInterfaceFile |
| String | mHelloSoundFile |
| String | mSparkSoundFile |
| String | mWork1SoundFile |
| String | mWork2SoundFile |
| String | mEngineSoundFile |
| String | mShutdownSoundFile |
| String | mActivationSoundFile |
| String | mStatusFile |
| String | mEngineAnimation |
| AnimationState * | mEngineAnimationState |
| String | mHelloAnimation |
| AnimationState * | mHelloAnimationState |
| String | mWork1Animation |
| AnimationState * | mWork1AnimationState |
| String | mWork2Animation |
| AnimationState * | mWork2AnimationState |
| String | mShutdownAnimation |
| AnimationState * | mShutdownAnimationState |
| String | mActivationAnimation |
| AnimationState * | mActivationAnimationState |
| AnimationState * | mAnimationState |
| Real | mAnimationSpeed |
Friends |
| class | Robot_Interface |