IBuildingTradingOfficepublic interface ITradingOffice extends IBuilding
| Modifier and Type | Method | Description |
|---|---|---|
javafx.beans.property.IntegerProperty |
capacityProperty() |
Retrieve the storage capacity of the trading office and all other storages in the same city
|
IBalanceSheet |
getBalanceLastWeek() |
Retrieve the balance sheet for last completed week.
|
ICity |
getCity() |
Retrieve the city the trading office is located in.
|
IBalanceSheet |
getCurrentWeek() |
Retrieve the balance sheet for the current week
|
java.time.LocalDateTime |
getEstablishedDate() |
Retrieve the date when the trading office was established.
|
int |
getOccupiedSpace() |
Retrieve tha amount of occupied space not available to the player.
|
IAutomatedTrading |
getOfficeTrading() |
Get the trading object of the office
|
java.util.Optional<ISteward> |
getSteward() |
Retrieve the steward of the trading office (manager).
|
IStorage |
getStorage() |
Retrieve an overview over the storage
|
AmountablePrice<IWare> |
getWare(IWare ware) |
Retrieve the amount of ware in storage
|
IWeaponStorage |
getWeaponStorage() |
Retrieve the weapon storage for this trading office
|
boolean |
hasWeapons() |
check if there are any weapons in storage
|
int |
move(IWare ware,
int amount) |
Deprecated.
|
int |
move(IWare ware,
int moved,
int avgPrice) |
Move the ware into/from the storage with a price attached.
|
int |
move(IWeapon weapons,
int amount) |
Add or remove weapon from the storage.
|
void |
replaceBalanceSheet(IBalanceSheet newWeek) |
Replace the last weeks balance sheet with the current week and
set the new balance sheet for this week.
|
void |
setOccupiedSpace(int space) |
Set the amount of occupied space not available to the player.
|
void |
setSteward(ISteward steward) |
Setting the steward.
|
javafx.beans.property.ObjectProperty<ISteward> |
stewardProperty() |
Property holding the steward.
|
javafx.beans.binding.BooleanBinding |
storageManagerPresentBinding() |
Binding indicating the presence of a steward.
|
javafx.beans.binding.IntegerBinding |
storedAmountBinding() |
Binding representing the current stored amount.
|
AmountablePrice<IWare> getWare(IWare ware)
ware - to be checked in the trading office.ware stored in the trading office.boolean hasWeapons()
@Deprecated int move(IWare ware, int amount)
move(IWare, int, int)ware - to be moved in/out of the trading officeamount - of ware to be moved.int move(IWeapon weapons, int amount)
weapons - weapon that should be movedamount - of weapons that should be movedjavafx.beans.property.IntegerProperty capacityProperty()
int move(IWare ware, int moved, int avgPrice)
ware - to be movedmoved - amount to be movedavgPrice - average price to use on the amount of wareIBalanceSheet getBalanceLastWeek()
IBalanceSheet getCurrentWeek()
java.util.Optional<ISteward> getSteward()
void setSteward(ISteward steward)
steward - to set/unset (null)IAutomatedTrading getOfficeTrading()
IWeaponStorage getWeaponStorage()
IStorage getStorage()
javafx.beans.binding.IntegerBinding storedAmountBinding()
javafx.beans.property.ObjectProperty<ISteward> stewardProperty()
javafx.beans.binding.BooleanBinding storageManagerPresentBinding()
int getOccupiedSpace()
void setOccupiedSpace(int space)
space - new occupied spaceICity getCity()
void replaceBalanceSheet(IBalanceSheet newWeek)
newWeek - balance sheet to replace the old one.java.time.LocalDateTime getEstablishedDate()
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.