Interface AIBrain.Decision

All Known Implementing Classes:
AIBrain.After, AIBrain.Chance, AIBrain.HealthAtMost, AIBrain.Not, AIBrain.TargetWithin
Enclosing class:
AIBrain

public static interface AIBrain.Decision
A condition that switches state.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    decide(AIBrain brain, Actor self, PlatformWorld world)
    Whether the transition should fire.
  • Method Details

    • decide

      boolean decide(AIBrain brain, Actor self, PlatformWorld world)

      Whether the transition should fire.

      Parameters
      • brain: the brain
      • self: the actor
      • world: the world
      Returns

      true to switch