ScummVM API documentation
hpl::iPhysicsController Class Reference
Inheritance diagram for hpl::iPhysicsController:
hpl::iSaveObject hpl::cPhysicsControllerNewton

Public Member Functions

 iPhysicsController (const tString &asName, iPhysicsWorld *apWorld)
 
void Update (float afTimeStep)
 
const tStringGetName ()
 
void SetJoint (iPhysicsJoint *apJoint)
 
iPhysicsJointGetJoint ()
 
void SetBody (iPhysicsBody *apBody)
 
iPhysicsBodyGetBody ()
 
bool IsActive ()
 
void SetActive (bool abX)
 
void SetA (float afA)
 
void SetB (float afB)
 
void SetC (float afC)
 
void SetPidIntegralSize (int alSize)
 
void SetType (ePhysicsControllerType aType)
 
void SetDestValue (float afX)
 
float GetDestValue ()
 
void SetMaxOutput (float afX)
 
void SetInputType (ePhysicsControllerInput aInput, ePhysicsControllerAxis aAxis)
 
void SetOutputType (ePhysicsControllerOutput aOutput, ePhysicsControllerAxis aAxis)
 
void SetMulMassWithOutput (bool abX)
 
void SetEndType (ePhysicsControllerEnd aEnd)
 
ePhysicsControllerEnd GetEndType ()
 
void SetNextController (const tString &asName)
 
const tStringGetNextController ()
 
void SetLogInfo (bool abX)
 
void SetPaused (bool abX)
 
virtual iSaveDataCreateSaveData ()
 
virtual void SaveToSaveData (iSaveData *apSaveData)
 
virtual void LoadFromSaveData (iSaveData *apSaveData)
 
virtual void SaveDataSetup (cSaveObjectHandler *apSaveObjectHandler, cGame *apGame)
 
- Public Member Functions inherited from hpl::iSaveObject
int GetSaveObjectId ()
 
void SetIsSaved (bool abX)
 
bool IsSaved ()
 

Static Public Attributes

static bool mbUseInputMatrixFix
 

Protected Member Functions

cVector3f GetInputValue (ePhysicsControllerInput aInput)
 
float GetOutputValue (float afError, float afInput, float afTimeStep)
 
void AddOutputValue (ePhysicsControllerOutput aOutput, ePhysicsControllerAxis aAxis, float afVal)
 
float GetAxisValue (ePhysicsControllerAxis aAxis, const cVector3f &avVec)
 

Protected Attributes

iPhysicsWorldmpWorld
 
tString msName
 
iPhysicsBodympBody
 
iPhysicsJointmpJoint
 
float mfA
 
float mfB
 
float mfC
 
float mfDestValue
 
float mfMaxOutput
 
bool mbMulMassWithOutput
 
ePhysicsControllerType mType
 
ePhysicsControllerInput mInputType
 
ePhysicsControllerAxis mInputAxis
 
ePhysicsControllerOutput mOutputType
 
ePhysicsControllerAxis mOutputAxis
 
ePhysicsControllerEnd mEndType
 
tString msNextController
 
cPidControllerf mPidController
 
bool mbActive
 
bool mbPaused
 
bool mbLogInfo
 
- Protected Attributes inherited from hpl::iSaveObject
iSaveDatampSaveData
 

Member Function Documentation

◆ CreateSaveData()

virtual iSaveData* hpl::iPhysicsController::CreateSaveData ( )
virtual

Creates the SaveData that this class uses.

Implements hpl::iSaveObject.

◆ SaveToSaveData()

virtual void hpl::iPhysicsController::SaveToSaveData ( iSaveData apSaveData)
virtual

Save it's data to a SaveData

Reimplemented from hpl::iSaveObject.

◆ LoadFromSaveData()

virtual void hpl::iPhysicsController::LoadFromSaveData ( iSaveData apSaveData)
virtual

Load it's data from a SaveData

Reimplemented from hpl::iSaveObject.

◆ SaveDataSetup()

virtual void hpl::iPhysicsController::SaveDataSetup ( cSaveObjectHandler apSaveObjectHandler,
cGame apGame 
)
virtual

After all objects have been created, this function is called to enable setup.

Reimplemented from hpl::iSaveObject.


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