Class LogicVariable
- Namespace
- RandomizerCore.Logic
- Assembly
- RandomizerCore.dll
Terms in logic which require external computation. Cast to a derived class to evaluate. Main subclasses are currently LogicInt and StateModifier.
public abstract class LogicVariable : ILogicVariable
- Inheritance
-
LogicVariable
- Implements
- Derived
- Inherited Members
Fields
FALSE
Return this to implement bool-like behavior in a LogicVariable constrained to returning int.
public const int FALSE = 0
Field Value
TRUE
Return this to implement bool-like behavior in a LogicVariable constrained to returning int.
public const int TRUE = 1
Field Value
Properties
Name
The name of the variable. Should match its usage in logic.
public abstract string Name { get; }
Property Value
Methods
GetTerms()
The terms which could possibly alter the evaluation of the variable.
public abstract IEnumerable<Term> GetTerms()
Returns
ToString()
public override string ToString()