summaryrefslogtreecommitdiff
path: root/src/ai
AgeCommit message (Collapse)Author
2009-04-21(svn r16113) -Feature [NoAI]: Add UseAsRandomAI as function in info.nut. ↵yexo
When an AI returns false, it'll never be chosen as random AI.
2009-04-21(svn r16109) -Fix [NoAI]: Make sure AIOrder::GetDestination always returns a ↵yexo
tile belonging to the station
2009-04-21(svn r16108) -Fix [NoAI]: When giving an aircraft a goto-hangar order don't ↵yexo
let it be a normal goto-station order. Note to AI writers: AIOrder.AppendOrder(vehicle_id, AIStation.GetLocation(station_id)) will give a goto-hangar order for helistations (assuming the station sign is at it's default location).
2009-04-20(svn r16107) -Add [NoAI]: AIOF_STOP_IN_DEPOT to the orderflags in AIOrder to ↵yexo
allow stop-in-depot orders
2009-04-20(svn r16106) -Fix [NoAI]: AIOrder::SetOrderFlags always removed "Service if ↵yexo
needed" from goto-depot orders.
2009-04-19(svn r16094) -Fix: AIDebug window profiled the blitters by invalidating ↵frosch
itself unconditionally on repaint. OTOH it was not invalidated in other cases when needed.
2009-04-19(svn r16093) -Feature [FS#2808]: Add GetURL() as possible function to ↵yexo
info.nut. If AIs implement it, that url is shown when the AI crashes and also in the AI selection window.
2009-04-19(svn r16091) -Change [FS#2778]: Reverse the order of the lines in the AI ↵yexo
debug window
2009-04-15(svn r16062) -Fix (r16037): AIOrder::InsertOrder was broken. Default all AI ↵frosch
orders to 'stop at far end'.
2009-04-10(svn r16024) -Codechange: harden string copying on places where it's possiblerubidium
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.