evolution.constructions
Class CoalMine
evolution.constructions.Construction
|
+--evolution.constructions.CoalMine
- public class CoalMine
- extends Construction
Class of coal mines.
Method Summary |
protected void | _evolve(double value) The template evolve method. |
double | getCapacity() Returns the capacity of this mine. |
protected List | getCoalContainingSquares(List list) method that takes as input a list of squaresofland and
returns a list of those squaresofland containing coals |
List | getCoalContainingSquares() 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 |
public CoalMine(SquareOfLand sl)
- Constructor of a Coalmine
_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.
to Class java.util.List- A list of all the SquaresOfLand associated with the coalmine
that contains coals.