Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Related Pages  

OBJ_FACTORY_SHIP Class Reference

A special factory producing (and selling) ships and factories. More...

Inheritance diagram for OBJ_FACTORY_SHIP:

Inheritance graph
List of all members.

Private Methods

GALOBJ Create (int x, int y, int z, int ssubtype, int raceid)
int GetWareTypePrice (int maintype, int subtype)
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 GetClass ()
int IsClass (int cl)

Detailed Description

A special factory producing (and selling) ships and factories.


Member Function Documentation

BOOL CanBuyWareType int    gtype,
int    gsubtype
[private]
 

checks if given ware is needed as resource

Reimplemented from OBJ_FACTORY.

BOOL CanSellWareType int    gtype,
int    gsubtype
[private]
 

checks if given ware can be produced

Reimplemented from OBJ_FACTORY.

GALOBJ Create int    x,
int    y,
int    z,
int    ssubtype,
int    raceid
[private]
 

creates a factory with given parameters. See *_FACTORY subtype constants-definitions and Race IDs .

Reimplemented from OBJ_FACTORY.

Reimplemented in OBJ_FACTORY_BIGSHIP, and OBJ_FACTORY_SMALLSHIP.

int GetClass   [private]
 

Functions common in every object

Reimplemented from OBJ_FACTORY.

Reimplemented in OBJ_FACTORY_BIGSHIP, and OBJ_FACTORY_SMALLSHIP.

int GetWareTypeBestStore int    gtype,
int    gsubtype
[private]
 

?what is the best amount of a given ware to store in the station?

Reimplemented from OBJ_FACTORY.

int GetWareTypePrice int    maintype,
int    subtype
[private]
 

The price of the given ware to sell to/buy from this factory. See Constant Definitions used in X² .

Reimplemented from OBJ_FACTORY.

void InitialFill   [private]
 

fill dock ideally with products and resources

Reimplemented from OBJ_FACTORY.

int IsClass int    cl [private]
 

Functions common in every object

Reimplemented from OBJ_FACTORY.

Reimplemented in OBJ_FACTORY_BIGSHIP, and OBJ_FACTORY_SMALLSHIP.

BOOL TradesWithWareType int    gtype,
int    gsubtype
[private]
 

returns whether the factory can trade with the given ware

Reimplemented from OBJ_FACTORY.


Generated on Mon Aug 26 18:26:25 2002 for X² KC by doxygen1.2.17