Oolite JavaScript Reference: Wormhole

From Elite Wiki
Revision as of 11:08, 8 July 2013 by Norby (talk | contribs) (Added in v1.79: Wormhole entity with properties arrivalTime, destination, expiryTime and origin.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Prototype: Entity
Subtypes: none

The Wormhole class is an Entity representing an opened gate to another System. A Wormhole has all the properties and methods of a Entity, and several others.

In v1.79 available for the entry Wormholes only.

Properties

arrivalTime

This property was added in Oolite test release 1.79.

arrivalTime : Number (read-only)

The game real time in seconds when the player will arrive to the other system if fly into the Wormhole. More info can be found in Time_scales_in_Oolite.

destination

This property was added in Oolite test release 1.79.

destination : System (read-only)

The Wormhole ending in this destination System.

expiryTime

This property was added in Oolite test release 1.79.

expiryTime : Number (read-only)

The Wormhole will collapse after this many seconds.

origin

This property was added in Oolite test release 1.79.

origin : System (read/write)

The Wormhole opened originally in this System.

In v1.79 always equal with the current System due to available for the entry Wormholes only.