summaryrefslogtreecommitdiff
path: root/src/ai/api
AgeCommit message (Collapse)Author
2009-11-26(svn r18299) -Update: the ai changelog documentrubidium
2009-11-24(svn r18276) -Fix: [NoAI] Make AIIndustryType::GetConstructionCost() return ↵frosch
-1, if the industry is neither buildable nor prospectable.
2009-11-07(svn r18005) -Codechange: Convert the Prices struct into an array and an enum.frosch
2009-11-05(svn r17976) -Codechange: Move CargoClass to cargotype.h and clean up ↵frosch
including of newgrf_cargo.h
2009-10-28(svn r17898) -Fix: [NoAI] Improve behaviour of ↵frosch
(AIEngine|AIEventEnginePreview)::GetCargoType() and AIEngine::CanRefitCargo() wrt. articulated vehicles.
2009-10-06(svn r17728) -Cleanup: Remove some more unneeded/unused parameters.frosch
2009-10-05(svn r17719) -Change: [NoAI] Make AIEngine:CanRefitCargo() not report ↵frosch
refittability to Mail by default for aircraft. It is not necessarily true, and the special case of carrying both passenger&mail is better handled by AIs themself than by the API.
2009-10-04(svn r17700) -Codechange: Integrate ShipVehicleInfo::refittable into ↵frosch
EngineInfo::refit_mask during initialisation.
2009-10-04(svn r17697) -Codechange: coding style in the automatically generated ↵rubidium
squirrel wrapper code
2009-10-04(svn r17694) -Codechange: don't break $ to two lines in squirrel_export.awksmatz
2009-10-04(svn r17693) -Cleanup: remove some unneeded includesrubidium
2009-10-04(svn r17692) -Codechange: minor coding style fixessmatz
2009-09-23(svn r17627) -Document [FS#3216]: The remaining functions in info.nutyexo
2009-09-23(svn r17621) -Document [FS#3216]: most of the functions an AI can/must use ↵rubidium
in their instantiation of AIInfo.
2009-09-20(svn r17593) -Fix (r17591): as always after a noai commit ...yexo
2009-09-20(svn r17591) -Add [NoAI] [FS#3212]: ↵yexo
AIAirport::IsAirportInformationAvailable. Also update several preconditions so it's now possible to get information on airports types that can no longer be build (small airport after 1960)
2009-09-19(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, ↵rubidium
which were sometimes missing and sometimes just typos
2009-09-18(svn r17566) -Fix: ai_basestation.hpp.sq linked to the wrong header; it did ↵rubidium
work though
2009-09-13(svn r17531) -Fix: wrong @file for ai_basestation.hpprubidium
2009-09-11(svn r17500) -Fix (r16502): The wrong value was restored to ↵yexo
SetAllowDoCommand possible resulting in an AI that wasn't allowed to do any actions
2009-09-10(svn r17495) -Codechange: replace 'Depot::Get(GetDepotIndex(tile))->index' ↵rubidium
with GetDepotIndex(tile)
2009-09-09(svn r17486) -Add [NoAI]: a vehicle list for all vehicle that are ordered to ↵rubidium
a specific depot
2009-09-09(svn r17484) -Fix: squirrel export didn't like one of the castsrubidium
2009-09-08(svn r17478) -Document [NoAI]: descibe changes in subsidy logic in AI changelogsmatz
2009-09-08(svn r17471) -Change: when removing a station or waypoint keep the rail ↵rubidium
unless Ctrl is pressed. This makes the behaviour consistent between the two.
2009-09-07(svn r17469) -Change: make the AI compatability wrapper not whine about ↵rubidium
deprecation (yet), but make it clear that the wrapper is running and what (slight) changes there are w.r.t. to 0.7.
2009-09-07(svn r17446) -Codechange: rename BUILD with BUY for strings that are about ↵rubidium
building (in the future buying) vehicles.
2009-09-04(svn r17414) -Codechange: only send/read the number of bits that can be ↵rubidium
actually useful when building industries
2009-09-03(svn r17411) -Codechange: silence an ICC compile warningrubidium
2009-09-02(svn r17386) -Fix (r17011): AIBaseStation::IsValidBaseStation() returned ↵yexo
false for stations with OWNER_NONE
2009-09-02(svn r17378) -Fix [NoAI]: Several AITile::* functions didn't check whether ↵yexo
their parameters were valid
2009-09-01(svn r17345) -Fix [FS#2769]: one wasn't offered to take over bankrupt ↵rubidium
companies anymore; caused by the introduction NoAI, although NewAI had the same problem too.
2009-09-01(svn r17344) -Codechange: splash of coding style over ai_event_types.*rubidium
2009-08-30(svn r17316) -Codechange: use Industry::GetByTile() instead of ↵smatz
GetIndustryByTile()
2009-08-29(svn r17307) -Fix [NoAI]: AIRail::RemoveRailTrack returned ↵yexo
ERR_PRECONDITION_ERROR for road/rail-crossings
2009-08-27(svn r17294) -Add [NoAI]: AITown::GetLastMonthTransportedPercentage and ↵smatz
AIIndustry::GetLastMonthTransportedPercentage
2009-08-27(svn r17293) -Fix [NoAI]: AITown::GetLastMonthTransported didn't work as ↵smatz
documented at all, make it return what AITown::GetLastMonthProduction did -Change [NoAI]: mark AITown::GetMaxProduction as deprecated, AITown::GetLastMonthProduction returns now the value GetMaxProduction did
2009-08-27(svn r17292) -Codechange: use unified ToPercent() function to convert fract ↵smatz
numbers to percents
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-08-20(svn r17237) -Update: AI changelogyexo
2009-08-20(svn r17230) -Fix (r15027): don't assert when an AI uses AI*Mode objects ↵yexo
incorrectly but crash the AI instead
2009-08-20(svn r17228) -Codechange: some coding style fixesrubidium
2009-08-19(svn r17223) -Change [NoAI] [FS#2980]: Crash an AI when it uses a DoCommand ↵yexo
/ Sleep instead of just printing an error message in the AI Debug Window
2009-08-19(svn r17221) -Change [NoAI] [FS#3101]: when the API requests a string as ↵yexo
parameter allow every squirrel type and convert to a string
2009-08-19(svn r17220) -Fix (r15027): don't ignore white space changes (e.g. alignment ↵rubidium
fixes) in the exporter
2009-08-18(svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. ↵yexo
Return "0.7" to get an api compatible (as much as possible) with the 0.7 api or "0.8" to get the latest api. -Change [NoAI]: move all deprecated functions to a separate squirrel script that is only loaded if an AI requests an old API version.
2009-08-16(svn r17203) -Change [NoAI]: Add IsRoadTypeAvailable(GetCurrentRoadType()) ↵yexo
as precondition for several AIRoad::* functions
2009-08-16(svn r17201) -Fix [NoAI]: don't say you're building a depot when you're ↵rubidium
actually building a station (API docs typo)
2009-08-15(svn r17193) -Fix [FS#3124]: guard the valuator against 'external' ↵rubidium
modifications of the valuated list which could cause it to go into an infinite loop.
2009-08-09(svn r17131) -Codechange: apply coding style to some switch statementssmatz