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

Public Member Functions

 CTaskGunGoal (COldObject *object)
bool EventProcess (const Event &event) override
Error Start (float dirV, float dirH)
Error IsEnded () override
bool Abort () override
Public Member Functions inherited from CBackgroundTask
 CBackgroundTask (COldObject *object)
bool IsBackground () override final
 Returns true if this task is meant to be run as a background task.
bool IsPilot () override final
 Returns true if you can control the robot while the task is executing.
Public Member Functions inherited from CTask
 CTask (COldObject *object)
virtual bool IsBusy ()

Protected Attributes

float m_progress = 0.0f
float m_speed = 0.0f
float m_initialDirV = 0.0f
float m_finalDirV = 0.0f
float m_initialDirH = 0.0f
float m_finalDirH = 0.0f
bool m_aimImpossible = false
Protected Attributes inherited from CTask
Gfx::CEnginem_engine = nullptr
Gfx::CLightManagerm_lightMan = nullptr
Gfx::CParticlem_particle = nullptr
Gfx::CTerrainm_terrain = nullptr
Gfx::CWaterm_water = nullptr
Gfx::CCameram_camera = nullptr
CRobotMainm_main = nullptr
CSoundInterfacem_sound = nullptr
COldObjectm_object = nullptr
CProgrammableObjectm_programmable = nullptr
CMotionm_motion = nullptr
CPhysicsm_physics = nullptr

Member Function Documentation

◆ EventProcess()

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

Reimplemented from CTask.

◆ IsEnded()

Error CTaskGunGoal::IsEnded ( )
overridevirtual

Reimplemented from CTask.

◆ Abort()

bool CTaskGunGoal::Abort ( )
overridevirtual

Reimplemented from CTask.


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