| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
evolution.KnowledgeCatalog | +--evolution.lands.LandKnowledgeCatalog
Field Summary | |
protected static LandKnowledgeCatalog | instance Instance of the singleton. |
Constructor Summary | |
protected | LandKnowledgeCatalog(String fileName) Create a new KnowledgeCatalog from the given file. |
Method Summary | |
Map | generateLandResources(String landName) Generate a hash of resource names and a reference to such a land resource, populated for the given landType. |
List | getInitLandTypes() The landtypes which may appear on the initial map in this game. |
static LandKnowledgeCatalog | getInst() Return the instance of this singleton. |
List | getLandTypes() The landtypes in this game. |
String | getRandomType() Return a random landtype. |
static void | initialize(String fileName) Initialize this singleton from the given file. |
LandResource | instantiateLandResource(String resName, Double value, String land) Instantiate a LandResource. |
boolean | isEvolver(String landType) Is the given landtype an auto-transformer? |
protected void | parseInitLandTypes(String landTypesString) Parse a initial landtypes string. |
protected void | parseLandTypes(String landTypesString) Parse a landtypes string. |
protected List | parseLandTypesInto(String landTypesString, List retain) Parse a landtypes string. |
double | transformationSpeed(String landType) With which speed will this landtype auto-transform to the given landtype. |
Map | transformsLandResources(String landType) Which land resource transforms into which land resource. |
String | transformsTo(String landType) To which landtype will this landtype transform automatically? Returns the given landtype if it doesn't auto-transform. |
Methods inherited from class evolution.KnowledgeCatalog |
dlClassForName, extractArgument, extractName, extractValue, getFileName, getProperty, getProperty, getResourcePath, isInitialized, makeStringDoubleMap, setResourcePath, split, stripPathFromClassName, stripPathFromClassName, stripPathFromClassName |
Field Detail |
protected static LandKnowledgeCatalog instance
Constructor Detail |
protected LandKnowledgeCatalog(String fileName)
throws java.io.FileNotFoundException,
java.io.IOException
Method Detail |
public Map generateLandResources(String landName)
public List getInitLandTypes()
public static LandKnowledgeCatalog getInst()
public List getLandTypes()
public String getRandomType()
public static void initialize(String fileName)
throws java.io.FileNotFoundException,
java.io.IOException
public LandResource instantiateLandResource(String resName, Double value, String land)
public boolean isEvolver(String landType)
protected void parseInitLandTypes(String landTypesString)
protected void parseLandTypes(String landTypesString)
protected List parseLandTypesInto(String landTypesString, List retain)
public double transformationSpeed(String landType)
public Map transformsLandResources(String landType)
public String transformsTo(String landType)
Association Links |
to Class java.util.List
to Class evolution.lands.LandKnowledgeCatalog
| a gvijf production | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |