ModuleSet
The available module set for a specific ship
Constructor Summary
Public Constructor | ||
public |
constructor(modules: Object, shipData: Object) Instantiate the module set |
Member Summary
Public Members | ||
public |
bulkheads: * |
|
public |
hardpoints: {} |
|
public |
hpClass: {} |
|
public |
intClass: {} |
|
public |
internal: {} |
|
public |
mass: * |
|
public |
standard: {} |
Method Summary
Public Methods | ||
public |
getBulkhead(index: integer): Object Get the specified bulkhead |
|
public |
Determining the modules that are eligible for an hardpoint slot |
|
public |
Determine the modules that areeligible for an internal slot |
|
public |
lightestPowerDist(boostEnergy: number): Object Find the lightest Power Distributor that provides sufficient energy to boost. |
|
public |
lightestPowerPlant(powerNeeded: number, rating: string): Object Find the lightest Power Plant that provides sufficient power |
|
public |
lightestShieldGenerator(hullMass: number): Object Finds the lightest usable Shield Generator |
|
public |
lightestThruster(ladenMass: number): Object Finds the lightest Thruster that can handle the specified tonnage |
|
public |
matchingPowerDist(requirements: Object): Object Find the power distributor that matches the requirements |
Public Constructors
Public Members
public bulkheads: * source
public hardpoints: {} source
public hpClass: {} source
public intClass: {} source
public internal: {} source
public mass: * source
public standard: {} source
Public Methods
public getBulkhead(index: integer): Object source
Get the specified bulkhead
Params:
Name | Type | Attribute | Description |
index | integer | Bulkhead index |
public getHps(c: integer, eligible): Object): object source
Determining the modules that are eligible for an hardpoint slot
Params:
Name | Type | Attribute | Description |
c | integer | The max class module that can be mounted in the slot |
|
eligible) | Object | The map of eligible hardpoint groups |
public getInts(ship: Object, c: integer, eligible): Object): object source
Determine the modules that areeligible for an internal slot
public lightestPowerDist(boostEnergy: number): Object source
Find the lightest Power Distributor that provides sufficient energy to boost.
Params:
Name | Type | Attribute | Description |
boostEnergy | number | The energy that is required to boost |
public lightestPowerPlant(powerNeeded: number, rating: string): Object source
Find the lightest Power Plant that provides sufficient power
public lightestShieldGenerator(hullMass: number): Object source
Finds the lightest usable Shield Generator
Params:
Name | Type | Attribute | Description |
hullMass | number | Ship hull mass |