lilith3d::WalkingMob Class Reference

#include <mob.h>

Inheritance diagram for lilith3d::WalkingMob:

lilith3d::Mob List of all members.

Detailed Description

A thing that walks through the world. A very common entitity in a terrain engine. WalkingMobs are attached to the terrain and buildings, but are also governed by there animations.


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.


Member Function Documentation

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.

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


The documentation for this class was generated from the following file:
Generated on Fri Mar 23 19:36:27 2007 for Lilith3D by  doxygen 1.5.1-p1