Planeshift
|
A MathScript is a mini-program to run. More...
#include <mathscript.h>
Public Member Functions | |
void | CopyAndDestroy (MathScript *other) |
double | Evaluate (MathEnvironment *env) const |
const csString & | Name () const |
~MathScript () | |
Static Public Member Functions | |
static MathScript * | Create (const char *name, const csString &script) |
static void | Destroy (MathScript *&mathScript) |
Protected Member Functions | |
MathScript (const char *name) | |
Protected Attributes | |
csString | name |
csArray< MathExpression * > | scriptLines |
A MathScript is a mini-program to run.
It allows multiple lines. Each line must be in the form of: <var> = <formula>. When it parses, it makes a hashmap of all the variables for quick access.
Definition at line 442 of file mathscript.h.
|
inlineprotected |
Definition at line 445 of file mathscript.h.
MathScript::~MathScript | ( | ) |
void MathScript::CopyAndDestroy | ( | MathScript * | other | ) |
|
static |
|
static |
|
virtual |
Reimplemented from MathExpression.
|
inline |
Definition at line 455 of file mathscript.h.
|
protected |
Definition at line 446 of file mathscript.h.
|
protected |
Definition at line 447 of file mathscript.h.