|
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. | |
| virtual void | StopProgram ()=0 |
| Stop currently running program. | |
| virtual Program * | GetCurrentProgram ()=0 |
| Returns the currently running program, or nullptr if no program is running. | |
| virtual bool | IsProgram ()=0 |
| Check if a program is running. | |
| virtual bool | WriteStack (FILE *file)=0 |
| Save current execution status to file. | |
| virtual bool | ReadStack (FILE *file)=0 |
| Read current execution status from file. | |
| virtual void | TraceRecordStart ()=0 |
| Start recording trace. | |
| virtual void | TraceRecordStop ()=0 |
| Stop recording trace and generate CBot program. | |
| virtual bool | IsTraceRecord ()=0 |
| Returns true if trace recording is in progress. | |
| virtual float | GetCmdLine (unsigned int rank)=0 |
| Returns program cmdline values for an object. | |
| virtual void | SetActivity (bool bMode)=0 |
| Management of object "activity" (temporairly stops program execution, right now used only by Aliens in eggs) | |
| virtual bool | GetActivity ()=0 |
Interface for programmable objects.
Programmable objects can be programmed in CBOT
1.8.9.1