Colobot
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CTaskBuild Class Reference
Inheritance diagram for CTaskBuild:
Inheritance graph
[legend]

Public Member Functions

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

Protected Member Functions

Error FlatFloor ()
 
void CreateBuilding (Math::Vector pos, float angle)
 
void CreateLight ()
 
void BlackLight ()
 
CObjectSearchMetalObject (float &angle, float dMin, float dMax, float aLimit, Error &err)
 
void DeleteMark (Math::Vector pos, float radius)
 

Protected Attributes

ObjectType m_type = OBJECT_NULL
 
CObjectm_metal = nullptr
 
CObjectm_power = nullptr
 
CObjectm_building = nullptr
 
TaskBuildPhase m_phase = TBP_STOP
 
bool m_bError = false
 
bool m_bBuild = false
 
bool m_bBlack = false
 
float m_time = 0.0f
 
float m_lastParticle = 0.0f
 
float m_progress = 0.0f
 
float m_speed = 0.0f
 
float m_angleY = 0.0f
 
float m_angleZ = 0.0f
 
Math::Vector m_buildingPos
 
float m_buildingHeight = 0.0f
 
int m_lightRank [TBMAXLIGHT] = {}
 
int m_soundChannel = 0
 
- 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
 

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