Blueprint

A physical instance of a design. A blueprint belongs to one ship and holds all the information about the internals of that particular ship.

Members

Methods

bool hasTagActive( SubsystemTag tag )

Returns bool : Whether any subsystems with this tag are present and active.

double getTagEfficiency( SubsystemTag tag, bool ignoreInactive = true )

Calculate the total efficiency of subsystems with a particular tag. Returns double : Total efficiency.

double getEfficiencySum( SubsystemVariable var, SubsystemTag tag = ST_NULL, bool ignoreInactive = true )

Calculate the total value of a subsystem variable as affected by subsystem efficiency. Returns double : Total value.

double getEfficiencyFactor( SubsystemVariable var, SubsystemTag tag = ST_NULL, bool ignoreInactive = true )

Calculate the total percentage efficiency with respect to a variable. Returns double : Efficiency factor..

vec3d getOptimalFacing( SubsystemVariable var, SubsystemTag tag = ST_NULL, bool ignoreInactive = true )

Calculate the optimal facing so that effectors in this blueprint can fire with optimal value for the passed variable. Returns vec3d : Optimal facing.

Object@ getCombatTarget( )

Find a target this ship is firing on.

const HexStatus@ getHexStatus( uint index ) const

Returns const HexStatus@ : Current status of the hex on this blueprint.

const HexStatus@ getHexStatus( uint x, uint y ) const

Returns const HexStatus@ : Current status of the hex on this blueprint.

const SysStatus@ getSysStatus( uint index ) const

Returns const SysStatus@ : Y coordinate of the hex.

const SysStatus@ getSysStatus( uint x, uint y ) const

Returns const SysStatus@ : Current status of the subsystem the hex belongs to.

bool canTarget( Object& obj, Object& target )

Check whether the effectors in this blueprint can target an object. Returns bool : Whether the object can be targeted.

bool doesAutoTarget( Object& obj, Object& target )

Check whether the effectors in this blueprint can auto-target an object. Returns bool : Whether the object can be auto-targeted.