Kaim::SimpleTraverseLogic< TCanEnterNavTagMode > Class Template Reference

#include <traverselogic.h>

Class Description

template<class TCanEnterNavTagMode = LogicDoNotUseCanEnterNavTag>
class Kaim::SimpleTraverseLogic< TCanEnterNavTagMode >

SimpleTraverseLogic defines the functions called when the customization is simply: navTag is allowed or forbidden.

Static Public Member Functions

static bool CanTraverseNavTag (void *, const NavTag &)
 Called when the propagation traverses a different navTag than the the current one. Must return true if the navTag is allowed. More...
 
static KyFloat32 GetHeuristicFromDistanceToDest (void *, KyFloat32 distance3dToDestination)
 Called for each node in AstarQuery. Must return the approximate cost of moving the specified cost toward the final destination. More...
 
static bool CanEnterNavTag (void *, const NavTag &, const NavTag &, const Vec3f &)
 Called if TCanEnterNavTagMode==LogicDoUseCanEnterNavTag. Must return true when traversing from exitNavTag to enterNavTag at position pos is allowed. More...
 

Member Function Documentation

template<class TCanEnterNavTagMode = LogicDoNotUseCanEnterNavTag>
static bool Kaim::SimpleTraverseLogic< TCanEnterNavTagMode >::CanEnterNavTag ( void *  ,
const NavTag &  ,
const NavTag &  ,
const Vec3f  
)
inlinestatic

Called if TCanEnterNavTagMode==LogicDoUseCanEnterNavTag. Must return true when traversing from exitNavTag to enterNavTag at position pos is allowed.

template<class TCanEnterNavTagMode = LogicDoNotUseCanEnterNavTag>
static bool Kaim::SimpleTraverseLogic< TCanEnterNavTagMode >::CanTraverseNavTag ( void *  ,
const NavTag &   
)
inlinestatic

Called when the propagation traverses a different navTag than the the current one. Must return true if the navTag is allowed.

template<class TCanEnterNavTagMode = LogicDoNotUseCanEnterNavTag>
static KyFloat32 Kaim::SimpleTraverseLogic< TCanEnterNavTagMode >::GetHeuristicFromDistanceToDest ( void *  ,
KyFloat32  distance3dToDestination 
)
inlinestatic

Called for each node in AstarQuery. Must return the approximate cost of moving the specified cost toward the final destination.


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