| 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 com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
static int |
GUARD_COST_PER_DAY |
private javafx.beans.property.IntegerProperty |
nbGuards |
private IPlayer |
owner |
static int |
RENT_COST_PER_DAY_AND_BALE |
private javafx.beans.property.IntegerProperty |
rentOutStorage |
private PeriodicalTimeUpdateFactory |
updateFactory |
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.binding.IntegerBinding |
costsPerDayBinding()
Retrieve the daily cost for rent storage
|
private int |
getNbWareHouses()
Retrieve the number of warehouses
|
javafx.beans.binding.IntegerBinding |
guardCostsPerDayBinding()
Retrieve the costs for the guards
|
void |
handleDailyUpdate(PeriodicalTimeDayUpdate 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
|
rentOutStorageProperty in interface IStoragenumberGuardsProperty in interface IStorage@Autowired private PeriodicalTimeUpdateFactory updateFactory
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
public static final int GUARD_COST_PER_DAY
public static final int RENT_COST_PER_DAY_AND_BALE
private final IPlayer owner
private final ICity city
private javafx.beans.property.IntegerProperty rentOutStorage
private javafx.beans.property.IntegerProperty nbGuards
@PostConstruct private void init()
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(PeriodicalTimeDayUpdate event)
Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.