* enumGateways(), gives array of objects with x1, y1, x2, y2 properties
3.2+ only
enumGateways()
Return an array containing all the gateways on the current map. The array contains object with the properties x1, y1, x2 and y2.
Gateways are special invisible marks on the map that hint AIs to build hardpoints on them. They are painted by the map maker (of course, some map makers are lazy enough to paint them). Each gateway is a line segment of adjacent map tiles. Nexus AI fills the whole line with best hardpoints available, except two middle tiles (any two middle tiles in case gateway has odd length); i guess any AI should do the same.
http://developer.wz2100.net/wiki/MappingTips#Botsandgateways