Module position

Definitions and utilities for handling ship crew positions.

Functions

position.defineArea(area, ...) Define a new area handled by a set of positions.
position.defineAreaDefault(area, ...) Define a new area handled by a set of positions, unless the area has already been defined.

Tables

position.all A list of all primary positions (5-6 crew, 3-4 crew, single pilot)
position.single A list of all primary 5-6 crew positions.
position.combi A list of all primary 3-4 crew positions.
position.related A mapping from positions in either 3-4 crew or 5-6 crew system to the equivalent position(s) in the other system.
position.to_single A mapping from positions in either 3-4 crew or 5-6 crew system to the equivalent position(s) in the 5-6 crew system.
position.to_any A mapping from positions in either 3-4 crew or 5-6 crew system to the equivalent positions in either system.
position.area_to_pos A mapping from area to positions that handle that area.
position.pos_to_area A mapping from position to the areas it handles.

Areas

helms Move and turn the ship.
weapons Select weapon targets, fire missiles.
shields Raise, lower, and calibrate the shields.
power Monitor and set system power and coolant levels.
damage View and repair system damage.
scan Select and scan unknown entities, view data on scanned entities.
database View science database entries.
waypoints Add, remove, and move waypoints.
probes Launch scan probes.
hack Hack other ships.
map View a non-ship-centred map.
comms Hail other ships and stations, receive incoming hails.


Functions

position.defineArea(area, ...)
Define a new area handled by a set of positions.

Parameters:

  • area The name of the new area.
  • ... The positions that handle this area.
position.defineAreaDefault(area, ...)
Define a new area handled by a set of positions, unless the area has already been defined.

Parameters:

  • area The name of the new area.
  • ... The positions that handle this area.

Tables

position.all
A list of all primary positions (5-6 crew, 3-4 crew, single pilot)
position.single
A list of all primary 5-6 crew positions.
position.combi
A list of all primary 3-4 crew positions.
position.related
A mapping from positions in either 3-4 crew or 5-6 crew system to the equivalent position(s) in the other system.

e.g.
position.related["Helms"] => {"Tactical"}
position.related["Tactical"] => {"Helms", "Weapons"}

position.to_single
A mapping from positions in either 3-4 crew or 5-6 crew system to the equivalent position(s) in the 5-6 crew system.

e.g.
position.to_single["Helms"] => {"Helms"}
position.to_single["Tactical"] => {"Helms", "Weapons"}

position.to_any
A mapping from positions in either 3-4 crew or 5-6 crew system to the equivalent positions in either system.

e.g.
position.to_any["Helms"] => {"Helms", "Tactical"}
position.to_any["Tactical"] => {"Helms", "Weapons", "Tactical"}

position.area_to_pos
A mapping from area to positions that handle that area.
position.pos_to_area
A mapping from position to the areas it handles.

Areas

See position for details on areas, including how to override the default stations.
helms
Move and turn the ship.
weapons
Select weapon targets, fire missiles.
shields
Raise, lower, and calibrate the shields.
power
Monitor and set system power and coolant levels.
damage
View and repair system damage.
scan
Select and scan unknown entities, view data on scanned entities.
database
View science database entries.
waypoints
Add, remove, and move waypoints.
probes
Launch scan probes.
hack
Hack other ships.
map
View a non-ship-centred map.
comms
Hail other ships and stations, receive incoming hails.
generated by LDoc 1.5.0