public interface ITradingOffice extends IBuilding
| Type | Property and Description |
|---|---|
javafx.beans.property.IntegerProperty |
capacity
Retrieve the storage capacity of the trading office and all other storages in the same city
|
javafx.beans.property.ObjectProperty<ISteward> |
steward
Property holding the steward.
|
| Modifier and Type | Method and 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
|
int |
getOccupiedSpace()
Retrieve tha amount of occupied space not available to the player.
|
IAutomatedTrading |
getOfficeTrading()
Get the trading object of the office
|
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)
Add or remove ware from the storage.
|
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 |
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.
|
getOwner, getPropertyTax, getValueAmountablePrice<IWare> getWare(IWare ware)
ware - boolean hasWeapons()
int move(IWare ware, int amount)
ware - amount - int move(IWeapon weapons, int amount)
weapons - amount - javafx.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()
ISteward getSteward()
void setSteward(ISteward steward)
steward - 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 - ICity getCity()
Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.