Planeshift
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes

MathStatement Class Reference

This holds one line of a (potentially) multi-line script. More...

#include <mathscript.h>

List of all members.

Public Member Functions

double Evaluate (MathEnvironment *env) const

Static Public Member Functions

static MathStatementCreate (const csString &expression, const char *name)

Protected Member Functions

 MathStatement ()

Protected Attributes

csString assignee
 variable the result will be assinged to

Detailed Description

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.


Constructor & Destructor Documentation

MathStatement::MathStatement ( ) [inline, protected]

Definition at line 407 of file mathscript.h.


Member Function Documentation

static MathStatement* MathStatement::Create ( const csString &  expression,
const char *  name 
) [static]
double MathStatement::Evaluate ( MathEnvironment env) const [virtual]

Reimplemented from MathExpression.


Member Data Documentation

csString MathStatement::assignee [protected]

variable the result will be assinged to

Definition at line 409 of file mathscript.h.


The documentation for this class was generated from the following file: