|
libscratchcpp
A library for C++ based Scratch project players
|
The ExecutableCode class represents the code of a compiled Scratch script. More...
#include <scratchcpp/executablecode.h>
Public Member Functions | |
| virtual | ~ExecutableCode () |
| virtual void | run (ExecutionContext *context)=0 |
| virtual ValueData | runReporter (ExecutionContext *context)=0 |
| virtual bool | runPredicate (ExecutionContext *context)=0 |
| virtual void | kill (ExecutionContext *context)=0 |
| virtual void | reset (ExecutionContext *context)=0 |
| virtual bool | isFinished (ExecutionContext *context) const =0 |
| virtual std::shared_ptr< ExecutionContext > | createExecutionContext (Thread *thread) const =0 |
The ExecutableCode class represents the code of a compiled Scratch script.
|
inlinevirtual |
|
pure virtual |
Creates an execution context for the given Target.
|
pure virtual |
Returns true if the code is stopped or finished.
|
pure virtual |
Stops the code. isFinished() will return true.
|
pure virtual |
Resets the code to run from the start.
|
pure virtual |
Runs the script until it finishes or yields.
|
pure virtual |
Runs the hat predicate and returns its return value.
|
pure virtual |
Runs the reporter and returns its return value.