Colobot
|
Interface for programmable objects. More...
#include <programmable_object.h>
Public Member Functions | |
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 (FILE *file)=0 |
Save current execution status to file. More... | |
virtual bool | ReadStack (FILE *file)=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 float | GetCmdLine (unsigned int rank)=0 |
Returns program cmdline values for an object. 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 |
Interface for programmable objects.
Programmable objects can be programmed in CBOT
|
pure virtual |
Start a program.
Implemented in CProgrammableObjectImpl.
|
pure virtual |
Stop currently running program.
Implemented in COldObject, and CProgrammableObjectImpl.
|
pure virtual |
Returns the currently running program, or nullptr if no program is running.
Implemented in CProgrammableObjectImpl.
|
pure virtual |
Check if a program is running.
Implemented in CProgrammableObjectImpl.
|
pure virtual |
Save current execution status to file.
Implemented in CProgrammableObjectImpl.
|
pure virtual |
Read current execution status from file.
Implemented in CProgrammableObjectImpl.
|
pure virtual |
Start recording trace.
Implemented in CProgrammableObjectImpl.
|
pure virtual |
Stop recording trace and generate CBot program.
Implemented in CProgrammableObjectImpl.
|
pure virtual |
Returns true if trace recording is in progress.
Implemented in CProgrammableObjectImpl.
|
pure virtual |
Management of object "activity" (temporairly stops program execution, right now used only by Aliens in eggs)
Implemented in CProgrammableObjectImpl.
|
pure virtual |
Returns program cmdline values for an object.
Implemented in CProgrammableObjectImpl.