AiMalgam Core 1.1.0
API documentation for the generic Unity3D AI System
|
A specific AiMalgamBaseLemma to represent a state node in the AiMalgamNodeGraph More...
Public Attributes | |
AiMalgamState | output = default |
Used in the AiMalgamNodeGraph. Do not temper with it! | |
Public Attributes inherited from NikosAssets.AiMalgam.Settings.AiMalgamBaseLemma | |
AiMalgamBaseLemma | parent |
Build a hierarchy or group of Lemma(s) to categorize them and enable more advanced Lemma comparisons | |
Additional Inherited Members | |
Public Member Functions inherited from NikosAssets.AiMalgam.Settings.AiMalgamBaseLemma | |
virtual bool | AddChild (AiMalgamBaseLemma child) |
Adds a Lemma as a child in Children distinct. Also updates the IsLeaf property More... | |
virtual bool | RemoveChild (AiMalgamBaseLemma child, bool clearParentOfChild=true) |
Removes the child from Children and optionally clears its AiMalgamBaseLemma.parent. Also updates the IsLeaf property More... | |
virtual void | ClearChildren (bool clearParentOfChildren=true) |
Clears the Children and resets their parents, if clearParentOfChildren == true More... | |
virtual bool | IsAncestorOrSelf (AiMalgamBaseLemma ancestor) |
Checks if ancestor is this Lemma or matches an ancestor (some parent along the hierarchy) More... | |
virtual bool | InLemma< BaseLemma > (BaseLemma matchingLemma, bool traverseAncestorsOfThis=true) |
Checks if the given matchingLemma matches this (or this hierarchy, if traverseAncestorsOfThis == true) More... | |
Public Member Functions inherited from NikosAssets.AiMalgam.Settings.AiMalgamNode | |
override void | OnOpen () |
Called if the AiMalgamNodeGraph hosting this Node is opened | |
virtual void | NotifyOnNodeChanged () |
A helper method to notify node value changes and emit the OnNodeChanged event | |
override object | GetValue (NodePort port) |
Used in the AiMalgamNodeGraph. More... | |
virtual void | ResetMarkingInGraph (AiMalgamEntity requester, bool forceRepaint=false) |
EDITOR ONLY EFFECT. Reset the node's visuals in the AiMalgamNodeGraph More... | |
virtual void | MarkInGraph (AiMalgamEntity requester, bool acceptedOrFailed, bool forceRepaint=false) |
EDITOR ONLY EFFECT. Set the node's visuals in the AiMalgamNodeGraph (accepted or failed) More... | |
virtual void | MarkInGraph (AiMalgamEntity requester, Color markColor, bool forceRepaint=false) |
EDITOR ONLY EFFECT. Set the node's visuals in the AiMalgamNodeGraph More... | |
Static Public Member Functions inherited from NikosAssets.AiMalgam.Settings.AiMalgamBaseLemma | |
static bool | OneLemmaMatchesAny< BaseLemma > (BaseLemma mainLemma, List< BaseLemma > matchingLemmas, bool traverseAncestorsOfMainLemma=true) |
Checks if the given matchingLemmas match the mainLemma (or its hierarchy, if traverseAncestorsOfMainLemma == true). Any/ At least one More... | |
static bool | AnyLemmaMatch< BaseLemma > (List< BaseLemma > mainLemmas, List< BaseLemma > matchingLemmas, bool traverseAncestorsOfMainLemmas=true) |
Checks if the given matchingLemmas match the mainLemmas (or their hierarchy, if traverseAncestorsOfMainLemmas == true). Any/ At least one More... | |
static bool | AnyLemmaMatchesOne< BaseLemma > (List< BaseLemma > mainLemmas, BaseLemma matchingLemma, bool traverseAncestorsOfMainLemmas=true) |
Checks if the given matchingLemma matches the mainLemmas (or their hierarchy, if traverseAncestorsOfMainLemmas == true). Any/ At least one More... | |
static bool | AllLemmasMatch< BaseLemma > (List< BaseLemma > mainLemmas, List< BaseLemma > matchingLemmas, bool traverseAncestorsOfMainLemmas=true) |
Checks if the given matchingLemmas match the mainLemmas (or their hierarchy, if traverseAncestorsOfMainLemmas == true). All must match! More... | |
static bool | AllLemmasMatchOne< BaseLemma > (List< BaseLemma > mainLemmas, BaseLemma matchingLemma, bool traverseAncestorsOfMainLemmas=true) |
Checks if the given matchingLemma matches the mainLemmas (or their hierarchy, if traverseAncestorsOfMainLemmas == true). All must match! More... | |
Protected Member Functions inherited from NikosAssets.AiMalgam.Settings.AiMalgamBaseLemma | |
override void | Reset () |
override void | OnEnable () |
override void | OnValidate () |
Protected Member Functions inherited from NikosAssets.AiMalgam.Settings.AiMalgamNode | |
override void | Reset () |
override void | OnEnable () |
override void | Awake () |
override void | OnValidate () |
Protected Attributes inherited from NikosAssets.AiMalgam.Settings.AiMalgamBaseLemma | |
string | _label = "Default Label 1243" |
The label to generate the LabelHash and use for lemma comparisons | |
ulong | _labelHash = 0 |
The hashed label (string to INT64) for faster comparisons | |
AiMalgamBaseLemma | _oldParent |
Used to update the _children if the hierarchy changed | |
bool | _isLeaf = true |
Does this Lemma have any children (false) otherwise (true)? | |
bool | _isRoot = true |
Does this Lemma have a parent (false) otherwise (true)? | |
List< AiMalgamBaseLemma > | _children = new List<AiMalgamBaseLemma>() |
The child Lemmas of this Lemma to represent a Lemma hierarchy | |
Properties inherited from NikosAssets.AiMalgam.Settings.AiMalgamBaseLemma | |
virtual string | Label [get, set] |
The label to generate the LabelHash and use for lemma comparisons. Setting this property will generate the LabelHash automatically | |
virtual ulong | LabelHash [get] |
The hashed label (string to INT64) for faster comparisons | |
bool | IsLeaf [get] |
Does this Lemma have any children (false) otherwise (true)? | |
bool | IsRoot [get] |
Does this Lemma have a parent (false) otherwise (true)? | |
List< AiMalgamBaseLemma > | Children [get] |
The child Lemmas of this Lemma to represent a Lemma hierarchy | |
Events inherited from NikosAssets.AiMalgam.Settings.AiMalgamNode | |
virtual Action< AiMalgamNode > | OnNodeChanged |
Emitted, if the node values where changed (OnValidate()) | |
A specific AiMalgamBaseLemma to represent a state node in the AiMalgamNodeGraph