Class ChasseNull

java.lang.Object
fr.formiko.formiko.interfaces.ChasseNull
All Implemented Interfaces:
Chasse, Serializable

public class ChasseNull extends Object implements Serializable, Chasse
A null implementation.
It print an error for all the methode of implemented class.
It allow to avoid error of null implementation.
Author:
Hydrolien
See Also:
  • Constructor Details

    • ChasseNull

      public ChasseNull()
  • Method Details

    • chasse

      public boolean chasse(Creature c)
      If lauch print an error.
      Specified by:
      chasse in interface Chasse
    • chasser

      public boolean chasser(Creature c, int directionSiPasDeProie)
      If lauch print an error.
      Specified by:
      chasser in interface Chasse
    • canHuntMore

      public boolean canHuntMore(Creature c)
      If lauch print an error.
      Specified by:
      canHuntMore in interface Chasse
    • havePreyOnSameSquare

      public boolean havePreyOnSameSquare(Creature c)
      Return true if there is prey on same square.
      Specified by:
      havePreyOnSameSquare in interface Chasse