Atom<T1, T2>
A class in Root.Township, Alta.Intelligence.
A named AI logic atom that takes two terms. Define turns it into a weighted definition the AI can reason with.
- Listed in Creatures and AI
- Inherits or implements
BaseAtom
Constructors
| Member | What it is |
|---|---|
Atom(string name) | Creates an Atom from name. |
Methods
| Member | What it is |
|---|---|
BaseAtom.Definition Define(T1 term1, T2 term2, float weighting = 1) | Builds a definition testing the two terms, with an optional goal predicate (true by default) and a weighting. |
BaseAtom.Definition Define(T1 term1, T2 term2, Predicate goal, float weighting = 1) | Builds a definition testing the two terms, with an optional goal predicate (true by default) and a weighting. |
static Atom<T1, T2> op_Implicit(string name) | Makes an atom from its name. |
Used in
Members of other types that take, return or hold a Atom<T1, T2>: