#include <sheepcpp.h>
Represents a currently executing Sheep script.
It is created using Sheep::IVirtualMachine::PrepareScriptForExecution() and is executed or resumed using Sheep::IExecutionContext::Execute().
virtual int Sheep::IExecutionContext::Execute |
( |
| ) |
|
|
pure virtual |
virtual int Sheep::IExecutionContext::GetVariableFloat |
( |
int |
index, |
|
|
float * |
result |
|
) |
| |
|
pure virtual |
virtual int Sheep::IExecutionContext::GetVariableInt |
( |
int |
index, |
|
|
int * |
result |
|
) |
| |
|
pure virtual |
virtual int Sheep::IExecutionContext::GetVariableString |
( |
int |
index, |
|
|
const char ** |
result |
|
) |
| |
|
pure virtual |
virtual int Sheep::IExecutionContext::PopFloatFromStack |
( |
float * |
result | ) |
|
|
pure virtual |
virtual int Sheep::IExecutionContext::PopIntFromStack |
( |
int * |
result | ) |
|
|
pure virtual |
virtual int Sheep::IExecutionContext::PopStringFromStack |
( |
const char ** |
result | ) |
|
|
pure virtual |
Pops a string from the top of the stack
- Parameters
-
result | A pointer to an character array where the value on top of the stack will be written. May be null. |
- Returns
- SHEEP_SUCCESS if successful, SHEEP_ERR_EMPTY_STACK if the stack is empty, or SHEEP_ERR_WRONG_TYPE_ON_STACK if the item on top of the stack is not a string.
virtual int Sheep::IExecutionContext::PushFloatOntoStack |
( |
float |
value | ) |
|
|
pure virtual |
virtual int Sheep::IExecutionContext::PushIntOntoStack |
( |
int |
value | ) |
|
|
pure virtual |
virtual void Sheep::IExecutionContext::Release |
( |
| ) |
|
|
pure virtual |
Releases the Execution Context, decreasing its reference count by 1.
Once the reference count reaches 0 the Context is destroyed.
virtual int Sheep::IExecutionContext::SetVariableFloat |
( |
int |
index, |
|
|
float |
value |
|
) |
| |
|
pure virtual |
virtual int Sheep::IExecutionContext::SetVariableInt |
( |
int |
index, |
|
|
int |
value |
|
) |
| |
|
pure virtual |
virtual int Sheep::IExecutionContext::SetVariableString |
( |
int |
index, |
|
|
const char * |
value |
|
) |
| |
|
pure virtual |
virtual int Sheep::IExecutionContext::Suspend |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: