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

OBJ_SHIP_BIG Class Reference

Base class for big ships. Can have itīs own ships docked. More...

Inheritance diagram for OBJ_SHIP_BIG:

Inheritance graph
List of all members.

Private Methods

GALOBJ Create (int x, int y, int z, int ssubtype, int raceid)
GALOBJ Destruct ()
int AddWare (int a_maintype, int a_subtype, int a_amount)
int GetGSize ()
int GetSize ()
void SetOwned (GALOBJ ship)
table GetOwnedShips ()
int GetNumOwnedFighters ()
int GetNumOwnedFreighters ()
SECOBID Activate ()
GALOBJ IsDocked ()
BOOL IsAbleToDock ()
int GetClass ()
int IsClass (int cl)

Private Attributes

table shc_OwnedShips
int shc_NumOwnedFighters
int shc_NumOwnedFreighters

Detailed Description

Base class for big ships. Can have itīs own ships docked.


Member Function Documentation

SECOBID Activate   [private]
 

activates ship-object in sector

Reimplemented from OBJ_SHIP.

Reimplemented in OBJ_SHIP_CARRIER.

int AddWare int    a_maintype,
int    a_subtype,
int    a_amount
[private]
 

adds amount (given in count, which also can be negative to remove a ware) of ware (given in gtype, gsubtype) to the ship. Any upgrades (SS_WARE_TECH213, SS_WARE_TECH246, SS_WARE_TECH251) are installed. For gtype see MainObjectTypes and for gsubtype see subtype definitions. Returns the number of upgrades that were installed/uninstalled or wares added.

Reimplemented from OBJ_SHIP.

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

creates a OBJ_SHIP_BIG

Reimplemented in OBJ_SHIP_CARRIER, OBJ_SHIP_M0, OBJ_SHIP_M1, OBJ_SHIP_M2, and OBJ_SHIP_M6.

GALOBJ Destruct   [private]
 

See Functions common in every object.

Reimplemented from OBJ_SHIP.

Reimplemented in OBJ_SHIP_CARRIER, and OBJ_SHIP_M0.

int GetClass   [private]
 

Functions common in every object

Reimplemented from OBJ_SHIP.

Reimplemented in OBJ_SHIP_CARRIER, OBJ_SHIP_M0, OBJ_SHIP_M1, OBJ_SHIP_M2, and OBJ_SHIP_M6.

int GetGSize   [private]
 

See Functions common in every object.

Reimplemented from OBJ_SHIP.

Reimplemented in OBJ_SHIP_M6.

int GetNumOwnedFighters   [private]
 

returns shc_NumOwnedFighters

int GetNumOwnedFreighters   [private]
 

returns shc_NumOwnedFreighters

table GetOwnedShips   [private]
 

returns shc_OwnedShips

int GetSize   [private]
 

See Functions common in every object.

Reimplemented from OBJ_SHIP.

Reimplemented in OBJ_SHIP_M6.

BOOL IsAbleToDock   [private]
 

is able to dock into stations ?

Reimplemented from OBJ_SHIP.

int IsClass int    cl [private]
 

Functions common in every object

Reimplemented from OBJ_SHIP.

Reimplemented in OBJ_SHIP_CARRIER, OBJ_SHIP_M0, OBJ_SHIP_M1, OBJ_SHIP_M2, and OBJ_SHIP_M6.

GALOBJ IsDocked   [private]
 

Returns sh_Environment if ship is docked or 0 if in space.

Reimplemented from OBJ_SHIP.

void SetOwned GALOBJ    ship [private]
 

Make a ship belong to this ship.

Reimplemented from OBJ_SHIP.


Member Data Documentation

int shc_NumOwnedFighters [private]
 

fighters belonging to this ship

int shc_NumOwnedFreighters [private]
 

freighters belonging to this ship

table shc_OwnedShips [private]
 

ships belonging to this ship


Generated on Mon Aug 26 18:26:30 2002 for Xē KC by doxygen1.2.17