| Package | Description |
|---|---|
| ch.sahits.game.openpatrician.model.city | |
| ch.sahits.game.openpatrician.model.city.impl |
| Modifier and Type | Field and Description |
|---|---|
private Map<EWare,Map<EPopulationClass,Double>> |
PopulationConsume.needs
Store the amounts
|
| Modifier and Type | Method and Description |
|---|---|
static EPopulationClass |
EPopulationClass.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EPopulationClass[] |
EPopulationClass.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
double |
PopulationConsume.getNeed(IWare ware,
EPopulationClass popClass,
int popSize)
Retrieve the amount needed of a ware by a population class of the size
|
int |
ICity.getPopulation(EPopulationClass popclass)
Retrieve the current population of the city by class
|
javafx.beans.property.IntegerProperty |
ICity.getPopulationProperty(EPopulationClass popclass)
Retrieve the population count for a class
|
void |
ICity.setPopulation(int population,
EPopulationClass popClass)
Set the population by class
|
| Modifier and Type | Field and Description |
|---|---|
private Map<EPopulationClass,javafx.beans.property.IntegerProperty> |
City.population
Holding the population split by population classes
|
| Modifier and Type | Method and Description |
|---|---|
int |
City.getPopulation(EPopulationClass popclass)
Retrieve the population count for a class
|
javafx.beans.property.IntegerProperty |
City.getPopulationProperty(EPopulationClass popclass) |
void |
City.setPopulation(int population,
EPopulationClass popClass)
Set the population count for a apopulation class
|
Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.