Colobot
Loading...
Searching...
No Matches
CMotionHuman Class Reference
Inheritance diagram for CMotionHuman:

Public Member Functions

 CMotionHuman (COldObject *object)
void DeleteObject (bool bAll=false) override
void Create (Math::Vector pos, float angle, ObjectType type, float power, Gfx::COldModelManager *modelManager) override
bool EventProcess (const Event &event) override
Error SetAction (int action, float time=0.2f) override
void StartDisplayPerso ()
void StopDisplayPerso ()
Public Member Functions inherited from CMotion
 CMotion (COldObject *object)
void SetPhysics (CPhysics *physics)
virtual int GetAction ()
virtual bool SetParam (int rank, float value)
virtual float GetParam (int rank)
virtual bool Write (CLevelParserLine *line)
virtual bool Read (CLevelParserLine *line)
virtual void SetLinVibration (Math::Vector dir)
virtual Math::Vector GetLinVibration ()
virtual void SetCirVibration (Math::Vector dir)
virtual Math::Vector GetCirVibration ()
virtual void SetTilt (Math::Vector dir)
virtual Math::Vector GetTilt ()

Protected Member Functions

void CreatePhysics (ObjectType type)
bool EventFrame (const Event &event)

Protected Attributes

int m_partiReactor
float m_armMember
float m_armTimeAbs
float m_armTimeAction
float m_armTimeSwim
short m_armAngles [3 *3 *3 *3 *7+3 *3 *3 *16]
int m_armTimeIndex
int m_armPartIndex
int m_armMemberIndex
int m_armLastAction
bool m_bArmStop
float m_lastSoundMarch
float m_lastSoundHhh
float m_time
float m_tired
bool m_bDisplayPerso
int m_glassesRank
Protected Attributes inherited from CMotion
CApplicationm_app
Gfx::CEnginem_engine
Gfx::CParticlem_particle
Gfx::CTerrainm_terrain
Gfx::CWaterm_water
Gfx::CCameram_camera
COldObjectm_object
CPhysicsm_physics
CRobotMainm_main
CSoundInterfacem_sound
int m_actionType
float m_actionTime
float m_progress
Math::Vector m_linVibration
Math::Vector m_cirVibration
Math::Vector m_inclinaison

Member Function Documentation

◆ DeleteObject()

void CMotionHuman::DeleteObject ( bool bAll = false)
overridevirtual

Implements CMotion.

◆ Create()

void CMotionHuman::Create ( Math::Vector pos,
float angle,
ObjectType type,
float power,
Gfx::COldModelManager * modelManager )
overridevirtual

Implements CMotion.

◆ EventProcess()

bool CMotionHuman::EventProcess ( const Event & event)
overridevirtual

Reimplemented from CMotion.

◆ SetAction()

Error CMotionHuman::SetAction ( int action,
float time = 0.2f )
overridevirtual

Reimplemented from CMotion.


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