Planeshift
|
This holds one line of a (potentially) multi-line script. More...
#include <mathscript.h>
Public Member Functions | |
double | Evaluate (MathEnvironment *env) const |
Static Public Member Functions | |
static MathStatement * | Create (const csString &expression, const char *name) |
Protected Member Functions | |
MathStatement () | |
Protected Attributes | |
csString | assignee |
variable the result will be assinged to |
This holds one line of a (potentially) multi-line script.
It knows what <var> is on the left, and what <formula> is on the right of the = sign. When run, it executes the formula and sets the result in the Var. These vars are shared across Lines, which means the next Line can use that Var as an input.
Definition at line 404 of file mathscript.h.
MathStatement::MathStatement | ( | ) | [inline, protected] |
Definition at line 407 of file mathscript.h.
static MathStatement* MathStatement::Create | ( | const csString & | expression, |
const char * | name | ||
) | [static] |
double MathStatement::Evaluate | ( | MathEnvironment * | env | ) | const [virtual] |
Reimplemented from MathExpression.
csString MathStatement::assignee [protected] |
variable the result will be assinged to
Definition at line 409 of file mathscript.h.