Interface of the warp drive of a spaceship that can only be read.

interface ReadonlyWarpDrive {
    getThrottle(): number;
    getWarpSpeed(): number;
    isDisabled(): boolean;
    isDisengaging(): boolean;
    isEnabled(): boolean;
}

Implemented by

Methods

  • Returns the current target throttle of the warp drive.

    Returns number

    The current target throttle of the warp drive.

  • Returns the current speed of the warp drive in m/s.

    Returns number

    The current speed of the warp drive in m/s.

  • Returns true if the warp drive is disabled. Returns false otherwise.

    Returns boolean

    True if the warp drive is disabled. Returns false otherwise.

  • Returns true if the warp drive is disengaging. Returns false otherwise.

    Returns boolean

    True if the warp drive is disengaging. Returns false otherwise.

  • Returns true if the warp drive is enabled and not disengaging. Returns false otherwise.

    Returns boolean

    True if the warp drive is enabled and not disengaging. Returns false otherwise.