Uses of Class
ch.sahits.game.openpatrician.model.city.EPopulationClass
-
-
Uses of EPopulationClass in ch.sahits.game.openpatrician.clientserverinterface.service
Methods in ch.sahits.game.openpatrician.clientserverinterface.service that return types with arguments of type EPopulationClass Modifier and Type Method Description java.util.Map<EPopulationClass,java.lang.Integer>
CelebrationService. calculateAttendees(ICity city)
Calculate the random number of attendees at a celebration hosted by independent of a player incity
.java.util.Map<EPopulationClass,java.lang.Integer>
CelebrationService. calculateAttendees(ICity city, IPlayer player)
Calculate the random number of attendees at a celebration hosted byplayer
incity
.Method parameters in ch.sahits.game.openpatrician.clientserverinterface.service with type arguments of type EPopulationClass Modifier and Type Method Description java.util.Map<IWare,java.lang.Integer>
CelebrationService. calculateRequiredAmounts(java.util.Map<EPopulationClass,java.lang.Integer> nbGuests)
Calculate the required amount of wares that is required for the guests. -
Uses of EPopulationClass in ch.sahits.game.openpatrician.engine.event.task
Fields in ch.sahits.game.openpatrician.engine.event.task declared as EPopulationClass Modifier and Type Field Description private EPopulationClass
UpdatePopulationTask. populationClass
Methods in ch.sahits.game.openpatrician.engine.event.task with parameters of type EPopulationClass Modifier and Type Method Description UpdatePopulationTask
ServerSideTaskFactory. getUpdatePopulationTask(java.time.LocalDateTime executionTime, EPopulationClass populationClass, int delta, ICity city)
Retrieve the timed task to update the population of a certain class.Constructors in ch.sahits.game.openpatrician.engine.event.task with parameters of type EPopulationClass Constructor Description UpdatePopulationTask(java.time.LocalDateTime executionTime, EPopulationClass populationClass, int delta, ICity city)
-
Uses of EPopulationClass in ch.sahits.game.openpatrician.model.city
Fields in ch.sahits.game.openpatrician.model.city with type parameters of type EPopulationClass Modifier and Type Field Description private java.util.Map<EWare,java.util.Map<EPopulationClass,java.lang.Double>>
PopulationConsume. needs
Store the amountsMethods in ch.sahits.game.openpatrician.model.city that return EPopulationClass Modifier and Type Method Description static EPopulationClass
EPopulationClass. valueOf(java.lang.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.Methods in ch.sahits.game.openpatrician.model.city with parameters of type EPopulationClass Modifier and Type Method Description double
PopulationConsume. getNeed(IWare ware, EPopulationClass popClass, int popSize)
Retrieve the amount needed of a ware by a population class of the sizeint
ICity. getPopulation(EPopulationClass popclass)
Retrieve the current population of the city by classjavafx.beans.property.IntegerProperty
ICity. getPopulationProperty(EPopulationClass popclass)
Retrieve the population count for a classvoid
ICity. setPopulation(int population, EPopulationClass popClass)
Set the population by class -
Uses of EPopulationClass in ch.sahits.game.openpatrician.model.city.impl
Fields in ch.sahits.game.openpatrician.model.city.impl with type parameters of type EPopulationClass Modifier and Type Field Description private java.util.Map<EPopulationClass,javafx.beans.property.IntegerProperty>
City. population
Holding the population split by population classesMethods in ch.sahits.game.openpatrician.model.city.impl with parameters of type EPopulationClass Modifier and Type Method Description int
City. getPopulation(EPopulationClass popclass)
Retrieve the population count for a classjavafx.beans.property.IntegerProperty
City. getPopulationProperty(EPopulationClass popclass)
void
City. setPopulation(int population, EPopulationClass popClass)
Set the population count for a apopulation class
-