The ExecutableCode class represents the code of a compiled Scratch script.
More...
#include <scratchcpp/executablecode.h>
The ExecutableCode class represents the code of a compiled Scratch script.
◆ ~ExecutableCode()
| virtual libscratchcpp::ExecutableCode::~ExecutableCode |
( |
| ) |
|
|
inlinevirtual |
◆ createExecutionContext()
| virtual std::shared_ptr< ExecutionContext > libscratchcpp::ExecutableCode::createExecutionContext |
( |
Thread * | thread | ) |
const |
|
pure virtual |
Creates an execution context for the given Target.
◆ isFinished()
| virtual bool libscratchcpp::ExecutableCode::isFinished |
( |
ExecutionContext * | context | ) |
const |
|
pure virtual |
Returns true if the code is stopped or finished.
◆ kill()
◆ reset()
Resets the code to run from the start.
◆ run()
Runs the script until it finishes or yields.
◆ runPredicate()
| virtual bool libscratchcpp::ExecutableCode::runPredicate |
( |
ExecutionContext * | context | ) |
|
|
pure virtual |
Runs the hat predicate and returns its return value.
◆ runReporter()
Runs the reporter and returns its return value.
- Note
- Make sure to call value_free() to free the value.
The documentation for this class was generated from the following file: