MinchinWeb's MetaLibrary
v.9
Library functions of OpenTTD AI writers.

Constants. More...
Static Public Member Functions  
function  Infinity () 
A number close enough to infinity to work for our purposes here. More...  
function  FloatOffset () 
Used to compare floating point numbers to determine if they are "equal". More...  
function  Pi () 
Pi (π = 3.14...) to 31 decimal places. More...  
function  e () 
Euler's number (e = 2.718...) to 31 decimal places. More...  
function  IndustrySize () 
Industries are assumed to fit within a 4x4 box. More...  
function  InvalidIndustry () 
Number returned by OpenTTD for an invalid industry (65535) More...  
function  InvalidTile () 
A number beyond the a valid TileIndex. More...  
function  BuoyOffset () 
This is the assumed minimum desired spacing between buoys. More...  
function  WaterDepotOffset () 
This is the maximum desired spacing between docks and depots. More...  
function  MaxStationSpread () 
Returns the OpenTTD setting for maximum station spread. More...  
Constants.
In general, these are constants used by other sublibraries within MetaLibrary.
Definition at line 42 of file Constants.nut.

inlinestatic 
This is the assumed minimum desired spacing between buoys.
Definition at line 108 of file Constants.nut.

inlinestatic 
Euler's number (e = 2.718...) to 31 decimal places.
Definition at line 81 of file Constants.nut.

inlinestatic 
Used to compare floating point numbers to determine if they are "equal".
Two floating point numbers (i.e. numbers with decimal points) are considered to be equal if they differ by less than this value.
Definition at line 71 of file Constants.nut.

inlinestatic 
Industries are assumed to fit within a 4x4 box.
Definition at line 87 of file Constants.nut.

inlinestatic 
A number close enough to infinity to work for our purposes here.
Definition at line 53 of file Constants.nut.

inlinestatic 
Number returned by OpenTTD for an invalid industry (65535)
Definition at line 93 of file Constants.nut.

inlinestatic 
A number beyond the a valid TileIndex.
Valid (or invalid, if you prefer) for at least up to 2048x2048 maps.
Definition at line 102 of file Constants.nut.

static 
Returns the OpenTTD setting for maximum station spread.
Definition at line 124 of file Constants.nut.

inlinestatic 
Pi (π = 3.14...) to 31 decimal places.
Definition at line 76 of file Constants.nut.

inlinestatic 
This is the maximum desired spacing between docks and depots.
Definition at line 114 of file Constants.nut.