Inheritance diagram for OBJ_STATION:
Private Methods | |
GALOBJ | Create (int x, int y, int z, int gsubtype, int ssubtype, int raceid) |
BOOL | IsDockingPossibleOf (GALOBJ a_ship) |
int | GetNumPlatforms () |
int | FindFreePlatform () |
void | AddShield (int gsubtype, int count) |
void | RemoveShield (int gsubtype, int count) |
void | AddShip (GALOBJ ship) |
void | RemoveShip (GALOBJ ship) |
void | SetOwner (GALOBJ owner) |
void | SetOwned (GALOBJ ship) |
int | GetNumOwnedFighters () |
int | GetNumOwnedFreighters () |
void | SetDisowned (GALOBJ ship) |
void | SetRelation (GALOBJ otherobj, int relation) |
void | SetGroupRelation (int raceid, int relation) |
int | SetRelationsToAll (int relation) |
int | GetRelation (GALOBJ otherobj) |
BOOL | IsEnemy (GALOBJ otherobj) |
BOOL | IsFriend (GALOBJ otherobj) |
BOOL | IsNeutral (GALOBJ otherobj) |
int | GetGroupRelation (int raceid) |
void | SetRelationsFromNotoriety () |
int | GetSubType () |
int | GetGSubType () |
array | GetPos () |
table | GetShips () |
array | GetShields () |
table | GetWares () |
table | GetOwnedShips () |
GALOBJ | GetOwner () |
SECOBID | GetObjectID () |
GALOBJ | GetEnvironment () |
int | GetWareID () |
BOOL | GetUnknown () |
array | GetDockedShips () |
int | SetShield (int newshield) |
int | GetShield () |
int | GetMaxShield () |
int | GetMaxShieldType () |
int | GetWareTypeBestStore (int gtype, int gsubtype) |
int | GetWareTypeContainerSize (int gtype, int gsubtype) |
int | GetWareTypeCount (int gtype, int gsubtype) |
int | GetTrueWareTypeCount (int gtype, int gsubtype) |
int | GetWareTypeFree (int gtype, int gsubtype) |
int | AddWare (int gtype, int gsubtype, int count) |
GALOBJ | SetAttacker (GALOBJ att) |
GALOBJ | GetAttacker () |
void | SetPos (int x, int y, int z) |
void | SetRot (int alpha, int beta, int gamma) |
void | SetSafePos () |
int | GetWareTypePrice (int maintype, int subtype) |
int | GetWareTypeNormalPrice (int maintype, int subtype) |
table | GetSourceFactories () |
int | TradeWare (int gtype, int gsubtype, int count) |
int | GetMoney () |
void | AddMoney (int money) |
void | TradeMoney (int amount) |
void | SmallAttack (SECOBID attacker) |
BOOL | HasPolice () |
void | SendSquadG (GALOBJ gattacker) |
void | SendSquad (SECOBID attacker) |
void | SendSupport () |
BOOL | DropFreight () |
void | SelfDestruct (int reason) |
void | SetTargetted (BOOL targetted) |
int | IsDockingAllowedForShip (GALOBJ gship) |
int | GetTradeTimer () |
int | IsHidden (GALOBJ srcobj) |
int | GetClass () |
int | IsClass (int cl) |
int | IsClassType (int cl) |
Private Attributes | |
array | st_Pos |
GALOBJ | st_Owner |
table | st_Ships |
array | st_Shields |
table | st_Wares |
GALOBJ | st_Environment |
table | st_OwnedShips |
int | st_NumOwnedFighters |
int | st_NumOwnedFreighters |
SECOBID | st_ObjectID |
int | st_WareID |
int | st_FactoryID |
int | st_Money |
BOOL | st_Unknown |
GALOBJ | st_Attacker |
int | st_Shield |
int | st_TradeTimer |
SECOBID | st_InnerObjectID |
array | st_DockedShips |
|
only for player-owned stations
|
|
add a shield of type (given in gsubtype) of an amount (given in count - can also be negative to remove shields) to the station |
|
adds a ship to st_ships and takes care that a docking-bay is free
|
|
adds amount (given in count, which also can be negative to remove a ware) of ware (given in gtype, gsubtype) to the station. (see Constant Definitions used in Xē ). returns number of wares that were moved Reimplemented in OBJ_DOCK, and OBJ_FACTORY. |
|
create a station with given parameters. see *_SHIP subtype constants-definitions .
|
|
station looses (almost) all wares
|
|
Find a free landing platform and return index. if none is found, returns -1.
|
|
returns st_Attacker
|
|
|
returns st_DockedShips
|
|
returns st_Environment
|
|
returns the relation to a given raceid. (-1,0 or 1)
|
|
Differences of in-game objects
|
|
returns the maximal shield strength possible for this object
|
|
returns the biggest shield-type possible for this object. (See *_W_SHIELD subtype constants-definitions )
|
|
returns st_Money for playerFactories and infinite money for npcs
|
|
returns st_NumOwnedFighters
|
|
returns st_NumOwnedFreighters
|
|
Return total number of landing platforms.
|
|
returns st_ObjectID
|
|
returns st_OwnedShips
|
|
returns st_Owner
|
|
returns st_Pos
|
|
returns relation from this object to otherobj.
|
|
returns st_Shield or sector-shield strength
|
|
returns st_Shields
|
|
returns st_Ships
|
|
returns OBJ_GALAXY.GetProducts()
|
|
Differences of in-game objects
|
|
returns st_TradeTimer
|
|
Get number of units that are truely available as ware (especially for shields and lasers).
|
|
returns st_Unknown
|
|
returns# st_WareID
|
|
returns st_Wares
|
|
?what is the best amount of a given ware to store in the station?
Reimplemented in OBJ_DOCK, OBJ_FACTORY, and OBJ_FACTORY_SHIP. |
|
returns how much of a given ware the station is able to store
|
|
returns how much of a given ware is available on this station
|
|
returns, how much of a given ware the station is yet able to store
|
|
This function returns the price for which the station would buy or sell wares if it had a "normal number" of them in stock. |
|
Function to handle some special wares before using the factory and dock specific code. SG_WR_TECH246, SG_WR_TECH213, SG_WR_TECH251 and SG_WR_TECH209 have the same price everywhere. Reimplemented in OBJ_DOCK, OBJ_FACTORY, and OBJ_FACTORY_SHIP. |
|
returns wether the station owns at least one fighter
|
|
|
The difference to IsClass() is that this fct. only checks the object an not the super-objects. Functions common in every object.
|
|
returns if a given ship is allowed to dock depending on notoriety
|
|
Can a given ship dock here?
Reimplemented in OBJ_DOCK_EQUIP, OBJ_FACTORY_BIGSHIP, and OBJ_FACTORY_SMALLSHIP. |
|
returns whether otherobj is a foe of this object.
|
|
returns whether otherobj is a friend of this object.
|
|
Check if this object is hidden either by a nebula or using a cloaking device.
|
|
returns whether otherobj is neutral to this object.
|
|
calls AddShield() with negative amount
|
|
removes ship from st_Ships
|
|
fct. destructs the station and landed ships. For reason see Reason for death
|
|
Station sends all itīs landed ships to kill gattacker. This fct. uses the sector-object of the attacker. |
|
Station sends all itīs landed ships to kill gattacker.
|
|
Start a squad (three ships) and set it to kill all enemies (after support was requested).
|
|
sets st_Attacker
|
|
the given ship is no longer owned by this station
|
|
sets relation between this station and the given raceid as specified in "relation" relation = 1 means friendly, -1 means enemy, 0 means neutral |
|
sets the given ship as owned by this station
|
|
sets st_Owner
|
|
sets the position of the station (for both cases galaxy/sector)
|
|
sets the relation between the race of the given GALOBJ and this station as specified in "relation". relation = 1 means friendly, -1 means enemy, 0 means neutral |
|
The objects relation mask is updated based on the notoriets towards all races!
|
|
sets relations between this stationīs owner and all other races as specified in "relation" relation = 1 means friendly, -1 means enemy, 0 means neutral |
|
sets the rotation of the station (for both cases galaxy/sector)
|
|
sets the station to a safe position via SectorEngine call
|
|
sets st_Shield (also for sector case if neccessary)
|
|
Set the station as targetted. Also marks this station as known (st_Unknown set to FALSE).
|
|
Launch a small attack (one defense ship) against attacker.
|
|
same as AddMoney()
|
|
same as AddWare()
|
|
Last attacker.
|
|
Which ship is docked at each Landing Platform.
|
|
object containing this station (normally a sector)
|
|
sequential ID used to enumerate all equal factories in a sector
|
|
Sector object of station inside. If not null means the inside view is active.
|
|
money, that the station possesses (mainly for player-stations)
|
|
nr. of fighters owned by this station
|
|
nr. of freighters owned by this station
|
|
is set when staion is in current (active) sector
|
|
ships owned by this station
|
|
owner-object of station
|
|
Position (x,y,z).
|
|
actual shield strength (Galaxy-level)
|
|
installed Shields (OBJ_GS_WARE)
|
|
landed ships (OBJ_GS_SHIP)
|
|
Time of last Trade Activity.
|
|
Factory-Type is not yet known to player.
|
|
(3 digits) id of ware that is produced by this factory (also index for factory-name)
|
|
stored wares {OBJ_GS_WARE , amount}
|