Oolite JavaScript Reference: Manifest
Prototype: Object
This class was added in Oolite test release 1.74.
Manifest
objects provide information about the cargo carried by the player.
Contents
Properties
food
food : Integer (read/write)
Quantity of food in the players ship.
textiles
textiles : Integer (read/write)
Quantity of textiles in the players ship.
radioactives
radioactives : Integer (read/write)
Quantity of radioactives in the players ship.
slaves
slaves : Integer (read/write)
Quantity of slaves in the players ship.
liquor/wines
liquor/wines : Integer (read/write)
Quantity of liquor/wines in the players ship.
(Other allowed spellings for this property are: liquor_wines and liquorWines
luxuries
luxuries : Integer (read/write)
Quantity of luxuries in the players ship.
narcotics
narcotics : Integer (read/write)
Quantity of narcotics in the players ship.
computers
computers : Integer (read/write)
Quantity of computers in the players ship.
alloys
alloys : Integer (read/write)
Quantity of alloys in the players ship.
firearms
firearms : Integer (read/write)
Quantity of firearms in the players ship.
furs
furs : Integer (read/write)
Quantity of furs in the players ship.
minerals
minerals : Integer (read/write)
Quantity of minerals in the players ship.
gold
gold : Integer (read/write)
Quantity of gold in the players ship.
platinum
platinum : Integer (read/write)
Quantity of platinum in the players ship.
gem-stones
gem-stones : Integer (read/write)
Quantity of gem-stones in the players ship.
(Other allowed spellings for this property are: gem_stones and gemStones
alien items
alien items : Integer (read/write)
Quantity of alien items in the players ship.
(Other allowed spellings for this property are: alien_items and alienItems
list
list : Array (read-only)
Array of dictionaries. Each dictionary contains the info for a commodity that is in the players hold:
commodity : String quantity : Integer commodityName : String (= display-name, can be different for different languages) unit : String ('t' = tons, 'kg' = kilograms, 'g' = grams)
e.g. Awarding the player with 10 tons of food can be achieved with:
Manifest.food += 10; or playerShip.manifest.food += 10; or Manifest["food"] += 10;
Static methods
toString
function toString() : String
(Unfinished yet)