Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Ui::CObjectInterface Class Reference

Public Member Functions

 CObjectInterface (COldObject *object)
 
void DeleteObject (bool all=false)
 
bool EventProcess (const Event &event)
 
bool CreateInterface (bool bSelect)
 
void UpdateInterface (float rTime)
 
void UpdateInterface ()
 

Protected Member Functions

bool EventFrame (const Event &event)
 
void StartEditScript (Program *program, std::string name)
 Start the program editor. More...
 
void StopEditScript (bool closeWithErrors)
 Close the program editor. More...
 
void GroundFlat ()
 
void ColorFlag (int color)
 
void UpdateScript (CWindow *pw)
 
int GetSelScript ()
 
void SetSelScript (int index)
 
void BlinkScript (bool bEnable)
 
void CheckInterface (CWindow *pw, EventType event, bool bState)
 
void EnableInterface (CWindow *pw, EventType event, bool bState)
 
void DeadInterface (CWindow *pw, EventType event, bool bState)
 
void DefaultEnter (CWindow *pw, EventType event, bool bState=true)
 

Protected Attributes

Gfx::CEnginem_engine
 
Gfx::CTerrainm_terrain
 
Gfx::CWaterm_water
 
Gfx::CCameram_camera
 
Gfx::CParticlem_particle
 
CRobotMainm_main
 
CInterfacem_interface
 
CSoundInterfacem_sound
 
COldObjectm_object
 
CTaskExecutorObjectm_taskExecutor
 
CProgrammableObjectm_programmable
 
CProgramStorageObjectm_programStorage
 
CPhysicsm_physics
 
CMotionm_motion
 
std::unique_ptr< CStudiom_studio
 
int m_selScript
 
EventType m_manipStyle
 
EventType m_defaultEnter
 
float m_time
 
float m_lastUpdateTime
 
float m_lastAlarmTime
 
int m_soundChannelAlarm
 
int m_flagColor
 

Member Function Documentation

void Ui::CObjectInterface::StartEditScript ( Program program,
std::string  name 
)
protected

Start the program editor.

Parameters
programProgram instance to edit
nameProgram name, used only if the program is empty to insert main function stub code
Remarks
If the editor is already open, the behaviour is undefined
void Ui::CObjectInterface::StopEditScript ( bool  closeWithErrors)
protected

Close the program editor.

Parameters
closeWithErrorsIf true, the editor will be forced to close even if the program contains errors
Remarks
If the editor isn't open, the behaviour is undefined

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