Interface AIBrain.Action

All Known Implementing Classes:
AIBrain.Both, AIBrain.Chase, AIBrain.Hop, AIBrain.Idle, AIBrain.Patrol, AIBrain.Shoot
Enclosing class:
AIBrain

public static interface AIBrain.Action
Produces input for one tick.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    act(AIBrain brain, Actor self, PlatformWorld world)
    Computes this tick's buttons.
  • Method Details

    • act

      int act(AIBrain brain, Actor self, PlatformWorld world)

      Computes this tick's buttons.

      Parameters
      • brain: the brain, for its timers and target
      • self: the actor
      • world: the world
      Returns

      Input bits