lilith3d::Mob Class Reference

#include <mob.h>

Inheritance diagram for lilith3d::Mob:

lilith3d::WalkingMob List of all members.

Detailed Description

MObile oBject - or maybe MOBile object. In any case, the data representation of something that moves. This is seperate from the visual representation, which is some kind of Mesh. Mob is conceptual - has location, logic, a way a moving. A Mesh is visual - where it is on the screen and what it's animation is.

In use, a Mob replaces where you would use a Mesh.

	WalkingMob* infantry = new WalkingMob( infantryResource );
	
Like a mesh, the client completely owns the mob resource and needs to delete it when it is no longer in use.

When it is created, a Mob places itself in the world and will persist until it is deleted. If a Mob is "killed" by invalid terrain, etc. its Alive() method will return false, and it is no longer drawn.


Public Member Functions

bool Alive ()
 Is this mob still functioning?
void Kill ()
 Remove this mob from the game, and run the kill animation.


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