Inheritance diagram for OBJ_DOCK:

Private Methods | |
| GALOBJ | Create (int x, int y, int z, int ssubtype, int raceid) |
| GALOBJ | Destruct () |
| void | AddTradeable (int gtype, int gsubtype) |
| table | GetTradeables () |
| int | GetClass () |
| int | IsClass (int cl) |
| int | GetGType () |
| int | GetType () |
| string | GetName () |
| string | GetYourName () |
| void | SetYourName (string a_s) |
| int | GetWareTypePrice (int maintype, int subtype) |
| void | AddTo (GALOBJ gsector) |
| void | InitialFill () |
| BOOL | CanBuyWareType (int gtype, int gsubtype) |
| BOOL | CanSellWareType (int gtype, int gsubtype) |
| BOOL | TradesWithWareType (int gtype, int gsubtype) |
| int | GetWareTypeBestStore (int gtype, int gsubtype) |
| int | AddWare (int gtype, int gsubtype, int count) |
Private Attributes | |
| table | do_Tradeables |
| int | do_DockType |
| string | do_Name |
|
|
adds this dock to given sector
|
|
||||||||||||
|
Adds a given ware to do_Tradeables.
|
|
||||||||||||||||
|
Adds ware (see OBJ_STATION::AddWare()) if the station can trade with this ware. (That means there is an entry in do_Tradeables). If the dock is a equipment dock it does not accept lasers, shields or rockets. Reimplemented from OBJ_STATION. |
|
||||||||||||
|
Checks if this can buy the given ware. If this is a dock, it can buy all lasers, shields and rockets.
Reimplemented from OBJ_STATION. |
|
||||||||||||
|
checks if this can sell the given ware.
Reimplemented from OBJ_STATION. |
|
||||||||||||||||||||||||
|
creates a dock with given parameters. See *_DOCK subtype constants-definitions and Race IDs .
Reimplemented in OBJ_DOCK_EQUIP. |
|
|
Sends all dock-owned objects a message that their owner object is destroyed, destroys all landed ships and then itself. Reimplemented from OBJ_STATION. |
|
|
Functions common in every object
Reimplemented from OBJ_STATION. Reimplemented in OBJ_DOCK_GONER, OBJ_DOCK_TRADE, OBJ_DOCK_EQUIP, OBJ_DOCK_PIRATE, and OBJ_DOCK_KHAAK. |
|
|
Differences of in-game objects
|
|
|
returns do_Name
Reimplemented from OBJ_STATION. |
|
|
returns do_Tradeables
|
|
|
Differences of in-game objects
|
|
||||||||||||
|
What is the best amount of a given ware to store in the station?
Reimplemented from OBJ_STATION. |
|
||||||||||||
|
the price for the given ware at this dock. The prices are average-prices (at the moment)
Reimplemented from OBJ_STATION. |
|
|
same as GetName()
Reimplemented from OBJ_STATION. |
|
|
fill dock ideally with tradeables
|
|
|
Functions common in every object
Reimplemented from OBJ_STATION. Reimplemented in OBJ_DOCK_GONER, OBJ_DOCK_TRADE, OBJ_DOCK_EQUIP, OBJ_DOCK_PIRATE, and OBJ_DOCK_KHAAK. |
|
|
returns do_DockType
|
|
||||||||||||
|
returns whether the dock can trade with the given ware
Reimplemented from OBJ_STATION. |
|
|
The type of the dock. (0 == Trade-dock, 1 == Equipment-dock).
|
|
|
name of the dock
|
|
|
wares the station can trade with. format: {typecode,amount}. see also Macro Definitions .
|
1.2.17