AiMalgam Core 1.1.0
API documentation for the generic Unity3D AI System
Public Member Functions | Public Attributes | Properties | List of all members
NikosAssets.AiMalgam.Settings.Conditions.AiMalgamANDConditionsContainer Class Reference

A specific AiMalgamBaseCondition that can reference multiple conditions, which all have to succeed in order for this condition to succeed More...

Public Member Functions

override AiMalgamConditionResult IsConditionMetFor (AiMalgamEntity targetAiMalgamEntity, AiMalgamEntity conditionsRequesterEntity)
 Checks if the targetAiMalgamEntity validates every AiMalgamBaseCondition in this Conditions list More...
 
virtual AiMalgamConditionResult IsConditionMetFor (AiMalgamEntity targetAiMalgamEntity, AiMalgamEntity conditionsRequesterEntity)
 Inherit this and implement your custom condition! 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...
 

Public Attributes

AiMalgamConditionsListWrapper andConditions = new AiMalgamConditionsListWrapper()
 The AiMalgamBaseCondition list wrapper where each condition must validate in order for this condition to succeed
 
- Public Attributes inherited from NikosAssets.AiMalgam.Settings.Conditions.AiMalgamBaseCondition
AiMalgamBaseCondition output
 Used in the AiMalgamNodeGraph. Do not temper with it!
 

Properties

List< AiMalgamBaseConditionConditions [get]
 The AiMalgamBaseCondition list where each condition must validate in order for this condition to succeed
 

Additional Inherited Members

- Protected Member Functions inherited from NikosAssets.AiMalgam.Settings.AiMalgamNode
override void Reset ()
 
override void OnEnable ()
 
override void Awake ()
 
override void OnValidate ()
 
- Events inherited from NikosAssets.AiMalgam.Settings.AiMalgamNode
virtual Action< AiMalgamNodeOnNodeChanged
 Emitted, if the node values where changed (OnValidate())
 

Detailed Description

A specific AiMalgamBaseCondition that can reference multiple conditions, which all have to succeed in order for this condition to succeed

Member Function Documentation

◆ IsConditionMetFor()

override AiMalgamConditionResult NikosAssets.AiMalgam.Settings.Conditions.AiMalgamANDConditionsContainer.IsConditionMetFor ( AiMalgamEntity  targetAiMalgamEntity,
AiMalgamEntity  conditionsRequesterEntity 
)
virtual

Checks if the targetAiMalgamEntity validates every AiMalgamBaseCondition in this Conditions list

Parameters
targetAiMalgamEntityThe AiMalgamEntity to check the conditions on
conditionsRequesterEntityThe AiMalgamEntity that requests this condition to be made (can be the same as targetAiMalgamEntity )
Returns
AiMalgamANDConditionsResult

Reimplemented from NikosAssets.AiMalgam.Settings.Conditions.AiMalgamBaseCondition.