summaryrefslogtreecommitdiff
path: root/src/ai
AgeCommit message (Collapse)Author
2009-04-01(svn r15910) -Fix [FS#2777]: Clarify that TILE_INVALID is part of AIMap make ↵yexo
doxygen output some documentation for it.
2009-03-30(svn r15901) -Add: AIIndustryType::IsBuiltOnWater(), HasHeliport() and ↵frosch
HasDock(). Just like AIIndustry.
2009-03-29(svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() ↵alberth
callback
2009-03-28(svn r15881) -Fix (r15875): add an explicit cast so some compilers stop ↵yexo
complaining.
2009-03-28(svn r15875) -Add: AIBridge::GetBridgeID() so AIs can get the type of bridge ↵yexo
that are already build.
2009-03-26(svn r15860) -Add: AIRoad::GetRoadVehicleTypeForCargo() to tell whether a ↵frosch
certain cargo needs a bus- or a truckstop.
2009-03-26(svn r15859) -Documentation: Meaning of AICargo::CC_PASSENGERS wrt. bus- and ↵frosch
truckstops, and meaning of AICargo::IsFreight() wrt. freight train weight multiplier.
2009-03-25(svn r15852) -Codechange: New widgets for the AI windows.yexo
2009-03-25(svn r15844) -Codechange: allow text alignment to be forced so the console ↵rubidium
and ai debug output don't get swapped (those are untranslateable anyways)
2009-03-24(svn r15835) -Codechange: Prevent using the return value of DrawString as ↵yexo
much as possible.
2009-03-22(svn r15811) -Fix: left != right and as a result of that the ai debug window ↵rubidium
was kinda empty.
2009-03-22(svn r15806) -Codechange: pass both left and right to the vehicle details ↵rubidium
drawing functions instead of only the left.
2009-03-21(svn r15797) -Codechange: make users of the old DrawStringMultiLine use the ↵rubidium
new one.
2009-03-21(svn r15789) -Codechange: Add DiagdirBetweenTiles() and use it.frosch
2009-03-21(svn r15785) -Codechange: remove the *Truncated part of the old text drawing ↵rubidium
API.
2009-03-21(svn r15781) -Fix [NoAI]: Missing "AIs" in the information the debug AI prints.yexo
2009-03-19(svn r15774) -Fix (r15708): Don't show the message about reporting an AI ↵yexo
crash for the dummy AI.
2009-03-18(svn r15763) -Codechange/Fix: Add Engine::GetDisplayDefaultCapacity() and ↵frosch
use it everywhere, so CB 36 is also used everywhere.
2009-03-16(svn r15743) -Codechange: move the definitions of some fake squirrel types ↵yexo
to their own file.
2009-03-16(svn r15742) -Fix (r15736): AIs with an invalid info.nut weren't ignored ↵yexo
anymore.
2009-03-15(svn r15736) -Codechange: Split AIScanner/AIFileInfo to the more generic ↵yexo
classes ScriptScanner/ScriptFileInfo.
2009-03-15(svn r15723) -Codechange: use a constructor for WindowDescs as that makes ↵rubidium
expanding them much easier (Alberth)
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).