22 #include "object/interface/interactive_object.h"
23 #include "object/interface/programmable_object.h"
24 #include "object/interface/trace_drawing_object.h"
43 TraceOper oper = TO_STOP;
53 bool EventProcess(
const Event& event);
68 bool GetActivity()
override;
70 void SetCmdLine(
unsigned int rank,
float value);
72 std::vector<float>& GetCmdLine();
76 void TraceRecordFrame();
78 bool TraceRecordOper(TraceOper oper,
float param);
80 bool TraceRecordPut(std::stringstream& buffer, TraceOper oper,
float param);
88 std::vector<float> m_cmdLine;
93 TraceOper m_traceOper;
96 TraceColor m_traceColor;
97 int m_traceRecordIndex;
98 std::unique_ptr<TraceRecord[]> m_traceRecordBuffer;
bool ReadStack(FILE *file) override
Read current execution status from file.
Definition: programmable_impl.cpp:141
bool WriteStack(FILE *file) override
Save current execution status to file.
Definition: programmable_impl.cpp:169
Definition: programmable_impl.h:47
void TraceRecordStart() override
Start recording trace.
Definition: programmable_impl.cpp:200
Definition: programmable_impl.h:41
Interface for programmable objects.
Definition: programmable_object.h:36
bool IsTraceRecord() override
Returns true if trace recording is in progress.
Definition: programmable_impl.cpp:382
void RunProgram(Program *program) override
Start a program.
Definition: programmable_impl.cpp:105
void StopProgram() override
Stop currently running program.
Definition: programmable_impl.cpp:116
bool IsProgram() override
Check if a program is running.
Definition: programmable_impl.cpp:133
void SetActivity(bool bMode) override
Management of object "activity" (temporairly stops program execution, right now used only by Aliens i...
Definition: programmable_impl.cpp:94
float GetCmdLine(unsigned int rank) override
Returns program cmdline values for an object.
Definition: programmable_impl.cpp:405
Vector struct and related functions.
3D (3x1) vector
Definition: vector.h:53
void TraceRecordStop() override
Stop recording trace and generate CBot program.
Definition: programmable_impl.cpp:286
Event sent by system, interface or game.
Definition: event.h:709
Base class for all 3D in-game objects.
Definition: object.h:59
Definition: program_storage_object.h:31
Program * GetCurrentProgram() override
Returns the currently running program, or nullptr if no program is running.
Definition: programmable_impl.cpp:128