#include <mob.h>
Inheritance diagram for lilith3d::WalkingMob:

Public Member Functions | |
| void | PathTo (float x, float y, float z=0.0f) |
| void | PathTo (const LilithObject &object) |
| void | Move (float rotationBias) |
| void | Rotate (int dir) |
| int | Rotating () |
| Returns the rotation occurring. | |
| void | SetPos (const grinliz::Vector3F &location, float rotation) |
| void | SetPos (float x, float y, float rotation) |
| const grinliz::Vector3F & | Pos () |
| Query the current position. | |
| const float | ZRot () |
| Query the current z-rotation. | |
| bool | Attack () |
| Set the action if the animation system is ready. | |
| bool | Emote (int id) |
| Set the action if the animation system is ready. | |
| bool | Stun () |
| Set the action if the animation system is ready. | |
| bool | Stand () |
| Set the action if the animation system is ready. | |
| int | GetAction () |
| void | SetPathIllumination (bool _illuminate) |
| If set, path will be lighted with particles. Useful for demos and debugging. | |
| void lilith3d::WalkingMob::PathTo | ( | float | x, | |
| float | y, | |||
| float | z = 0.0f | |||
| ) |
Automatically walk to the given destination on the terrain. This will do nothing if the destination cannot be reached. This is a specialized form of PathTo.
| void lilith3d::WalkingMob::PathTo | ( | const LilithObject & | object | ) |
Automatically walk to the given destination on the terrain. This will do nothing if the destination cannot be reached. The LilithObject must contain Terrain or a PSI.
| void lilith3d::WalkingMob::Move | ( | float | rotationBias | ) |
Move the walking mob relative to its current position.
| void lilith3d::WalkingMob::Rotate | ( | int | dir | ) |
Rotate the mob. Works when standing or running.
| dir | +1 for positive rotation, -1 for negative rotation, 0 to stop |
| void lilith3d::WalkingMob::SetPos | ( | const grinliz::Vector3F & | location, | |
| float | rotation | |||
| ) |
Set the position to the x,y, and rotation specified. Calling this method will stop any current PathTo.
| void lilith3d::WalkingMob::SetPos | ( | float | x, | |
| float | y, | |||
| float | rotation | |||
| ) | [inline] |
Set the position to the x,y, and rotation specified. Calling this method will stop any current PathTo.
| int lilith3d::WalkingMob::GetAction | ( | ) |
Return the current action for this walker: STAND, RUN, etc.
1.5.1-p1