Term
An abstract class in Root.Township, Alta.Intelligence.
Base of terms in the AI's logic system (atoms, variables, compounds). Unify matches two terms in the Prolog style.
- Listed in Creatures and AI
- Inherits or implements
ITerm - Derived types
BaseAtom,CompoundPart,Variable - Attributes
DebuggerDisplay
Constructors
| Member | What it is |
|---|---|
protected Term() | Creates a Term with default values. |
Methods
| Member | What it is |
|---|---|
virtual ITerm CheckBind(Dictionary<ITerm, ITerm> bindings) | What this term is bound to in the bindings, or the term itself. |
virtual void ConstantInitialize(IAtomDefinition definion) | Hook to set a term up against its atom definition. Empty here; Variable overrides it. |
abstract bool Contains(ITerm other) | True if this term is or contains the other term. |
static Term op_Implicit(int variableIndex) | Turns an int into a Variable with that index. |
static Dictionary<ITerm, ITerm> Unify(ITerm a, ITerm b) | Returns the variable bindings that make the two terms equal, or null if they can't match. |