VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions | Protected Member Functions
BHAVE::DtSandConstraint Class Reference
Inheritance diagram for BHAVE::DtSandConstraint:
Inheritance graph
[legend]

Public Member Functions

 KY_DECLARE_CONSTRAINT (DtSandConstraint)
 DtSandConstraint ()
- Public Member Functions inherited from BHAVE::DtPreferredTerrainTypeConstraint
 KY_DECLARE_CONSTRAINT (DtPreferredTerrainTypeConstraint)
 DtPreferredTerrainTypeConstraint ()
KyBool GetCost (Kaim::Bot *bot, const Kaim::PointWrapper &from, const Kaim::PointWrapper &to, KyFloat32 &cost)
KyBool GetCost_PathFinding (Kaim::Bot &bot, const Kaim::PointWrapper &from, const Kaim::PointWrapper &to, KyFloat32 &cost)
KyBool GetCost_PathFollowing (Kaim::Bot &bot, const Kaim::PointWrapper &from, const Kaim::PointWrapper &to, KyFloat32 &cost)
Kaim::NavTerrainTypeMask GetNavTerrainTypeMask (const Kaim::PointWrapper &pw, Kaim::Bot *bot)
void SetDifficultyFactor (const KyFloat32 &difficultyFactor)
const KyFloat32 & GetDifficultyFactor () const
virtual void OnStartAstar (const Kaim::GraphVertexPtr &, const Kaim::GraphVertexPtr &)
virtual void OnPauseAstar (const Kaim::GraphVertexPtr &, const Kaim::GraphVertexPtr &)
virtual void OnResumeAstar (const Kaim::GraphVertexPtr &, const Kaim::GraphVertexPtr &)
virtual void OnFinishAstar (const Kaim::GraphVertexPtr &, const Kaim::GraphVertexPtr &)

Protected Member Functions

virtual KyFloat32 GetCostRatio (const Kaim::NavTerrainTypeMask &terrainType) const

Additional Inherited Members

- Protected Attributes inherited from BHAVE::DtPreferredTerrainTypeConstraint
KyBool m_inAstar
KyFloat32 m_difficultyFactor
const
DtPreferredTerrainTypeBodyAttribute
myTerrainAttribute

Detailed Description

Simply altered the cost during the construction of a path. This simple constraint makes sand cost twice as much as any other terrain type. Since it extends from DtPreferredTerrainTypeConstraint, it still has the ability to differentiate between avoid/prefer roads and free states

Constructor & Destructor Documentation

BHAVE::DtSandConstraint::DtSandConstraint ( )

Member Function Documentation

BHAVE::DtSandConstraint::KY_DECLARE_CONSTRAINT ( DtSandConstraint  )
virtual KyFloat32 BHAVE::DtSandConstraint::GetCostRatio ( const Kaim::NavTerrainTypeMask &  terrainType) const
protectedvirtual

The documentation for this class was generated from the following file:

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)