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

Public Member Functions

 CTaskTake (COldObject *object)
bool EventProcess (const Event &event) override
Error Start ()
Error IsEnded () override
bool Abort () override
Public Member Functions inherited from CForegroundTask
 CForegroundTask (COldObject *object)
bool IsBackground () override final
 Returns true if this task is meant to be run as a background task.
bool IsPilot () override
 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 Member Functions

CObject * SearchTakeObject (float &angle, float dLimit, float aLimit)
CObject * SearchFriendObject (float &angle, float dLimit, float aLimit, int &slotNumOut)
bool TransporterTakeObject ()
bool TransporterDeposeObject ()
bool IsFreeDeposeObject (Math::Vector pos)

Protected Attributes

TaskTakeOrder m_order = TTO_TAKE
TaskTakeArm m_arm = TTA_NEUTRAL
int m_step = 0
float m_speed = 0.0f
float m_progress = 0.0f
float m_height = 0.0f
bool m_bError = false
bool m_bTurn = false
float m_angle = 0.0f
ObjectType m_cargoType = OBJECT_NULL
Protected Attributes inherited from CTask
Gfx::CEngine * m_engine = nullptr
Gfx::CLightManager * m_lightMan = nullptr
Gfx::CParticle * m_particle = nullptr
Gfx::CTerrain * m_terrain = nullptr
Gfx::CWater * m_water = nullptr
Gfx::CCamera * m_camera = nullptr
CRobotMain * m_main = nullptr
CSoundInterface * m_sound = nullptr
COldObject * m_object = nullptr
CProgrammableObject * m_programmable = nullptr
CMotion * m_motion = nullptr
CPhysics * m_physics = nullptr

Member Function Documentation

◆ EventProcess()

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

Reimplemented from CTask.

◆ IsEnded()

Error CTaskTake::IsEnded ( )
overridevirtual

Reimplemented from CTask.

◆ Abort()

bool CTaskTake::Abort ( )
overridevirtual

Reimplemented from CTask.


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