Interface Chasse

All Superinterfaces:
Serializable
All Known Implementing Classes:
ChasseGranivore, ChasseHerbivore, ChasseInsectivore, ChasseNull

public interface Chasse extends Serializable
hunt.
Allow a Creature to hunt other creature
Author:
Hydrolien
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Default implementation that do nothing.
    default boolean
    Default implementation that always return false.
    default boolean
    Default implementation that always return false.
    default boolean
    check if can hunt.
    boolean
     
    boolean
    chasser(Creature c, int directionSiPasDeProie)
     
    default void
    Default implementation that do nothing.
    boolean
    Return true if there is prey on same square.
    default void
    Lower creature actions count.
  • Method Details

    • chasse

      boolean chasse(Creature c)
    • chasser

      boolean chasser(Creature c, int directionSiPasDeProie)
    • havePreyOnSameSquare

      boolean havePreyOnSameSquare(Creature c)
      Return true if there is prey on same square.
    • canHuntMore

      default boolean canHuntMore(Creature c)
      check if can hunt.
    • setActionMoins

      default void setActionMoins(Creature c)
      Lower creature actions count.
    • canEatSeed

      default boolean canEatSeed()
      Default implementation that always return false.
    • canBreakSeed

      default boolean canBreakSeed()
      Default implementation that always return false.
    • eatSeed

      default void eatSeed()
      Default implementation that do nothing.
    • breakSeed

      default void breakSeed()
      Default implementation that do nothing.