Changes

140 bytes added ,  22:45, 28 March 2023
Line 10: Line 10:     
== Behaviors ==
 
== Behaviors ==
Behaviors are Brain's equivalent of Goals, constructed using a map of MemoryModuleTypes and MemoryStatus that dictates whether or not the Behavior can start executing. They can also be given a min and/or max runtime duration in ticks, automatically terminating at a timestamp randomly determined by the supplied runtime duration value(s). The "checkExtraStartConditions", "start", "canStillUse", and "stop" methods correspond to Goal's "canUse", "start", "canContinueToUse" and "stop" methods, respectively.
+
Behaviors are Brain's equivalent of Goals, constructed using a map of MemoryModuleTypes to MemoryStatus that dictates whether or not the Behavior can start executing based on the presence or absence of specific Memory Module. The equivalent to this in Goals is the Flags passed in to the "setFlags" method.
 +
 
 +
They can also be given a min and/or max runtime duration in ticks, automatically terminating at a timestamp randomly determined by the supplied runtime duration value(s). The "checkExtraStartConditions", "start", "canStillUse", and "stop" methods correspond to Goal's "canUse", "start", "canContinueToUse" and "stop" methods, respectively.
    
== Activities ==
 
== Activities ==
 
Activities are used to differentiate sets of Behaviors to allow for further complexity of an entity's AI. An Activity can be added to a Brain along with the Behaviors it contains, as well as the Memory Module entry conditions for the Activity and any Memory Modules that should be erased upon termination of the Activity.
 
Activities are used to differentiate sets of Behaviors to allow for further complexity of an entity's AI. An Activity can be added to a Brain along with the Behaviors it contains, as well as the Memory Module entry conditions for the Activity and any Memory Modules that should be erased upon termination of the Activity.
17

edits