| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
evolution.KnowledgeCatalog | +--evolution.EvolutionKnowledgeCatalog
The general Evolution KnowledgeCatalog.
Field Summary | |
protected static EvolutionKnowledgeCatalog | instance Instance of the singleton. |
Constructor Summary | |
protected | EvolutionKnowledgeCatalog(String fileName) Create a new KnowledgeCatalog from the given file. |
Method Summary | |
double | calcGoal(Map resources) Calculate the current goal from a list of given resources. |
double | getCreationIncrease() Return the amount by which the player's creationpower increases on every clocktick. |
int | getDefaultVisionRange() Return the default vision range. |
double | getHumanCreationDecrease() Return the amount by which the player's creationpower decreases whenever he creates a human. |
double | getInitCreationPower() Return the initial creationpower of a player. |
static EvolutionKnowledgeCatalog | getInst() Return the instance of this singleton. |
double | getMaxCreationPower() Return the maximum amount of creationpower. |
static void | initialize(String fileName) Initialize this singleton from the given file. |
protected void | parseWeights(String weightsString) Parse the weightsline for the goal from the config file. |
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 EvolutionKnowledgeCatalog instance
Constructor Detail |
protected EvolutionKnowledgeCatalog(String fileName)
throws java.io.IOException,
java.io.FileNotFoundException
Method Detail |
public double calcGoal(Map resources)
public double getCreationIncrease()
public int getDefaultVisionRange()
public double getHumanCreationDecrease()
public double getInitCreationPower()
public static EvolutionKnowledgeCatalog getInst()
public double getMaxCreationPower()
public static void initialize(String fileName)
throws java.io.FileNotFoundException,
java.io.IOException
protected void parseWeights(String weightsString)
Association Links |
to Class evolution.EvolutionKnowledgeCatalog
| a gvijf production | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |