Planeshift
|
ProgressionScript is the imperative script container. More...
#include <scripting.h>
Public Member Functions | |
const csString & | GetName () |
fetch the name of this progressionscript object | |
void | Run (MathEnvironment *env) |
Run is executing the internally stored script. | |
~ProgressionScript () | |
default destructor deletes all internally stored script operation object | |
Static Public Member Functions | |
static ProgressionScript * | Create (EntityManager *entitymanager, CacheManager *cachemanager, const char *name, const char *script) |
create a progressionscript from a string containing a xml script | |
static ProgressionScript * | Create (EntityManager *entitymanager, CacheManager *cachemanager, const char *name, iDocumentNode *top) |
create a progressionscript from a xml script | |
Protected Member Functions | |
ProgressionScript (const char *name) | |
internal constructor for Create(). | |
Protected Attributes | |
csString | name |
name of the script object (identifier?) | |
csArray< ImperativeOp * > | ops |
script operation objects, warning: may have objects that contain further arrays of operations |
ProgressionScript is the imperative script container.
An imperative script is a one-shot script.
Definition at line 78 of file scripting.h.
ProgressionScript::~ProgressionScript | ( | ) |
default destructor deletes all internally stored script operation object
ProgressionScript::ProgressionScript | ( | const char * | name | ) | [inline, protected] |
internal constructor for Create().
Is constructor only available inside the class.
name | of the script object (identifier ?) |
Definition at line 126 of file scripting.h.
static ProgressionScript* ProgressionScript::Create | ( | EntityManager * | entitymanager, |
CacheManager * | cachemanager, | ||
const char * | name, | ||
const char * | script | ||
) | [static] |
create a progressionscript from a string containing a xml script
Basically this function creates a xml script from the given string and then passes it on to the other Create function.
entitymanager | of the psserver |
cachemanager | of the psserver |
name | of the progressionscript ? |
script | const char* string containing the script to parse and store |
static ProgressionScript* ProgressionScript::Create | ( | EntityManager * | entitymanager, |
CacheManager * | cachemanager, | ||
const char * | name, | ||
iDocumentNode * | top | ||
) | [static] |
create a progressionscript from a xml script
Parses the supplied xml script and creates and stores an object representation of the script.
entitymanager | of the psserver |
cachemanager | of the psserver |
name | of the progressionscript ? |
top | xml iDocumentNode containing the script to parse and store |
const csString& ProgressionScript::GetName | ( | ) | [inline] |
fetch the name of this progressionscript object
Definition at line 110 of file scripting.h.
void ProgressionScript::Run | ( | MathEnvironment * | env | ) |
Run is executing the internally stored script.
env | is a container for passing variables to the script |
csString ProgressionScript::name [protected] |
name of the script object (identifier?)
Definition at line 128 of file scripting.h.
csArray<ImperativeOp*> ProgressionScript::ops [protected] |
script operation objects, warning: may have objects that contain further arrays of operations
Definition at line 129 of file scripting.h.