r17043 was committed after
you posted your library, so it wasn't possible before
(guess what was the reason for that commit)
(thats happen too, long time ago
Have no time yet to generate html documentation now, please read the code instead, or read below
After fixing things around, named this as RC1 version, wich is contain :
1. AILib.Common :
--function ACall() an acall replacement to allow you execute do command with array as arguments
--function GetVersion() return the table of current version of OTTD ran
--Class AIRoadTypeList() to get available Road type in game as AIList
--Class AIPlaneTypeList() to get all plane type as AIList
(the last two class above would be removed if API made them)
2. AILib.List :
--extends AIList() with several new function
--constructor argument is now optional.
--Not overriding Valuate -- not changed
--function DoValuate -- if what you want is to execute do command inside valuator. It need "this" as argument
--Integrating AITileList() methode with new implementation.
--Emulate Queue mode (Pop, Peek, Push) <- ambiguous isn't ..?
-- extends AITile. Right now only two function available
-- Tile.IsMine() to check if I am the owner
-- Tile.IsCompetitorTile() to check if my competitor owned that.
However, my english is not that good, I really need your correction for such a function names, or documentation to make this library self-descriptive.
Another question :: Which is better, Make this all as single library or separate them for each category. ?
Correct me If I am wrong - PM me if my English was bad