MinchinWeb's MetaLibrary  v.9
Library functions of OpenTTD AI writers.
Todo List
Member _MinchinWeb_Array_::ContainedIn1D (InArray, SearchValue)
Add error check that an array is provided
Member _MinchinWeb_Array_::ContainedIn1DIn2D (InArray2D, SearchArray1D)
Add error check that arrays are provided
Member _MinchinWeb_Array_::ContainedIn2D (InArray, SearchValue)
Add error check that an array is provided
Member _MinchinWeb_Array_::ContainedIn3D (InArray, SearchValue)
Add error check that an array is provided
Member _MinchinWeb_Array_::ContainedInPairs (InArray2D, SearchValue1, SearchValue2)
Add error check that a 2D array is provided
Member _MinchinWeb_Array_::Find1D (InArray, SearchValue)
Add error check that an array is provided
Member _MinchinWeb_Array_::Find2D (InArray, SearchValue)
Add error check that an array is provided
Member _MinchinWeb_Array_::Find3D (InArray, SearchValue)
Add error check that an array is provided
Member _MinchinWeb_Array_::FindPairs (InArray2D, SearchValue1, SearchValue2)
Add error check that a 2D array is provided
Member _MinchinWeb_Array_::InsertValueAt (InArray, Index, Value)

Add error check that an array is provided

Add error check that Index is reasonable

Member _MinchinWeb_Array_::RemoveDuplicates (Array)
Add error check that an array is provided.
Member _MinchinWeb_Array_::RemoveValueAt (InArray, Index)
Add error check that an array is provided
Member _MinchinWeb_Array_::ToAIList (Array)
Add error check that an array is provided.
Member _MinchinWeb_Array_::ToString1D (InArray, DisplayLength=true, replaceNull=false)
Add error check that an array is provided
Member _MinchinWeb_Array_::ToString2D (InArray, DisplayLength=true)
Add error check that a 2D array is provided
Member _MinchinWeb_Array_::ToStringTiles1D (InArrayOfTiles, ArrayLength=false)

Add error check that an array is provided

Add a better error message if you try and feed it not a 1-D array

Member _MinchinWeb_Array_::ToStringTiles2D (InArrayOfTiles, ArrayLength=false)

Add error check that an array is provided

Add a better error message if you try and feed it not a 2-D array

Member _MinchinWeb_C_::FloatOffset ()
Convert from an absolute number to a percentage.
Member _MinchinWeb_C_::InvalidTile ()
Check that this is still valid on 4096x4096 maps.
Member _MinchinWeb_DLS_::FindPath (cycles=10000)
stop ignoring the passed parameter of cycles
Member _MinchinWeb_DLS_::SetDatum (NewDatum)
Add error check
Member _MinchinWeb_Extras_::MinDistance (TileID, TargetArray)
Remove invalid tiles from the TargetArray
Member _MinchinWeb_LW_::Slope (Slope, ThirdQuadrant=false)
Add a picture of the four Cartesian quadrants
Member _MinchinWeb_Marine_::BuildDepot (DockTile, Front, NotNextToDock=true)
Check documentation of parameters.
Member _MinchinWeb_Marine_::NearestDepot (TileID)

Add check that depot is connected to the given TileID.

Check that there is a depot to return.

Member _MinchinWeb_Marine_::RateShips (EngineID, Life, Cargo)

Add example of validator code.

Implement ship capacity in given cargo.

Class _MinchinWeb_RoadPathfinder_

upgrade slow bridges along path

convert existing level crossings (road/rail) to road bridge

do something about one-way roads - build a pair? route around?

Add example usage code.

allow pre-building of tunnels and bridges

Member _MinchinWeb_ShipPathfinder_::WaterHo (StartTile, Slope, ThirdQuadrant=false)

Add image showing the Cartesian quadrants.

Move to _MinchinWeb_Marine_

Member _MinchinWeb_Station_::DistanceFromStation (VehicleID, StationID)

Add check that supplied VehicleID and StationID are valid

Add example of valuator code

Member _MinchinWeb_Station_::IsCargoAccepted (StationID, CargoID)
Add example of valuator code
Class _MinchinWeb_SW_
add image showing the walk out pattern
Member _MinchinWeb_SW_::GetStage ()
Add an image showing how stages are counted
Member _MinchinWeb_SW_::GetStep ()
Add an image showing how steps are counted
Class _MinchinWeb_WBC_
Add a cost for turns that then this would function as a 'real' pathfinder (maybe...)
Member _MinchinWeb_WBC_::_Neighbours (self, path, cur_node)
Add diagonals to possible neighbours
page About MetaLibrary

Notes about static classes, what they are, and which classes are 'static'

Consider Fibonacci Heap version in NoCAB

Add picture of in game downloader

Look into theming dOxygen output

Add 'News' tab pointing back to my Blog updates on MetaLibrary

globalScope> Member PresetOriginal
Add image showing how the Ship Pathfinder works
globalScope> Member PresetOriginal
Add image showing how the Ship Pathfinder works