summaryrefslogtreecommitdiff
path: root/src/ai
AgeCommit message (Collapse)Author
2009-03-15(svn r15721) -Change: give a more useful (for 'normal' users) error message ↵rubidium
when there's no AI and they want to play with an AI
2009-03-15(svn r15718) -Cleanup: apply some comment coding style on the rest of the ↵rubidium
sources too
2009-03-14(svn r15716) -Change [NoAI]: AI libraries should now be stored in ↵yexo
ai/library/<library_name>/ instead of ai/library/<category_name>/<library_name>/. Libraries inside tar files are not affected.
2009-03-14(svn r15711) -Codechange: lots of whitespace cleanup/fixesrubidium
2009-03-14(svn r15708) -Feature [FS#2728]: Pop up the AI Debug Window if one of the ↵yexo
AIs crashed and show a message that the user should report the crash.
2009-03-13(svn r15705) -Fix: Do not show passenger-/mail-capacity if the aircraft ↵frosch
carries only cargo.
2009-03-12(svn r15684) -Add [NoAI]: AIOrder::SkipToOrder().yexo
2009-03-11(svn r15668) -Fix: a few typos.yexo
2009-03-09(svn r15658) -Fix [NoAI]: Rewrite AIAbstractList::Valuate to make it more ↵yexo
readable and fix a crash if no parameters are given to that function.
2009-03-07(svn r15638) -Fix: there is a time in your life you should stop coding for a ↵truebrain
project. You know that time is there when you make two huge mistakes in just 10 lines of code. I wish you all the best of luck :) (ps: HUGE mistakes!)
2009-03-06(svn r15630) -Fix (r15027): Make sure OpenTTD loads the dummy AI script when ↵yexo
no other AI is available instead of a non-existing file.
2009-03-04(svn r15616) -Change [API CHANGE]: Rename AIOrder::ChangeOrder() to ↵yexo
AIOrder::SetOrderFlags().
2009-03-04(svn r15614) -Add [NoAI]: AIVehicleList_Group(group_id) and ↵yexo
AIVehicleList_DefaultGroup(vehicle_type).
2009-02-26(svn r15587) -Fix (r15345): I should really test even those simple api ↵yexo
functions better.
2009-02-23(svn r15563) -Change [API CHANGE]: Remove AIIndustry::GetMaxIndustryID().yexo
2009-02-23(svn r15562) -Change: Use GetName() to determine the unique AI name instead ↵yexo
of GetInstanceName() to make branching of AIs easier.
2009-02-23(svn r15558) -Cleanup: Remove some unnecessary friend declarations.yexo
2009-02-21(svn r15541) -Revert (r15399): 'v->cargo_type' is also used in other places, ↵frosch
which cannot accept CT_INVALID. -Codechange: Add Engine::GetDefaultCargoType() and Engine::CanCarryCargo() and use them. -Fix [FS#2617]: When articulated parts have no available default cargo, use the cargo type of the first part for livery selection. -Change: To decide whether a vehicle is refittable do not test its current capacity for being zero, but always use the 'capacity property'. Note: The property is used unmodifed without calling CB 15/36. By setting it to a non-zero value and returning zero in the callback vehicles can be refitted to/from zero capacity for e.g. livery effects. Note: It is intentional that you cannot control refittability by CB 36.
2009-02-21(svn r15538) -Fix (r15334): The difficulty level wasn't set to custom when ↵yexo
changing the amount of towns/industries from the newgame gui.
2009-02-21(svn r15535) -Fix (r15460, pre noai merge): use '.' as 'any' for squirrel ↵glx
calls typechecking as stated in squirrel docs
2009-02-20(svn r15530) -Fix (r15519): The AIWaypoint classes were not exported to ↵yexo
squirrel.
2009-02-19(svn r15527) -Fix (r15526): A ')' too much.yexo
2009-02-19(svn r15526) -Add [NoAI]: Support for conditional orders.yexo
2009-02-19(svn r15524) -Add [NoAI]: AIEngine::GetPower, AIEngine::GetWeight and ↵yexo
AIEngine::GetMaxTractiveEffort.
2009-02-19(svn r15520) -Cleanup [NoAI]: Fix some typos, unify the comment style and ↵yexo
update some documentation since a few enums have been renamed.
2009-02-19(svn r15519) -Add [NoAI]: support for waypoints by adding ↵yexo
AIRail::Build/Remove RailWaypoint, AIWaypoint and AIWaypointList.
2009-02-14(svn r15494) -Change [API CHANGE]: Split AIRoad::BuildRoadStation in ↵yexo
BuildRoadStation and BuildDriveThroughRoadStation.
2009-02-14(svn r15492) -Change [API CHANGE]: Split AIVehicle::MoveWagon in MoveWagon ↵yexo
and MoveWagonChain (frosch).
2009-02-14(svn r15491) -Change [API CHANGE]: AIMarine::BuildWaterDepot now accepts a ↵yexo
front tile instead of a bool is_vertical (frosch).
2009-02-14(svn r15490) -Change [API CHANGE]: Remove AIBridge::GetYearAvailable. ↵yexo
AIBridge::IsValidBridge now only returns true for available bridges.
2009-02-14(svn r15489) -Change [API CHANGE]: Remove AIAirport::AirportAvailable. ↵yexo
AIAirport::IsValidAirportType now only returns true for available AirportTypes.
2009-02-14(svn r15488) -Change [API CHANGE]: Add support for distant-join stations.yexo
2009-02-14(svn r15487) -Change [API CHANGE]: Remove the never implemented function ↵yexo
AIEventVehicleCrashed::CloneCrashedVehicle.
2009-02-14(svn r15486) -Change [API CHANGE]: Remove AITown::GetMaxTownID.yexo
2009-02-14(svn r15485) -Change [API CHANGE]: Split AIIndustry::HasHeliportAndDock and ↵yexo
GetHeliportAndDockLocation in HasHeliport/HasDock and GetHeliportLocation/GetDockLocation.
2009-02-14(svn r15484) -Change [API CHANGE]: Remove AICompany::GetCompanyName and ↵yexo
SetCompanyName. They've been replaced with GetName and SetName.
2009-02-14(svn r15483) -Change [API CHANGE]: Remove AIIndustry::GetProduction, use ↵yexo
AIIndustry::GetLastMonthProduction instead.
2009-02-14(svn r15482) -Fix [NoAI]: Typos in api docs.yexo
2009-02-14(svn r15481) -Fix [NoAI]: Make sure AIs can't call functions they shouldn't ↵yexo
call.
2009-02-14(svn r15479) -Fix: Documentation of AIIndustryType::CanBuildIndustry().frosch
2009-02-13(svn r15470) -Fix [NoAI]: Check the types of the parameters passed to ↵yexo
AddSetting, AddLabels and RegisterAI.
2009-02-13(svn r15467) -Fix [NoAI]: AIs with an error in their info.nut are no longer ↵yexo
available in-game.
2009-02-13(svn r15466) -Fix (r15330): The squirrel instance object was freed twice if ↵yexo
an info.nut failed to compile.
2009-02-13(svn r15465) -Codechange: constify most of AIInfo/AIFileInfo methods, move ↵smatz
definition of very simple getters to header file
2009-02-13(svn r15464) -Codechange [NoAI]: Call all info.nut functions exactly once ↵yexo
and only during initialization.
2009-02-13(svn r15463) -Change [API CHANGE]: Replace ↵yexo
AIInfo::CanLoadFromVersion(version) with AIInfo::MinVersionToLoad() which should return a single integer, the minimum version the AI is able to load data from.
2009-02-13(svn r15462) -Change [NoAI]: Make AIController::GetTick() and ↵yexo
AIController::GetSetting() static functions. -Fix (r15460): ai_controller.hpp.sq was forgotten.
2009-02-12(svn r15460) -Fix [NoAI]: don't require an instance to exist in the scope ↵rubidium
for static functions and limit exposure of the internal function GetClassName.
2009-02-11(svn r15441) -Cleanup: Use a return value instead of passing a pointer to ↵yexo
where the result should be stored.
2009-02-10(svn r15440) -Fix: Backup AIObject::GetAllowDoCommand and restore the old ↵yexo
value so AIs can't work around it.