ScummVM API documentation
cPlayer Class Reference
Inheritance diagram for cPlayer:
hpl::iUpdateable

Public Member Functions

 cPlayer (cInit *apInit)
 
void MoveForwards (float afMul, float afTimeStep)
 
void MoveSideways (float afMul, float afTimeStep)
 
void AddYaw (float afVal)
 
void AddPitch (float afVal)
 
void Lean (float afMul, float afTimeStep)
 
void StartInteract ()
 
void StopInteract ()
 
void StartExamine ()
 
void StopExamine ()
 
void StartHolster ()
 
void Jump ()
 
void StartRun ()
 
void StopRun ()
 
void StartCrouch ()
 
void StopCrouch ()
 
void StartInteractMode ()
 
void StartInventory ()
 
void StartInventoryShortCut (int alNum)
 
void StartFlashLightButton ()
 
void StartGlowStickButton ()
 
void SetStartPos (const tString &asName)
 
void FootStep (float afMul, const tString &asType="", bool abSkipCount=false)
 
void ChangeState (ePlayerState aState)
 
void ChangeMoveState (ePlayerMoveState aState, bool abSetHeadHeightDirectly=false)
 
void AddCollideScript (eGameCollideScriptType aType, const tString &asFunc, const tString &asEntity)
 
void RemoveCollideScript (eGameCollideScriptType aType, const tString &asFunc)
 
void RemoveCollideScriptWithChildEntity (iGameEntity *apEntity)
 
void ClearCollideScripts ()
 
void SetHealth (float afX)
 
void AddHealth (float afX)
 
float GetHealth ()
 
void Damage (float afDamage, ePlayerDamageType aType)
 
void DestroyWorldObjects ()
 
iSaveDataCreateSaveData ()
 
void OnWorldLoad ()
 
void OnWorldExit ()
 
void OnStart ()
 
void Update (float afTimeStep)
 
void Reset ()
 
void OnDraw ()
 
void OnPostSceneDraw ()
 
void AddSaveData (cSavedWorld *apSavedWorld)
 
void LoadSaveData (cSavedWorld *apSavedWorld)
 
void SaveToGlobal (cPlayer_GlobalSave *apSave)
 
void LoadFromGlobal (cPlayer_GlobalSave *apSave)
 
bool IsDead ()
 
void SetActive (bool abActive)
 
bool IsActive ()
 
void SetPushBody (iPhysicsBody *apBody)
 
iPhysicsBodyGetPushBody ()
 
float GetDefaultMass ()
 
float GetMass ()
 
void SetMass (float afX)
 
void SetPower (float afX)
 
void AddPower (float afX)
 
float GetPower ()
 
iCharacterBodyGetCharacterBody ()
 
cCamera3DGetCamera ()
 
cVector3f GetSize ()
 
float GetCrouchHeight ()
 
float GetMaxPushDist ()
 
float GetMaxPushSpeed ()
 
cVector2f GetMaxPushHeadMovement ()
 
cVector2f GetMinPushHeadMovement ()
 
float GetMaxMoveDist ()
 
float GetMaxGrabDist ()
 
float GetMaxUseItemDist ()
 
void SetPrevMoveState (ePlayerMoveState aState)
 
iPlayerMoveStateGetMoveStateData (ePlayerMoveState aState)
 
ePlayerMoveState GetMoveState ()
 
ePlayerState GetState ()
 
iPlayerStateGetStateData (ePlayerState aState)
 
float GetSpeedMul ()
 
void SetSpeedMul (float afSpeedMul)
 
float GetHealthSpeedMul ()
 
void SetHealthSpeedMul (float afHealthSpeedMul)
 
void SetHeadMoveSizeMul (float afX)
 
void SetHeadMoveSpeedMul (float afX)
 
float GetHeadMoveSizeMul ()
 
float GetHeadMoveSpeedMul ()
 
float GetLookSpeed ()
 
void SetCrossHairState (eCrossHairState aState)
 
eCrossHairState GetCrossHairState ()
 
iPhysicsBodyGetPickedBody ()
 
void SetPickedBody (iPhysicsBody *apBody)
 
float GetPickedDist ()
 
const cVector3fGetPickedPos ()
 
cPlayerPickRayCallbackGetPickRay ()
 
float GetCameraHeightAdd ()
 
bool IsMoving ()
 
cPlayerFlashLightGetFlashLight ()
 
cPlayerHeadMoveGetHeadMove ()
 
cPlayerEarRingGetEarRing ()
 
cPlayerGlowStickGetGlowStick ()
 
cPlayerFlareGetFlare ()
 
cPlayerNoiseFilterGetNoiseFilter ()
 
cPlayerFearFilterGetFearFilter ()
 
cPlayerLookAtGetLookAt ()
 
cPlayerHiddenGetHidden ()
 
float GetHeightAdd ()
 
void SetHeightAdd (float afX)
 
cInitGetInit ()
 
cVector2f GetInteractMoveBorder ()
 
cVector2f GetCrossHairPos ()
 
void SetCrossHairPos (const cVector2f &avPos)
 
bool AddCrossHairPos (const cVector2f &avPos)
 
void ResetCrossHairPos ()
 
void SetCurrentItem (cInventoryItem *apItem)
 
cInventoryItemGetCurrentItem ()
 
void SetItemFlash (bool abX)
 
void SetWeaponCallback (iPlayerWeaponCallback *apCallback)
 
iPlayerWeaponCallbackGetWeaponCallback ()
 
bool GetLandedFromJump ()
 
void SetLandedFromJump (bool abX)
 
void SetJumpButtonDown (bool abX)
 
bool GetJumpButtonDown ()
 
float GetJumpCount ()
 
float GetMaxJumpCount ()
 
- Public Member Functions inherited from hpl::iUpdateable
 iUpdateable (const tString &asName)
 
virtual void OnPostGUIDraw ()
 
virtual void OnPostBufferSwap ()
 
virtual void OnExit ()
 
const tStringGetName ()
 

Public Attributes

int mlStat_NumOfSaves
 
float mfForwardUpMul
 
float mfForwardRightMul
 
float mfUpMul
 
float mfRightMul
 
bool mbPickAtPoint
 
bool mbRotateWithPlayer
 
bool mbUseNormalMass
 
float mfGrabMassMul
 
bool mbCanBeThrown
 
bool mbCanBePulled
 
float mfCurrentMaxInteractDist
 
bool mbGrabbingMoveBody
 
bool mbProxyTouching
 
float mfHapticTorqueMul
 
bool mbDamageFromPos
 
cVector3f mvDamagePos
 
cVector3f mvLineStart
 
cVector3f mvLineEnd
 

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