evolution.constructions
Class SimpleConstruction
evolution.constructions.Construction
|
+--evolution.constructions.SimpleConstruction
- public class SimpleConstruction
- extends Construction
A meta-instance of a Construction.
Used for all constructions which can be completely defined in the propfiles.
Constructor Summary |
SimpleConstruction(String name, List squares) Create a simple construction. |
Method Summary |
void | _evolve(double value) The template evolve method. |
String | getName() The name of this construction. |
protected void | setName(String name) Set the name of this construction. |
Methods inherited from class evolution.constructions.Construction |
construct, doChecks, evolve, getConstructionState, getInfo, getPriority, getProducesResources, getSize, getSquares, getState, getUsesLandResources, getUsesResources, hasEnoughResources, isBeingBuild, isProduction, isWorking, maxEnergyProduction, modifyLandResources, modifyResources, producesEnergy, producesResourcesNames, setSquares, setWorking, signalStateChange |
SimpleConstruction
public SimpleConstruction(String name, List squares)
- Create a simple construction.
_evolve
public void _evolve(double value)
- The template evolve method.
getName
public String getName()
- The name of this construction.
setName
protected void setName(String name)
- Set the name of this construction.
to Class java.lang.String- The name of this construction.