#include <boidmodel.h>
Public Methods | |
CBoidModel () | |
virtual | ~CBoidModel () |
uint32 | EngineMessageFn (uint32 messageID, void *pData, LTFLOAT fData) |
LTRESULT | SetAnimation (char *pAnimName) |
BoidDestination | GetDestination () |
void | SetDesination (BoidDestination bdDest) |
BoidBehavior | GetBehavior () |
void | SetBehavior (BoidBehavior bbStyle) |
float | GetScratch () |
void | SetScratch (float fScratch) |
void | setAviary (Aviary *x) |
long | getAge () |
Returns the age of the boid. More... | |
Public Attributes | |
Aviary * | m_aviary |
The aviary to which I belong. More... | |
Protected Methods | |
uint32 | PreCreate (void *pData, float fData) |
void | ObjectCreated () |
void | Update () |
void | ReadProps (ObjectCreateStruct *pStruct) |
void | PostReadProps () |
Protected Attributes | |
LTVector3f | m_vStartAnimDims |
float | m_fScale |
float | m_fMass |
long | m_nBirthTime |
HMODELANIM | m_hAnim |
LTCollisionSphere * | m_pCollSphere |
Friends | |
class | Aviary |
The BoidModel class inherits LithTech's BaseClass and contains most of the necessary code for flocking behavior. It must be linked to an Aviary.
|
|
|
|
|
|
|
Returns the age of the boid.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Set the boid's current animation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The aviary to which I belong.
|
|
|
|
|
|
|
|
|
|
|
|
|