Colobot
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. More...
 
virtual bool IsBackground ()=0
 Returns true if this task is meant to be run as a background task. More...
 

Protected Attributes

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

virtual bool CTask::IsPilot ( )
pure virtual

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

Implemented in CBackgroundTask, CForegroundTask, and CTaskFire.

virtual bool CTask::IsBackground ( )
pure virtual

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

Implemented in CBackgroundTask, and CForegroundTask.


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