Inheritance diagram for OBJ_FACTORY:

Private Methods | |
| BOOL | IsWareCategory (int a_waretype) |
| int | GetTypeCode () |
| GALOBJ | Create (int x, int y, int z, int ssubtype, int raceid) |
| int | GetResPercent () |
| GALOBJ | AddDefaultProductsAndResources () |
| GALOBJ | Destruct () |
| void | AddProduct (int gtype, int gsubtype) |
| void | AddResource (int gtype, int gsubtype) |
| void | AddSResource (int gtype, int gsubtype) |
| table | GetProducts () |
| table | GetResources () |
| table | GetSResources () |
| void | SetFactoryID (int id) |
| void | SetIdentifyTextID (int id) |
| void | SetEfficiency (int eff) |
| int | GetClass () |
| int | IsClass (int cl) |
| int | GetGType () |
| int | GetType () |
| int | GetProductMainType () |
| int | GetProductSubType () |
| int | GetProductionTime () |
| int | GetProductionCount () |
| table | GetResToOrder () |
| int | GetFactoryID () |
| string | GetYourName () |
| void | SetYourName (string Name) |
| int | GetEfficiency () |
| int | GetWareTypePrice (int maintype, int subtype) |
| void | SetWareTypePrice (int maintype, int subtype, int price) |
| void | AddTo (GALOBJ gsector) |
| void | InitialFill () |
| int | ResourceMainTypeAvailable (int rtype) |
| int | ResourceTypeAvailable (int rtype, int rsubtype) |
| int | NoResources () |
| int | GetProductionTaskPC () |
| int | GetProductionTimer () |
| 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 | |
| int | fa_ProductType |
| int | fa_ProductSubType |
| int | fa_ProdTime |
| int | fa_ProdCount |
| table | fa_Products |
| table | fa_Resources |
| table | fa_SResources |
| int | fa_ProductionPID |
| int | fa_IdentifyTextID |
| int | fa_Efficiency |
| table | fa_ResToOrder |
| table | fa_ResourcePrices |
| table | fa_SResourcePrices |
| string | fa_Name |
| int | fa_ProductionTimer |
| int | fa_ResPercent |
A factory can potentially produce more wares (specified in fa_Products), but only one at a time (specified via fa_ProductType & fa_ProductSubType).
|
|
Adds all products and resources that fit to the factory-type.
|
|
||||||||||||
|
Sets fa_ProductType (with gtype) and fa_ProductSubType (with gsubtype) and adds the product to fa_Products. (see Constant Definitions used in X² ). |
|
||||||||||||
|
adds given ware to fa_Resources
|
|
||||||||||||
|
adds given ware to fa_SResources
|
|
|
adds factory to given sector
|
|
||||||||||||||||
|
calls super.AddWare() if it can buy or sell the given ware
Reimplemented from OBJ_STATION. |
|
||||||||||||
|
checks if given ware is needed as resource
Reimplemented from OBJ_STATION. Reimplemented in OBJ_FACTORY_SHIP. |
|
||||||||||||
|
checks if given ware can be produced
Reimplemented from OBJ_STATION. Reimplemented in OBJ_FACTORY_SHIP. |
|
||||||||||||||||||||||||
|
creates a factory with given parameters. See *_FACTORY subtype constants-definitions and Race IDs .
Reimplemented in OBJ_FACTORY_SHIP, OBJ_FACTORY_BIGSHIP, and OBJ_FACTORY_SMALLSHIP. |
|
|
Destruct this station, notice the owned ships of the loss of their factory and destruct all landed ships. Reimplemented from OBJ_STATION. |
|
|
Functions common in every object
Reimplemented from OBJ_STATION. Reimplemented in OBJ_FACTORY_SHIP, OBJ_FACTORY_BIGSHIP, and OBJ_FACTORY_SMALLSHIP. |
|
|
returns fa_Efficiency
|
|
|
returns st_FactoryID (defined in OBJ_Station) returns the name ID the station got from the sector engine |
|
|
Differences of in-game objects
|
|
|
return fa_ProdCount
|
|
|
returns fa_ProductionPID
|
|
|
returns fa_ProdTime
|
|
|
returns fa_ProductionTimer
|
|
|
returns fa_ProductType
|
|
|
returns fa_Products
|
|
|
returns fa_ProductSubType
|
|
|
returns fa_Resources
|
|
|
returns fa_ResPercent
|
|
|
returns fa_ResToOrder
|
|
|
returns fa_SResources
|
|
|
Differences of in-game objects
|
|
|
returns the typecode of this factory composed from SSTYPE_FACTORY and the station subType.
|
|
||||||||||||
|
?what is the best amount of a given ware to store in the station?
Reimplemented from OBJ_STATION. Reimplemented in OBJ_FACTORY_SHIP. |
|
||||||||||||
|
The price of the given ware to sell to/buy from this factory. See Constant Definitions used in X² .
Reimplemented from OBJ_STATION. Reimplemented in OBJ_FACTORY_SHIP. |
|
|
returns fa_Name
Reimplemented from OBJ_STATION. |
|
|
fill dock ideally with products and resources
Reimplemented in OBJ_FACTORY_SHIP. |
|
|
Functions common in every object
Reimplemented from OBJ_STATION. Reimplemented in OBJ_FACTORY_SHIP, OBJ_FACTORY_BIGSHIP, and OBJ_FACTORY_SMALLSHIP. |
|
|
returns wether the station - considered as a ware - is of the type given in the joined typecode a_waretype. For example a_waretype could be TYPECODE(SSTYPE_FACTORY,anySectorSubtype for factories) Reimplemented from OBJ_STATION. |
|
|
Check if the station needs a resource urgently. Returns true if it is so.
|
|
|
Returns total production value of products with type rtype (is TYPECODE).
|
|
||||||||||||
|
Returns number of goods with type rtype/rsubtype.
|
|
|
sets fa_Efficiency
|
|
|
set st_FactoryID
|
|
|
sets fa_IdentifyTextID to given id
|
|
||||||||||||||||
|
Set the price of products and resources. (This makes only sense for player owned factories).
Reimplemented from OBJ_STATION. |
|
|
sets fa_Name
|
|
||||||||||||
|
returns whether the factory can trade with the given ware
Reimplemented from OBJ_STATION. Reimplemented in OBJ_FACTORY_SHIP. |
|
|
yield of the factory (Mines, Solarstations ?)
|
|
|
text for speech output in identifyscreen
|
|
|
name of the factory
|
|
|
the number of units of the product being produced in "fa_ProdTime"-time.
|
|
|
time needed to produce a batch of a product (in millisec.)
|
|
|
Process-ID des zu dieser Fabrik gehoerenden staendig laufenden Produktions-Tasks.
|
|
|
Time of last Production Activity.
|
|
|
Wares that can be produced here. For Shipyards the products are the factories they sell.
|
|
|
Subtype of actually produced ware.
|
|
|
Maintype of actually produced ware (Index in SGF_Products), -1 == no product (yard).
|
|
|
Resource prices my transporters are willing to pay at other factories. Format {TYPECODE, price}.
|
|
|
which wares are possible as resources (spezielle Warentypen innerhalb der SGF_Resources)
|
|
|
how urgent are new resources needed in %
|
|
|
ordered amount of resource. Format : {wareTypecode,amount}
|
|
|
Secondary Resource prices my transporters are willing to pay at other factories. Format {TYPECODE, price}.
|
|
|
secondary resources. These are not neccessary to manifacture the product but have a positive influence of the production itself.
|
1.2.17