Colobot
|
Public Member Functions | |
CProgrammableObjectImpl (ObjectInterfaceTypes &types, CObject *object) | |
bool | EventProcess (const Event &event) |
bool | IsProgram () override |
Check if a program is running. More... | |
void | RunProgram (Program *program) override |
Start a program. More... | |
Program * | GetCurrentProgram () override |
Returns the currently running program, or nullptr if no program is running. More... | |
void | StopProgram () override |
Stop currently running program. More... | |
bool | ReadStack (std::istream &istr) override |
Read current execution status from file. More... | |
bool | WriteStack (std::ostream &ostr) override |
Save current execution status to file. More... | |
void | TraceRecordStart () override |
Start recording trace. More... | |
void | TraceRecordStop () override |
Stop recording trace and generate CBot program. More... | |
bool | IsTraceRecord () override |
Returns true if trace recording is in progress. More... | |
void | SetActivity (bool activity) override |
Management of object "activity" (temporairly stops program execution, right now used only by Aliens in eggs) More... | |
bool | GetActivity () override |
void | SetCmdLine (unsigned int rank, float value) |
float | GetCmdLine (unsigned int rank) override |
Returns program cmdline values for an object. More... | |
std::vector< float > & | GetCmdLine () |
![]() | |
CProgrammableObject (ObjectInterfaceTypes &types) | |
virtual void | RunProgram (Program *program)=0 |
Start a program. More... | |
virtual void | StopProgram ()=0 |
Stop currently running program. More... | |
virtual Program * | GetCurrentProgram ()=0 |
Returns the currently running program, or nullptr if no program is running. More... | |
virtual bool | IsProgram ()=0 |
Check if a program is running. More... | |
virtual bool | WriteStack (std::ostream &ostr)=0 |
Save current execution status to file. More... | |
virtual bool | ReadStack (std::istream &istr)=0 |
Read current execution status from file. More... | |
virtual void | TraceRecordStart ()=0 |
Start recording trace. More... | |
virtual void | TraceRecordStop ()=0 |
Stop recording trace and generate CBot program. More... | |
virtual bool | IsTraceRecord ()=0 |
Returns true if trace recording is in progress. More... | |
virtual void | SetActivity (bool bMode)=0 |
Management of object "activity" (temporairly stops program execution, right now used only by Aliens in eggs) More... | |
virtual bool | GetActivity ()=0 |
virtual float | GetCmdLine (unsigned int rank)=0 |
Returns program cmdline values for an object. More... | |
|
overridevirtual |
Check if a program is running.
Implements CProgrammableObject.
|
overridevirtual |
Start a program.
Implements CProgrammableObject.
|
overridevirtual |
Returns the currently running program, or nullptr if no program is running.
Implements CProgrammableObject.
|
overridevirtual |
|
overridevirtual |
Read current execution status from file.
Implements CProgrammableObject.
|
overridevirtual |
Save current execution status to file.
Implements CProgrammableObject.
|
overridevirtual |
Start recording trace.
Implements CProgrammableObject.
|
overridevirtual |
Stop recording trace and generate CBot program.
Implements CProgrammableObject.
|
overridevirtual |
Returns true if trace recording is in progress.
Implements CProgrammableObject.
|
overridevirtual |
Management of object "activity" (temporairly stops program execution, right now used only by Aliens in eggs)
Implements CProgrammableObject.
|
overridevirtual |
Implements CProgrammableObject.
|
overridevirtual |
Returns program cmdline values for an object.
Implements CProgrammableObject.