| Type | Property and Description |
|---|---|
javafx.beans.property.IntegerProperty |
numberGuards
Retrieve the number of guards
|
javafx.beans.property.IntegerProperty |
rentOutStorage
Retrieve the amount of storage in barrels that is rented by someone else
|
| Modifier and Type | Field and Description |
|---|---|
private ICity |
city |
private int |
guardCostPerDay |
private javafx.beans.property.IntegerProperty |
nbGuards |
private IPlayer |
owner |
private int |
rentCostPerDayAndBale |
private javafx.beans.property.IntegerProperty |
rentOutStorage |
private com.google.common.eventbus.AsyncEventBus |
timerEventBus |
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.binding.IntegerBinding |
costsPerDayBinding()
Retrieve the daily cost for rent storage
|
void |
destroy() |
private int |
getNbWareHouses()
Retrieve the number of warehouses
|
javafx.beans.binding.IntegerBinding |
guardCostsPerDayBinding()
Retrieve the costs for the guards
|
void |
handleDailyUpdate(ClockTickDayChange event) |
private void |
init() |
private ELevel |
internalSecurityLevelCalculation() |
javafx.beans.property.IntegerProperty |
numberGuardsProperty()
Retrieve the number of guards
|
javafx.beans.property.IntegerProperty |
rentOutStorageProperty()
Retrieve the amount of storage in barrels that is rented by someone else
|
javafx.beans.binding.ObjectBinding<ELevel> |
securityLevelBinding()
Retrieve the security level
|
void |
updateGuardsNumber(int update)
Increase or decrease the number of guards
|
void |
updateRendedSpace(int nbBarrels)
Update the rented out space
|
public javafx.beans.property.IntegerProperty rentOutStorageProperty
rentOutStorageProperty in interface IStoragepublic javafx.beans.property.IntegerProperty numberGuardsProperty
numberGuardsProperty in interface IStorage@Autowired @Qualifier(value="timerEventBus") private com.google.common.eventbus.AsyncEventBus timerEventBus
@Value(value="${storage.guard.cost.per.day}")
private int guardCostPerDay
@Value(value="${storage.rent.per.day}")
private int rentCostPerDayAndBale
private final IPlayer owner
private final ICity city
private javafx.beans.property.IntegerProperty rentOutStorage
private javafx.beans.property.IntegerProperty nbGuards
@PostConstruct private void init()
@PreDestroy public void destroy()
private int getNbWareHouses()
public javafx.beans.property.IntegerProperty rentOutStorageProperty()
IStoragerentOutStorageProperty in interface IStoragepublic void updateRendedSpace(int nbBarrels)
IStorageupdateRendedSpace in interface IStoragepublic javafx.beans.binding.IntegerBinding costsPerDayBinding()
IStoragecostsPerDayBinding in interface IStoragepublic javafx.beans.property.IntegerProperty numberGuardsProperty()
IStoragenumberGuardsProperty in interface IStoragepublic javafx.beans.binding.IntegerBinding guardCostsPerDayBinding()
IStorageguardCostsPerDayBinding in interface IStoragepublic javafx.beans.binding.ObjectBinding<ELevel> securityLevelBinding()
IStoragesecurityLevelBinding in interface IStorageprivate ELevel internalSecurityLevelCalculation()
public void updateGuardsNumber(int update)
IStorageupdateGuardsNumber in interface IStoragepublic void handleDailyUpdate(ClockTickDayChange event)
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.