Package fr.formiko.formiko.interfaces
Class EvoluerFourmi
java.lang.Object
fr.formiko.formiko.interfaces.EvoluerFourmi
- All Implemented Interfaces:
Evoluer
,Serializable
Ant implementation.
Allow an ant to do grow up passing through stages egg, larva, nymph, imago.
Allow an ant to do grow up passing through stages egg, larva, nymph, imago.
- Author:
- Hydrolien
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EvoluerFourmi
public EvoluerFourmi()
-
-
Method Details
-
evoluer
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).
-