|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ITradingOffice
The trading office (Kontor) is the trading point in a city. You can buy/sell between the trading office and the city. You can move wares and wares between your storage and any ship currently in the city.
| Method Summary | |
|---|---|
IBalanceSheet |
getBalanceLastWeek()
Retrieve the balance sheet for last completed week. |
int |
getCapacity()
Retrieve the storage capacity of the trading office and all other storages in the same city |
IBalanceSheet |
getCurrentWeek()
Retrieve the balance sheet for the current week |
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 |
int |
getStored()
Retrieve the total amount of the stored goods |
AmountablePrice |
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. |
| Methods inherited from interface ch.sahits.game.openpatrician.model.building.IBuilding |
|---|
getOwner, getPropertyTax, getValue |
| Method Detail |
|---|
AmountablePrice getWare(IWare ware)
ware -
boolean hasWeapons()
int move(IWare ware,
int amount)
ware - amount -
int move(IWeapon weapons,
int amount)
weapons - amount -
int getCapacity()
int getStored()
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()
IAutomatedTrading getOfficeTrading()
IWeaponStorage getWeaponStorage()
IStorage getStorage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||