gwnavruntime/pathfollower/basepathprogresscomputer.h Source File
Go to the documentation of this file.
18 class IPathEventListObserver;
19 class IPositionOnPathValidator;
21 class PositionOnLivePath;
41 Ptr<IPathEventListObserver> GetPathEventListObserver() {
return m_pathEventListObserver; }
45 Ptr<IPositionOnPathValidator> GetPositionOnPathCheckPointValidator() {
return m_positionOnPathCheckPointValidator; }
49 virtual void Update(
Bot* bot,
KyFloat32 simulationTimeInSeconds) = 0;
52 void ComputeProgressOnPath(
Bot* bot);
53 bool MustEventBeValidated(
Bot* bot,
const PathEvent& pathEvent);
56 bool CanProgressAfterEvent(
Bot* bot);
57 void UpdateProgressOnPathStatus(
Bot* bot);
59 void SnapProgressToNodeOrEvent(
Bot* bot);
61 void ComputePositionInChannel(
Bot* bot);
64 Ptr<IPathEventListObserver> m_pathEventListObserver;
65 Ptr<IPositionOnPathValidator> m_positionOnPathCheckPointValidator;
void SetPathEventListObserver(const Ptr< IPathEventListObserver > &m_pathEventListObserver)
Sets the SetPathEventListObserver.
Definition: basepathprogresscomputer.cpp:19
This class is the world element that represent an active character in Autodesk Navigation.
Definition: bot.h:128
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:196
A PathEvent is a particular PositionOnPath which feature is specified by a PathEventType.
Definition: patheventlist.h:59
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
The abstract base class for PathProgressComputer classes.
Definition: basepathprogresscomputer.h:30
void SetPositionOnPathCheckPointValidator(const Ptr< IPositionOnPathValidator > &positionOnPathCheckPointValidator)
Sets the IPositionOnPathValidator to be used to validate target on path check points.
Definition: basepathprogresscomputer.cpp:24
This class aggregates all necessary information to describe a position on a LivePath, namely:
Definition: positiononlivepath.h:43
float KyFloat32
float
Definition: types.h:32