Colobot
|
Public Member Functions | |
CTaskBuild (COldObject *object) | |
bool | EventProcess (const Event &event) override |
Error | Start (ObjectType type) |
Error | IsEnded () override |
bool | Abort () override |
![]() | |
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. | |
![]() | |
CTask (COldObject *object) | |
virtual bool | IsBusy () |
Protected Member Functions | |
Error | FlatFloor () |
void | CreateBuilding (Math::Vector pos, float angle, bool trainer) |
void | CreateLight () |
void | BlackLight () |
CObject * | SearchMetalObject (float &angle, float dMin, float dMax, float aLimit, Error &err) |
void | DeleteMark (Math::Vector pos, float radius) |
Protected Attributes | |
ObjectType | m_type = OBJECT_NULL |
CObject * | m_metal = nullptr |
CObject * | m_power = nullptr |
CObject * | m_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 |
![]() | |
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 |
|
overridevirtual |
Reimplemented from CTask.