Planeshift
|
This holds one line of a (potentially) multi-line script. More...
#include <mathscript.h>
Public Member Functions | |
double | Evaluate (MathEnvironment *env) const |
![]() | |
size_t | GetOpcode () const |
void | SetOpcode (size_t newOpcode) |
virtual | ~MathExpression () |
Static Public Member Functions | |
static MathStatement * | Create (const csString &expression, const char *name) |
![]() | |
static MathExpression * | Create (const char *expression, const char *name="") |
Empty destructor. More... | |
Protected Member Functions | |
MathStatement () | |
![]() | |
MathExpression () | |
bool | Parse (const char *expression) |
Protected Attributes | |
csString | assignee |
variable the result will be assinged to More... | |
![]() | |
FunctionParser | fp |
const char * | name |
size_t | opcode |
csSet< PropertyRef > | propertyRefs |
properties that have to be resolved prior to evaluation More... | |
csSet< csString > | requiredObjs |
a subset of requiredVars which are known to be objects; for type checking More... | |
csSet< csString > | requiredVars |
variables required to execute this expression More... | |
Additional Inherited Members | |
![]() | |
enum | { MATH_NONE = 0, MATH_COND = 1, MATH_EXP = 2, MATH_LOOP = 4, MATH_ASSIGN = 8, MATH_BREAK = 16, MATH_WHILE = MATH_COND | MATH_EXP | MATH_LOOP, MATH_IF = MATH_COND | MATH_EXP, MATH_ELSE = MATH_COND, MATH_DO = MATH_EXP | MATH_LOOP } |
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.
|
inlineprotected |
Definition at line 407 of file mathscript.h.
|
static |
|
virtual |
Reimplemented from MathExpression.
|
protected |
variable the result will be assinged to
Definition at line 409 of file mathscript.h.