evolution
Interface Evolver
- All Known Implementing Classes:
- Construction, CreationPower, Evolution.LivingBeingTester, Human, SquareOfLand
- public interface Evolver
Interface for objects which want to register by the Evolution manager.
Method Summary |
void | evolve(double value) This method is called when the Evolver should evolve to the
next state. |
double | getPriority() Return the priority of this evolver |
double | maxEnergyProduction(Map maxProduction, Map leftOver) Return the maximum energy production of this evolver. |
boolean | producesEnergy() Check whether this evolver produces energy or not. |
evolve
public void evolve(double value)
- This method is called when the Evolver should evolve to the
next state.
getPriority
public double getPriority()
- Return the priority of this evolver
maxEnergyProduction
public double maxEnergyProduction(Map maxProduction, Map leftOver)
- Return the maximum energy production of this evolver.
- Parameters:
- maxProduction - A (String, Double) map wich holds the maximal
production of worldresources.
- leftOver - A (String, Double) map wich holds the actual status
of worldresources in calculating the maximum energy production.
producesEnergy
public boolean producesEnergy()
- Check whether this evolver produces energy or not.