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

Public Member Functions

 CTaskPen (COldObject *object)
bool EventProcess (const Event &event) override
Error Start (bool bDown, TraceColor color)
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

void SoundManip (float time, float amplitude, float frequency)
int AngleToRank (float angle)
float ColorToAngle (TraceColor color)
int ColorToRank (TraceColor color)

Protected Attributes

bool m_bError = false
TaskPenPhase m_phase = TPP_UP
float m_progress = 0.0f
float m_delay = 0.0f
float m_time = 0.0f
float m_lastParticle = 0.0f
Math::Vector m_supportPos
float m_timeUp = 0.0f
float m_oldAngle = 0.0f
float m_newAngle = 0.0f
float m_timeDown = 0.0f
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

Member Function Documentation

◆ EventProcess()

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

Reimplemented from CTask.

◆ IsEnded()

Error CTaskPen::IsEnded ( )
overridevirtual

Reimplemented from CTask.

◆ Abort()

bool CTaskPen::Abort ( )
overridevirtual

Reimplemented from CTask.


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