API change: removal of AIAbstractList

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
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

API change: removal of AIAbstractList

Post by Yexo »

In r20562/r20563 AIAbstractList has been removed. All functions previously in AIAbstractList are now part of AIList. AIs using the 0.7 or 1.0 API are not affected, but AIs using the 1.1 API (which is not stable until 1.1 comes out) are, so please update your AIs.

Also AIList::ChangeItem has been removed as it was a duplicate of AIAbstractList::SetValue (now AIList::SetValue). Again AIs using the 0.7 or 1.0 API are not affected.
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: API change: removal of AIAbstractList

Post by Lord Aro »

Damn!
AroAI is the only released AI that uses 1.1API (i think)
I hate you. :p
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: API change: removal of AIAbstractList

Post by Yexo »

From http://noai.openttd.org/docs/trunk/ai__ ... _8hpp.html
Changelog wrote:1.1.0 is not yet released. The following changes are not set in stone yet.
In other words: the 1.1.0 API will only be stable when we get very close to a release.
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 7 guests