Class Storage
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.building.impl.Storage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.beans.binding.IntegerBindingcostsPerDayBinding()Retrieve the daily cost for rent storagevoiddestroy()javafx.beans.binding.IntegerBindingguardCostsPerDayBinding()Retrieve the costs for the guardsvoidhandleDailyUpdate(ch.sahits.game.event.data.ClockTickDayChange event)javafx.beans.property.IntegerPropertynumberGuardsProperty()Retrieve the number of guardsjavafx.beans.property.IntegerPropertyrentOutStorageProperty()Retrieve the amount of storage in barrels that is rented by someone elsejavafx.beans.binding.ObjectBinding<ELevel>securityLevelBinding()Retrieve the security levelvoidupdateGuardsNumber(int update)Increase or decrease the number of guardsvoidupdateRendedSpace(int nbBarrels)Update the rented out space
-
-
-
Method Detail
-
destroy
@PreDestroy public void destroy()
-
rentOutStorageProperty
public javafx.beans.property.IntegerProperty rentOutStorageProperty()
Description copied from interface:IStorageRetrieve the amount of storage in barrels that is rented by someone else- Specified by:
rentOutStoragePropertyin interfaceIStorage- Returns:
- integer property for rented out storage
-
updateRendedSpace
public void updateRendedSpace(int nbBarrels)
Description copied from interface:IStorageUpdate the rented out space- Specified by:
updateRendedSpacein interfaceIStorage- Parameters:
nbBarrels- rented out space in barrels
-
costsPerDayBinding
public javafx.beans.binding.IntegerBinding costsPerDayBinding()
Description copied from interface:IStorageRetrieve the daily cost for rent storage- Specified by:
costsPerDayBindingin interfaceIStorage- Returns:
- integer binding of daily costs for renting additional space.
-
numberGuardsProperty
public javafx.beans.property.IntegerProperty numberGuardsProperty()
Description copied from interface:IStorageRetrieve the number of guards- Specified by:
numberGuardsPropertyin interfaceIStorage- Returns:
- IntegerProperty for number of guards.
-
guardCostsPerDayBinding
public javafx.beans.binding.IntegerBinding guardCostsPerDayBinding()
Description copied from interface:IStorageRetrieve the costs for the guards- Specified by:
guardCostsPerDayBindingin interfaceIStorage- Returns:
- IntegerBinding for guard salary per day.
-
securityLevelBinding
public javafx.beans.binding.ObjectBinding<ELevel> securityLevelBinding()
Description copied from interface:IStorageRetrieve the security level- Specified by:
securityLevelBindingin interfaceIStorage- Returns:
- object binding of security level
-
updateGuardsNumber
public void updateGuardsNumber(int update)
Description copied from interface:IStorageIncrease or decrease the number of guards- Specified by:
updateGuardsNumberin interfaceIStorage- Parameters:
update- delta in the number of guards.
-
handleDailyUpdate
public void handleDailyUpdate(ch.sahits.game.event.data.ClockTickDayChange event)
-
-