Class PondreReine

java.lang.Object
fr.formiko.formiko.interfaces.PondreReine
All Implemented Interfaces:
Pondre, Serializable

public class PondreReine extends Object implements Serializable, Pondre
Ant queen implementation.
Allow an ant queen to lay
Author:
Hydrolien
See Also:
  • Field Details

    • FOOD_COST_TO_LAY

      private static int FOOD_COST_TO_LAY
    • f

      private Fourmi f
  • Constructor Details

    • PondreReine

      public PondreReine()
  • Method Details

    • unePonte

      public void unePonte(Creature c)
      Lay an egg with Creature c
      Specified by:
      unePonte in interface Pondre
    • canLay

      public boolean canLay(Creature c)
      Return true if can lay an egg.
      Specified by:
      canLay in interface Pondre
    • pondre

      protected void pondre()
      Lay an egg.
    • choixType

      protected byte choixType()
      Choose a typeF for the egg.