I need reverse function to AIMap::GetTileIndex (answered)

Discuss the new AI features ("NoAI") introduced into OpenTTD 0.7, allowing you to implement custom AIs, and the new Game Scripts available in OpenTTD 1.2 and higher.

Moderator: OpenTTD Developers

Post Reply
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

I need reverse function to AIMap::GetTileIndex (answered)

Post by Kogut »

I have TileIndex
I need x,y-coordinate.
I tried to find it in NoAI API, but without results.
How to get that coordinates?

Thanks for answer
Last edited by Kogut on 02 Sep 2009 09:54, edited 2 times in total.
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: I need reverse function to AIMap::GetTileIndex

Post by Rubidium »

AIMap::GetTileX and AIMap::GetTileY would do the trick.
User avatar
Dustin
Transport Coordinator
Transport Coordinator
Posts: 272
Joined: 07 Dec 2005 19:22

Re: I need reverse function to AIMap::GetTileIndex

Post by Dustin »

Rubidium wrote:AIMap::GetTileX and AIMap::GetTileY would do the trick.
Speaking of which, maybe AIMap and AITile should be condensed in 0.8.0? AIMap doesn't have much and it's somewhat redundant with AITile.
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 7 guests