evolution
Class CreationPower


public class CreationPower
implements Evolver

The creation power of the player. This is an indication for the number of humans that the player can create.


Constructor Summary
CreationPower()
          Constructor of creation power.

Method Summary
 voiddecreasePowerHuman()
          Decrease the CreationPower of the player.
 voidevolve(double value)
          Adjust the amount of CreationPower on every clocktick.
 doublegetAmount()
          Return the amount of CreationPower of the player.
 doublegetPriority()
          Return the priority of this evolver.
 doublemaxEnergyProduction(Map m1, Map m2)
          Return the maximum energy production of this evolver.
 booleanproducesEnergy()
          Check whether this evolver produces energy.

Constructor Detail

CreationPower

public CreationPower()
Constructor of creation power.
Method Detail

decreasePowerHuman

public void decreasePowerHuman()
throws CreationPowerInsufficientException
Decrease the CreationPower of the player.

evolve

public void evolve(double value)
Adjust the amount of CreationPower on every clocktick.

getAmount

public double getAmount()
Return the amount of CreationPower of the player.

getPriority

public double getPriority()
Return the priority of this evolver.

maxEnergyProduction

public double maxEnergyProduction(Map m1, Map m2)
Return the maximum energy production of this evolver.

producesEnergy

public boolean producesEnergy()
Check whether this evolver produces energy.

a gvijf production