summaryrefslogtreecommitdiff
path: root/src/ai/api
AgeCommit message (Collapse)Author
2009-05-02(svn r16199) -Codechange: Pass OrderNonStopFlags also to MakeGoToDepotOrder().frosch
-Fix: 'Go non-stop to nearest depot'-orders did not work wrt. the 'non-stop' part. -Fix: Adding 'Go to nearest depot'-orders did not respect the default setting for 'non-stop'.
2009-04-26(svn r16172) -Fix (r16171): typo (thanks SmatZ)yexo
2009-04-26(svn r16171) -Add [NoAI]: two new error codes to AITile: ↵yexo
ERR_AREA_ALREADY_FLAT and ERR_ESCAVATION_WOULD_DAMAGE.
2009-04-26(svn r16166) -Add [NoAI]: AITile::Get(Min|Max|Corner)Heightfrosch
2009-04-26(svn r16165) -Add [FS#2801] [NoAI]: several functions to AIOrder to check ↵yexo
the what kind of order an order is. -Fix: AIOrder::GetOrderDestination and AIOrder::GetOrderFlags didn't work on ORDER_CURRENT when the vehicle was loading/leaving in a station.
2009-04-26(svn r16158) -Codechange: fix the string alignment in all .hpp.sq filesyexo
2009-04-25(svn r16151) -Codechange: move some includes around to prevent including ↵yexo
half the AI api in non-noai related code.
2009-04-25(svn r16150) -Fix [NoAI]: Change WAYPOINT_INVALID to 0xFFFF from -1 as ↵yexo
that's the value the AIs got (due to casting). Clarify some api documentation.
2009-04-21(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had ↵rubidium
this ID' from 'some' strings and replace the string name with something more sensible.
2009-04-21(svn r16114) -Cleanup: unify some more strings and remove some more unused ↵rubidium
strings
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 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-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-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-21(svn r15789) -Codechange: Add DiagdirBetweenTiles() and use it.frosch
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-14(svn r15711) -Codechange: lots of whitespace cleanup/fixesrubidium
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-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-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 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 r15535) -Fix (r15460, pre noai merge): use '.' as 'any' for squirrel ↵glx
calls typechecking as stated in squirrel docs
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.