IMovementController

C++
struct IMovementController {
};
File

IMovementController.h

IMovementController::~IMovementController Destructor
C++
IMovementController::GetDesiredMoveDir Method
C++
virtual inline Vec2 GetDesiredMoveDir() const;
IMovementController::GetExactPositioningTarget Method
C++
virtual const SExactPositioningTarget* GetExactPositioningTarget();
Notes

this will not return an exactpositioning target if the request is still pending

IMovementController::GetMovementState Method
C++
virtual void GetMovementState(SMovementState& state) = 0;
Description

Fetch the current movement state of the entity

IMovementController::GetStanceState Method
C++
virtual bool GetStanceState(const SStanceStateQuery& query, SStanceState& state) = 0;
Description

Returns the description of the stance as if the specified stance would be set right now. If the parameter 'defaultPose' is set to false, the current aim and look target info is used to calculate the stance info, else a default pose facing along positive Y-axis is returned. Returns false if the description cannot be queried.

IMovementController::RequestMovement Method
C++
virtual bool RequestMovement(CMovementRequest& request) = 0;
Description

Request some movement; If the request cannot be fulfilled, returns false, and request is updated to be a similar request that could be fulfilled (calling code is then free to inspect this, and call RequestMovement again to set a new movement)

IMovementController::SetExactPositioningListener Method
C++
virtual void SetExactPositioningListener(IExactPositioningListener* pExactPositioningListener);