Or
A class in Root.Township, Alta.Intelligence.
Logical OR in the unused Prolog-like logic engine: yields every result of the left side, then every result of the right.
- Listed in Creatures and AI
- Inherits or implements
Operator - Attributes
DebuggerDisplay
Constructors
| Member | What it is |
|---|---|
Or(Predicate left, Predicate right) | Creates an Or from left and right. |
Methods
| Member | What it is |
|---|---|
override Result Resolve(Result a, Result b) | Always null. Or overrides evaluation so it never combines results. |
override string ToString() | Shows the two sides joined with |. |
protected override IEnumerable<Result> EvaluateInternal(KnowledgeHolder knowledgeHolder) (iterator) | Yields all left results, then all right results. |
protected override Predicate FromCompoundPart(CompoundPart compoundPart) | Rebuilds an Or from bound parts when variables are substituted. |