evolution.constructions
Class CoalMine

evolution.constructions.Construction
  |
  +--evolution.constructions.CoalMine

public class CoalMine
extends Construction

Class of coal mines.


Constructor Summary
CoalMine(SquareOfLand sl)
          Constructor of a Coalmine

Method Summary
 protected void_evolve(double value)
          The template evolve method.
 doublegetCapacity()
          Returns the capacity of this mine.
 protected ListgetCoalContainingSquares(List list)
          method that takes as input a list of squaresofland and returns a list of those squaresofland containing coals
 ListgetCoalContainingSquares()
          Returns the list of squares containing coals associated with the coalmine.

Methods inherited from class evolution.constructions.Construction
construct, doChecks, evolve, getConstructionState, getInfo, getName, getPriority, getProducesResources, getSize, getSquares, getState, getUsesLandResources, getUsesResources, hasEnoughResources, isBeingBuild, isProduction, isWorking, maxEnergyProduction, modifyLandResources, modifyResources, producesEnergy, producesResourcesNames, setSquares, setWorking, signalStateChange

Constructor Detail

CoalMine

public CoalMine(SquareOfLand sl)
Constructor of a Coalmine
Method Detail

_evolve

protected void _evolve(double value)
The template evolve method.

getCapacity

public double getCapacity()
Returns the capacity of this mine.

getCoalContainingSquares

protected List getCoalContainingSquares(List list)
method that takes as input a list of squaresofland and returns a list of those squaresofland containing coals

getCoalContainingSquares

public List getCoalContainingSquares()
Returns the list of squares containing coals associated with the coalmine.

Association Links

to Class java.util.List

A list of all the SquaresOfLand associated with the coalmine that contains coals.

a gvijf production