C# Class Danmaku_no_Kyojin.BulletEngine.Equationator.EquationNode

Inheritance: BaseNode
Afficher le fichier Open project: Noxalus/Danmaku-no-Kyojin Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
EquationNode ( ) : System

Initializes a new instance of the Equationator.FunctionNode class.

ParseNegativeToken ( List tokenList, int &curIndex, Equation owner ) : BaseNode

This method gets called when the token parser encounters a minus sign in front of a value. If the next token is a number, it will be changed to a negative number. If the next token is a funcion, param, or equation, an equation will be generated that multiplies the result by -1

Solve ( ParamDelegate paramCallback ) : float

Solve the equation! This method recurses into the whole tree and returns a result from the equation.

Méthodes protégées

Méthode Description
ParseToken ( List tokenList, int &curIndex, Equation owner ) : void

Parse the specified tokenList and curIndex. overloaded by child types to do there own specific parsing.

Method Details

EquationNode() public méthode

Initializes a new instance of the Equationator.FunctionNode class.
public EquationNode ( ) : System
Résultat System

ParseNegativeToken() public static méthode

This method gets called when the token parser encounters a minus sign in front of a value. If the next token is a number, it will be changed to a negative number. If the next token is a funcion, param, or equation, an equation will be generated that multiplies the result by -1
public static ParseNegativeToken ( List tokenList, int &curIndex, Equation owner ) : BaseNode
tokenList List Token list.
curIndex int Current index.
owner Equation Owner.
Résultat BaseNode

ParseToken() protected méthode

Parse the specified tokenList and curIndex. overloaded by child types to do there own specific parsing.
protected ParseToken ( List tokenList, int &curIndex, Equation owner ) : void
tokenList List Token list.
curIndex int Current index.
owner Equation the equation that this node is part of. required to pull function delegates out of the dictionary
Résultat void

Solve() public méthode

Solve the equation! This method recurses into the whole tree and returns a result from the equation.
public Solve ( ParamDelegate paramCallback ) : float
paramCallback ParamDelegate Parameter callback that will be used to get teh values of parameter nodes.
Résultat float