Colobot
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
CTask Class Referenceabstract
Inheritance diagram for CTask:
Inheritance graph
[legend]

Public Member Functions

 CTask (COldObject *object)
 
virtual bool EventProcess (const Event &event)
 
virtual Error IsEnded ()
 
virtual bool IsBusy ()
 
virtual bool Abort ()
 
virtual bool IsPilot ()=0
 Returns true if you can control the robot while the task is executing.
 
virtual bool IsBackground ()=0
 Returns true if this task is meant to be run as a background task.
 

Protected Attributes

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

◆ IsPilot()

virtual bool CTask::IsPilot ( )
pure virtual

Returns true if you can control the robot while the task is executing.

Implemented in CForegroundTask, CTaskFire, and CBackgroundTask.

◆ IsBackground()

virtual bool CTask::IsBackground ( )
pure virtual

Returns true if this task is meant to be run as a background task.

Implemented in CForegroundTask, and CBackgroundTask.


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