Class AIBrain.Chance

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

public static final class AIBrain.Chance extends Object implements AIBrain.Decision
Holds with a chance per tick, drawn from the world's deterministic Rng.
  • Constructor Details

    • Chance

      public Chance(int perThousand)

      A random check.

      Parameters
      • perThousand: the chance per tick, out of 1000
  • Method Details