Interface SwimGoal

All Superinterfaces:
Goal<Agent>

public interface SwimGoal extends Goal<Agent>
  • Method Details

    • builder

      static SwimGoal.Builder builder()
      Creates a new SwimGoal.Builder to build a new SwimGoal.
      Returns:
      A new builder
    • swimChance

      float swimChance()
      Gets the chance that the owning Agent will perform a "jump". The chance is limited between 0 and 1, to where the higher the chance, the more likely the entity will "jump" to appear "swimming".
      Returns:
      The chance that the owning entity will "swim"
    • setSwimChance

      void setSwimChance(float chance)
      Sets the chance that the owning Agent will perform a "jump". The chance is limited between 0 and 1, to where the higher the chance, the more likely the entity will "jump" to appear "swimming".
      Parameters:
      chance - The chance that the entity will "swim"