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

Public Member Functions

 CAutoEgg (COldObject *object)
void DeleteObject (bool all=false) override
void Init () override
void Start (int param) override
bool EventProcess (const Event &event) override
Error IsEnded () override
Error GetError () override
bool SetType (ObjectType type) override
bool SetValue (int rank, float value) override
bool SetString (char *string) override
 Sets program which will be run by created aliens.
bool Write (CLevelParserLine *line) override
bool Read (CLevelParserLine *line) override
Public Member Functions inherited from CAuto
 CAuto (COldObject *object)
virtual bool Abort ()
virtual Error StartAction (int param)
virtual bool CreateInterface (bool bSelect)
virtual bool GetBusy ()
virtual void SetBusy (bool busy)
virtual void InitProgressTotal (float total)
virtual void EventProgress (float rTime)
virtual bool GetMotor ()
virtual void SetMotor (bool bMotor)

Protected Member Functions

CObjectSearchAlien ()
Protected Member Functions inherited from CAuto
void CheckInterface (Ui::CWindow *pw, EventType event, bool bState)
void EnableInterface (Ui::CWindow *pw, EventType event, bool bState)
void VisibleInterface (Ui::CWindow *pw, EventType event, bool bState)
void DeadInterface (Ui::CWindow *pw, EventType event, bool bState)
void UpdateInterface ()
void UpdateInterface (float rTime)

Protected Attributes

ObjectType m_type = OBJECT_NULL
float m_value = 0.0f
std::string m_alienProgramName
int m_param = 0
AutoEggPhase m_phase = AEP_NULL
float m_progress = 0.0f
float m_speed = 0.0f
Protected Attributes inherited from CAuto
CEventQueuem_eventQueue = nullptr
Gfx::CEnginem_engine = nullptr
Gfx::CParticlem_particle = nullptr
Gfx::CTerrainm_terrain = nullptr
Gfx::CWaterm_water = nullptr
Gfx::CCloudm_cloud = nullptr
Gfx::CPlanetm_planet = nullptr
Gfx::CLightningm_lightning = nullptr
Gfx::CCameram_camera = nullptr
Ui::CInterfacem_interface = nullptr
CRobotMainm_main = nullptr
COldObjectm_object = nullptr
CSoundInterfacem_sound = nullptr
ObjectType m_type = OBJECT_NULL
bool m_bBusy = false
bool m_bMotor = false
float m_time = 0.0f
float m_lastUpdateTime = 0.0f
float m_progressTime = 0.0f
float m_progressTotal = 0.0f

Member Function Documentation

◆ DeleteObject()

void CAutoEgg::DeleteObject ( bool all = false)
overridevirtual

Reimplemented from CAuto.

◆ Init()

void CAutoEgg::Init ( )
overridevirtual

Reimplemented from CAuto.

◆ Start()

void CAutoEgg::Start ( int param)
overridevirtual

Reimplemented from CAuto.

◆ EventProcess()

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

Reimplemented from CAuto.

◆ IsEnded()

Error CAutoEgg::IsEnded ( )
overridevirtual

Reimplemented from CAuto.

◆ GetError()

Error CAutoEgg::GetError ( )
overridevirtual

Reimplemented from CAuto.

◆ SetType()

bool CAutoEgg::SetType ( ObjectType type)
overridevirtual

Reimplemented from CAuto.

◆ SetValue()

bool CAutoEgg::SetValue ( int rank,
float value )
overridevirtual

Reimplemented from CAuto.

◆ SetString()

bool CAutoEgg::SetString ( char * string)
overridevirtual

Sets program which will be run by created aliens.

Reimplemented from CAuto.

◆ Write()

bool CAutoEgg::Write ( CLevelParserLine * line)
overridevirtual

Reimplemented from CAuto.

◆ Read()

bool CAutoEgg::Read ( CLevelParserLine * line)
overridevirtual

Reimplemented from CAuto.


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