summaryrefslogtreecommitdiff
path: root/src/ai
AgeCommit message (Collapse)Author
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-28(svn r17298) -Fix [FS#3153]: reloading an AI started a new AI in the first ↵yexo
available company slot causing other AIs to be started
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-23(svn r17271) -Fix: SetFill sometimes used 1/0 when it should be using true/falserubidium
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-08-21(svn r17247) -Change: move '3rd party' MD5 implementation also to the ↵rubidium
3rdparty directory.
2009-08-20(svn r17237) -Update: AI changelogyexo
2009-08-20(svn r17233) -Fix (r17232): typoyexo
2009-08-20(svn r17232) -Fix (r17223): Kill an AI when it tries to Sleep / execute a ↵yexo
DoCommand during Save() instead of failing to save
2009-08-20(svn r17231) -Fix [FS#3134]: AIs that crashed during Save() weren't killed ↵yexo
as they should
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
2009-08-09(svn r17130) -Fix [FS#3099]: Last line of output in the AI debug window did ↵alberth
not fit entirely.
2009-08-08(svn r17125) -Cleanup: remove an unused variableyexo
2009-08-08(svn r17124) -Codechange: store subsidies in a pool (instead of an array)smatz
2009-08-08(svn r17115) -Add [NoAI]: AISubsidy::SubsidyParticipantType, ↵smatz
AISubsidy::GetSourceType, AISubsidy::GetSourceIndex, AISubsidy::GetDestinationType, AISubsidy::GetDestinationIndex for better subsidy management -Change [NoAI]: mark AISubsidy::SourceIsTown, AISubsidy::GetSource, AISubsidy::GetDestinationType, AISubsidy::GetDestination as deprecated
2009-08-08(svn r17113) -Change [FS#265][FS#2094][FS#2589]: apply the subsidy when ↵smatz
subsidy's destination is in station's catchment area and cargo packets originate from subsidy's source -Change [FS#1134]: subsidies aren't bound to stations after awarding anymore, they still apply to town or industry, no matter what station is used for loading and unloading. Awarded subsidies from older savegames are lost -Change [NoAI]: due to these changes, AISubsidy::GetSource and AISubsidy::GetDestination now return STATION_INVALID for awarded subsidies
2009-08-08(svn r17112) -Change [NoAI]: AIVehicleList_Station now also works for waypointsyexo
2009-08-08(svn r17111) -Fix (r17110): forgot to include ai_log.hppyexo
2009-08-08(svn r17110) -Fix [NoAI]: Print a warning message in the AI console when a ↵yexo
deprecated function is used
2009-08-08(svn r17109) -Fix (r15027): squirrel_export.sh failed for some localessmatz
2009-08-07(svn r17107) -Codechange: store type of subsidy source and destination in ↵smatz
the Subsidy struct instead of determining it every time it's needed
2009-08-06(svn r17094) -Update: AI changelogrubidium
2009-08-05(svn r17075) -Codechange: rename ~750 strings to be more uniform with their ↵rubidium
relatives
2009-08-05(svn r17072) -Fix: don't let squirrel export make a 'stub' for ai_changelog.hpprubidium
2009-08-04(svn r17062) -Change: unify the naming of some 125 stringsrubidium
2009-08-02(svn r17049) -Fix [NoAI]: documentation of AITile::LevelTiles was wrongyexo
2009-08-02(svn r17044) -Codechange: ai windows use nested widget tree.alberth
2009-08-02(svn r17043) -Change [NoAI]: Load the API before compiling an AI script so ↵yexo
AIs can subclass API classes and use API constants as part of their own constants
2009-08-01(svn r17028) -Fix (r17019): a function and class were not mentioned in the ↵rubidium
changelog
2009-08-01(svn r17019) -Doc: add AI API changelogyexo
2009-08-01(svn r17016) -Add [NoAI]: AICompany::Get/Set PresidentGenderyexo
2009-07-31(svn r17014) -Add [NoAI]: AIEngine::GetDesignDateyexo
2009-07-31(svn r17012) -Add [NoAI]: AIBaseStation::GetConstructionDateyexo
2009-07-31(svn r17011) -Change [NoAI]: Add AIBaseStation as a parentclass for ↵yexo
AIStation and AIWaypoint, and move GetName, SetName and GetLocation to AIBaseStation Remove (nearly) all references to WaypointID and replace them with StationID
2009-07-31(svn r17006) -Fix (r17005): gcc compile failurerubidium
2009-07-31(svn r17005) -Add [NoAI]: AIAbstractList::SORT_ASCENDING / SORT_DESCENDINGyexo
2009-07-30(svn r16999) -Fix (r16993): AIs couldn't build waypoints anymorerubidium