io.github.srs.model.entity.dynamicentity.behavior
Members list
Type members
Classlikes
Input context for behavior evaluation. Designed to be extended as new behaviors need more information.
Input context for behavior evaluation. Designed to be extended as new behaviors need more information.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
object BehaviorTypes
Core types for the Behavior DSL
Core types for the Behavior DSL
- Behavior — total, pure decision (
I => A
viaKleisli[Id, I, A]
) - PartialBehavior — partial decision (
I => Option[A]
viaKleisli[Option, I, A]
) - Condition — boolean predicate on the input
Partial behaviors compose left-biased (first Some
wins) and are finalized into total behaviors via the DSL’s orElse.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
BehaviorTypes.type
A Policy selects the next Action purely, based only on the provided BehaviorContext and returns the next RNG alongside the action.
A Policy selects the next Action purely, based only on the provided BehaviorContext and returns the next RNG alongside the action.
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
In this article