Class EvoluerFourmi

java.lang.Object
fr.formiko.formiko.interfaces.EvoluerFourmi
All Implemented Interfaces:
Evoluer, Serializable

public class EvoluerFourmi extends Object implements Serializable, Evoluer
Ant implementation.
Allow an ant to do grow up passing through stages egg, larva, nymph, imago.
Author:
Hydrolien
See Also:
  • Constructor Details

    • EvoluerFourmi

      public EvoluerFourmi()
  • Method Details

    • evoluer

      public void evoluer(Creature c)
      ant grow up.
      An Ant will grow up 3 time from stade -3 to 0.
      The last grow up is a bit special bexause il allow ant to do new action as PondreReine or TrophallaxieFourmi if getStade is ok & ant species is able to do it.
      Every grow up put age before next stade or death to 0. Change maxAge (max age). Change maxAction if ant is now able to do action. Change maxFood (max food).
      Specified by:
      evoluer in interface Evoluer
      Parameters:
      c - The growing up ant.