ScummVM API documentation
cGameObject Class Reference
Inheritance diagram for cGameObject:
iGameEntity

Public Member Functions

 cGameObject (cInit *apInit, const tString &asName)
 
void OnPlayerInteract ()
 
void OnPlayerPick ()
 
bool IsSaved ()
 
void Update (float afTimeStep)
 
void BreakAction ()
 
void OnDeath (float afDamage)
 
bool IsBreakable ()
 
void OnPlayerGravityCollide (iCharacterBody *apCharBody, cCollideData *apCollideData)
 
void SetInteractMode (eObjectInteractMode aInteractMode)
 
eObjectInteractMode GetInteractMode ()
 
void SetupBreakObject ()
 
bool IsDestroyable ()
 
float GetDestroyStrength ()
 
const tStringGetDestroySound ()
 
void SetupForceOffset ()
 
iGameEntity_SaveDataCreateSaveData ()
 
void SaveToSaveData (iGameEntity_SaveData *apSaveData)
 
void LoadFromSaveData (iGameEntity_SaveData *apSaveData)
 
- Public Member Functions inherited from iGameEntity
 iGameEntity (cInit *apInit, const tString &asName)
 
const tStringGetName ()
 
bool IsActive ()
 
void SetActive (bool abX)
 
virtual void OnSetActive (bool abX)
 
virtual void OnWorldLoad ()
 
virtual void OnPostLoadScripts ()
 
virtual void OnWorldExit ()
 
virtual void OnDraw ()
 
virtual void OnPostSceneDraw ()
 
void OnUpdate (float afTimeStep)
 
eGameEntityType GetType ()
 
const tStringGetSubType ()
 
void SetDescription (const tWString &asDesc)
 
const tWStringGetDescription ()
 
void SetShowDescritionOnce (bool abX)
 
bool GetShowDescritionOnce ()
 
bool GetHasBeenExamined ()
 
void SetGameName (const tWString &asName)
 
const tWStringGetGameName ()
 
iPhysicsBodyGetBody (int alNum)
 
int GetBodyNum ()
 
void SetBodies (Common::Array< iPhysicsBody *> &avBodies)
 
iPhysicsJointGetJoint (int alNum)
 
int GetJointNum ()
 
void SetJoints (Common::Array< iPhysicsJoint *> &avJoints)
 
int GetLightNum ()
 
iLight3DGetLight (int alX)
 
void SetLights (Common::Array< iLight3D *> &avLights)
 
void SetParticleSystems (Common::Array< cParticleSystem3D *> &avParticleSystems)
 
void SetBillboards (Common::Array< cBillboard *> &avBillboards)
 
void SetBeams (Common::Array< cBeam *> &avBeams)
 
void SetSoundEntities (Common::Array< cSoundEntity *> &avSoundEntities)
 
void DestroyLight (iLight3D *apLight)
 
void DestroyParticleSystem (cParticleSystem3D *apPS)
 
void DestroyBillboard (cBillboard *apBillboard)
 
void SetSoundEntity (cSoundEntity *apSound)
 
cMeshEntityGetMeshEntity ()
 
void SetMeshEntity (cMeshEntity *apEnity)
 
void PlayerPick ()
 
void PlayerInteract ()
 
void PlayerExamine ()
 
virtual void OnPlayerExamine ()
 
virtual bool OnUseItem (cInventoryItem *apItem)
 
virtual void OnDamage (float afDamage)
 
bool GetHasInteraction ()
 
float GetMaxExamineDist ()
 
void SetMaxExamineDist (float afX)
 
float GetMaxInteractDist ()
 
void SetMaxInteractDist (float afX)
 
virtual eCrossHairState GetPickCrossHairState (iPhysicsBody *apBody)
 
virtual float GetPickedDistance ()
 
void AddCollideScript (eGameCollideScriptType aType, const tString &asFunc, const tString &asEntity)
 
void RemoveCollideScript (eGameCollideScriptType aType, const tString &asFunc)
 
void RemoveCollideScriptWithChildEntity (iGameEntity *apEntity)
 
void AddScript (eGameEntityScriptType aType, const tString &asFunc)
 
void RemoveScript (eGameEntityScriptType aType)
 
void CreateVar (const tString &asName, int alVal)
 
void SetVar (const tString &asName, int alVal)
 
void AddVar (const tString &asName, int alVal)
 
int GetVar (const tString &asName)
 
void Damage (float afDamage, int alStrength)
 
float GetHealth ()
 
void SetHealth (float afHealth)
 
void SetToughness (int alX)
 
int GetToughness ()
 
bool GetDestroyMe ()
 
bool GetBreakMe ()
 
void Break ()
 
void SetCharBody (iCharacterBody *apCharBody)
 
iCharacterBodySetCharBody ()
 
void SetUpTransMaterials ()
 
void SetTransActive (bool abX)
 
void SetPauseControllers (bool abX)
 
bool GetPauseControllers ()
 
void SetPauseGravity (bool abX)
 
bool GetPauseGravity ()
 
const cMatrixfGetOnLoadTransform ()
 
void SetOnLoadTransform (const cMatrixf &a_mtxPose)
 
void SetLastImpulse (const cVector3f &avVec)
 
const tStringGetFileName ()
 
cGameEntityScriptGetCallbackScript (eGameEntityScriptType aType)
 
void SetSaveData (iGameEntity_SaveData *apData)
 
iGameEntity_SaveDataGetSaveData ()
 
virtual void SetupSaveData (iGameEntity_SaveData *apSaveData)
 

Additional Inherited Members

- Protected Member Functions inherited from iGameEntity
tString GetScriptCommand (eGameEntityScriptType aType)
 
void PreloadModel (const tString &asFile)
 
- Protected Attributes inherited from iGameEntity
cInitmpInit
 
bool mbActive
 
tString msFileName
 
bool mbIsSaved
 
bool mbDestroyMe
 
bool mbBreakMe
 
bool mbHasInteraction
 
bool mbHasBeenExamined
 
tString msName
 
tString msSubType
 
float mfHealth
 
int mlToughness
 
tWString msGameName
 
tWString msDescription
 
bool mbShowDescritionOnce
 
float mfMaxExamineDist
 
float mfMaxInteractDist
 
eGameEntityType mType
 
bool mbPauseControllers
 
bool mbPauseGravity
 
cMatrixf m_mtxOnLoadTransform
 
iGameEntity_SaveDatampSaveData
 
Common::Array< iPhysicsBody * > mvBodies
 
Common::Array< iPhysicsJoint * > mvJoints
 
Common::Array< iLight3D * > mvLights
 
Common::Array< cParticleSystem3D * > mvParticleSystems
 
Common::Array< cBillboard * > mvBillboards
 
Common::Array< cBeam * > mvBeams
 
Common::Array< cSoundEntity * > mvSoundEntities
 
bool mbSaveLights
 
cMeshEntitympMeshEntity
 
Common::Array< iMaterial * > mvNormalMaterials
 
Common::Array< iMaterial * > mvTransMaterials
 
bool mbTransActive
 
bool mbTransShadow
 
cVector3f mvLastImpulse
 
Common::Array< cMesh * > mvPreloadedBreakMeshes
 
iCharacterBodympCharBody
 
cGameEntityScriptmvCallbackScripts [eGameEntityScriptType_LastEnum]
 
tGameCollideScriptMap m_mapCollideCallbacks
 
tGameEntityVarMap m_mapVars
 
bool mbUpdatingCollisionCallbacks
 

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