ScummVM API documentation
cCharacterMove Class Reference

Public Member Functions

 cCharacterMove (cInit *apInit)
 
void Update (float afTimeStep)
 
void OnDraw (cInit *apInit)
 
void OnPostSceneDraw (iLowLevelGraphics *apLowLevelGfx)
 
bool MoveToPos (const cVector3f &avPos)
 
void MoveDirectToPos (const cVector3f &avFeetPos, float afTimeStep)
 
void TurnToAngle (float afAngle)
 
void TurnToPos (const cVector3f &avPos)
 
void Stop ()
 
bool FreeDirectPathToChar (iCharacterBody *apBody)
 
float DistanceToChar (iCharacterBody *apBody)
 
float DistanceToChar2D (iCharacterBody *apBody)
 
cAINodeGetAINodeInRange (float afMinDistance, float afMaxDistance)
 
cAINodeGetAINodeAtPosInRange (const cVector3f &avPos, float afMinDistance, float afMaxDistance, bool abRayCheck, float afEndOffset)
 
bool IsMoving ()
 
bool IsTurning ()
 
void SetCharBody (iCharacterBody *apCharBody)
 
iCharacterBodyGetCharBody ()
 
void SetNodeContainer (cAINodeContainer *apContainer)
 
cAINodeContainerGetNodeContainer ()
 
void SetAStar (cAStarHandler *apAStar)
 
cAStarHandlerGetAStar ()
 
void SetMaxTurnSpeed (float afX)
 
void SetAngleDistTurnMul (float afX)
 
void SetMinBreakAngle (float afX)
 
void SetBreakAngleMul (float afX)
 
void SetMaxPushMass (float afX)
 
float GetTurnSpeed ()
 
const cVector3fGetGoalPos ()
 
float GetStuckCounter ()
 
void ResetStuckCounter ()
 
void SetMaxDoorToughness (int alX)
 
int GetMaxDoorToughness ()
 

Member Function Documentation

◆ MoveToPos()

bool cCharacterMove::MoveToPos ( const cVector3f avPos)

returns false if no path could be found.


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