Sailing

Methods to interact with the sailing gametab:

../../images/sailingtab.png

ESailingTab

ESailingTab = enum(FACILITIES, STATS, CREW);

Enum represinting the available sailing tabs.


TSailing

Main record responsible with handling the Sailing gametab.


Sailing.IsOpen

function TSailing.IsOpen(): Boolean;

Returns true/false if the sailing tab is open.

Example:

WriteLn Sailing.IsOpen();

Sailing.Open

function TSailing.Open(): Boolean;

Attempts to open the sailing gametab.

Example:

WriteLn Sailing.Open();

Sailing.BoatName

property TSailing.BoatName: String;

Returns the boat name

Example:

WriteLn Sailing.BoatName;

Sailing.BoatHealth

property TSailing.BoatHealth: Integer;

Returns the boat current health

Example:

WriteLn Sailing.BoatName;

Sailing.GetTab

function TSailing.GetTab():  ESailingTab;

Returns the currently active ESailingTab.

Example:

WriteLn Sailing.GetTab();

Sailing.OpenTab

function TSailing.OpenTab(tab:  ESailingTab): Boolean;

Attempts to open the specified tab ESailingTab.

Example:

WriteLn Sailing.OpenTab(ESailingTab.CREW);

Sailing.GetFacilitySlots

function TSailing.GetFacilitySlots(): TSailingFacilitySlotArray;

Returns a TSailingFacilitySlotArray of the facility slots that are currently visible.

This will only return those that have their buttons and/or icons fully visible.

Example:

WriteLn Sailing.GetFacilitySlots();

Sailing variable

Global TSailing variable.