ITerm
An interface in Root.Township, Alta.Intelligence.
A term in the small Prolog-style logic engine in Alta.Intelligence (atoms, variables, compounds). Probably not used by the shipped creatures; nothing outside that namespace uses it.
- Listed in Creatures and AI
- Derived types
Compound,DataAtom<T>,IData<T>,Predicate,Term,Variable<T>
Methods
| Member | What it is |
|---|---|
ITerm CheckBind(Dictionary<ITerm, ITerm> bindings) | Returns the term with any bound variables replaced from the given bindings. |
void ConstantInitialize(IAtomDefinition definion) | Called when a definition is created, so variables know which definition they belong to. |
bool Contains(ITerm other) | Whether this term is or contains the other term. |
Used in
Members of other types that take, return or hold a ITerm:
Atom.Define, BaseAtom.Contains, BaseAtom.Test, Compound.Compound, CompoundPart.CompoundPart, CompoundPart.Contains, CompoundPart.First, CompoundPart.Remaining, ICompoundPart.First, ICompoundPart.Remaining, Intelligence.Attacked, Intelligence.AttackedLocated, Intelligence.Equal, Intelligence.Hates, Intelligence.IsLocated, Intelligence.Owner, Intelligence.Owns, IntelligenceExtensionMethods.ConstantInitialize, Predicate.Alta.Intelligence.ICompoundPart.First, Predicate.Alta.Intelligence.ICompoundPart.Remaining, Predicate.CheckBind, Predicate.Contains, Predicate.Predicate, Predicate.Terms, Result.Bindings, Result.Result, Term.CheckBind, Term.Contains, Term.Unify, Variable.Contains.