Module airship_travel

Source

Macros§

debug_airships πŸ”’

Structs§

AirRouteConnection πŸ”’
Used while generating the airship routes to connect the airship docks. Encapsulates the connection between two airship docks, including the angle and distance.
AirshipDockPositions πŸ”’
The docking postions at an AirshipDock plot. The center is the center of the plot. The docking_positions are the positions where the airship can dock.
AirshipDockingApproach
An approach for the airship provides the data needed to fly to a docking position and stop at the docking position. The approach provides a target β€˜final’ postion that is offset from the docking postion such that when the airship flys from the final position to the docking position, the airship will be naturally aligned with the direction of the docking position, and only very small orientation adjustments will be needed before docking. The approach final position is selected to minimize the change of direction when flying from the takeoff location to the target docking position.
AirshipDockingPosition
A docking position (id, position). The docking position id is an index of all docking positions in the world.
AirshipRoute
A route that an airship flies round-trip between two sites.
Airships
Data for airship operations. This is generated world data.
DockConnection πŸ”’
Represents potential connections between two airship docks. Used during the generation of the airship routes.
DockConnectionHashKey πŸ”’
Dock connnections are a hash map (DHashMap) of DockConnectionHashKey to AirRouteConnection. The hash map is used internally during the generation of the airship routes.

Enums§

AirshipDockingSide
An airship can dock with its port or starboard side facing the dock.

Constants§

AIRSHIP_TRAVEL_DEBUG πŸ”’

Functions§

write_airship_routes_log πŸ”’
For debuging the airship routes. Writes the airship routes to a json file.

Type Aliases§

AirshipRouteId πŸ”’
Airship routes are identified by a unique serial number starting from zero.