Class AIBrain.TargetWithin

java.lang.Object
com.codename1.gaming.platformer.AIBrain.TargetWithin
All Implemented Interfaces:
AIBrain.Decision
Enclosing class:
AIBrain

public static final class AIBrain.TargetWithin extends Object implements AIBrain.Decision
Holds when the player is within a distance, and optionally in front.
  • Constructor Details

    • TargetWithin

      public TargetWithin(int range, boolean inFront)

      A range check.

      Parameters
      • range: the distance, fixed point, measured on each axis
      • inFront: whether the player must also be on the facing side
  • Method Details