summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_order.cpp
AgeCommit message (Collapse)Author
2011-11-29(svn r23354) -Codechange: move all src/ai/api/ai_*.[hc]pp files to ↵truebrain
src/script/api/script_* (Rubidium)
2011-11-08(svn r23162) -Fix (r23133): Silence gcc warning.frosch
2011-11-08(svn r23135) -Fix (r23133): always compile before commityexo
2011-11-08(svn r23133) -Fix [FS#4823]: AIOrder didn't handle implicit orders correctly ↵yexo
in all cases
2011-11-08(svn r23131) -Fix (r16165): AIOrder::IsCurrentOrderPartOfOrderList return ↵yexo
false for valid vehicles and crashed for invalid ones
2011-11-05(svn r23122) -Fix (23120): Silence GCC warning.michi_cc
2011-11-05(svn r23120) -Feature: [NoAI] Support for refit orders.michi_cc
2011-10-25(svn r23057) -Fix: [NoAI] AIOrder::GetOrderCount() did not hide implicit orders.frosch
2011-09-01(svn r22863) -Fix (r22861): AIOrder::SetOrderCondition didn't accept the new ↵yexo
condition
2011-08-31(svn r22861) -Add: [NoAI] support the new conditional order introduced in ↵yexo
r22858 (Zuu)
2011-05-18(svn r22473) -Codechange: Automatic orders are better called implicit orders ↵planetmaker
as no real order influencing path finding is added
2011-05-01(svn r22396) -Document: some AI doxygen stuffrubidium
2011-02-06(svn r21992) -Fix [FS#4467]: AIs trying to change the ↵yexo
AIOF_GOTO_NEAREST_DEPOT flag for existing orders triggered an assert. Explicitly forbid this as precondition for SetOrderFlags
2011-01-31(svn r21933) -Codechange: Split cur_order_index into cur_auto_order_index ↵frosch
and cur_real_order_index to keep track of the current real order in an unambiguous way. -Fix [FS#4440]: Automatic orders behave now stable wrt. service orders and are not added or removed depending on the need of servicing. -Fix: Various other issues with automatic orders, e.g. vehicles getting stuck with "no orders" when there are automatic orders at the end of the order list.
2011-01-23(svn r21900) -Fix: [NoAI] hide automatic orders from AIs as they have no way ↵yexo
of dealing with them
2011-01-22(svn r21890) -Cleanup: remove some unneeded includesrubidium
2011-01-22(svn r21888) -Codechange: remove some unneeded (for the AI header) headers ↵rubidium
from some AI headers, reducing the include tree
2010-12-21(svn r21571) -Codechange: Having a break after a return is no good.alberth
2010-08-19(svn r20571) -Codechange: free/reserve some bits in the order commands to ↵rubidium
increase the vehicle pool limit
2010-08-06(svn r20389) [NoAI] -Add: AIOrder::IsVoidOrder to find void "(Invalid ↵rubidium
Order)" orders. [NoAI] -Change: AIOrder::GetOrderFlags returns AIOrder::AIOF_INVALID for void orders.
2010-03-19(svn r19464) -Codechange: move GetHangarTile to Airportyexo
2010-03-19(svn r19463) -Codechange: add helper function to determine if an airport has ↵yexo
at least one hangar
2010-03-18(svn r19455) -Codechange: split all airport information in Station to a ↵yexo
seperate class
2010-02-22(svn r19198) -Codechange: store the size of stations in savegamesyexo
2010-02-04(svn r19014) -Add: [NoAI] AIOrder::[G|S]etStopLocation to get/set the stop ↵yexo
location of trains in a rail station
2010-01-27(svn r18925) -Fix (r18924): a waypoint can have a buoy but no rail waypoint tileyexo
2010-01-27(svn r18924) -Fix [NoAI]: AIOrder::GetOrderDestination could return a ↵yexo
non-waypoint tile when the waypoint was a multitile waypoint
2010-01-18(svn r18860) -Codechange: introduce a wrapper to get an hangar tile from a ↵yexo
station
2010-01-15(svn r18807) -Codechange: introduce AirportSpec and move several ↵yexo
non-statemachine-related variables to there
2009-12-30(svn r18667) -Fix [FS#3454]: [NoAI] crash when trying to get the order ↵rubidium
destination of a 'nearest depot' order
2009-12-16(svn r18518) -Add [NoAI]: AIOrder::AIOF_GOTO_NEAREST_DEPOT for goto nearest ↵yexo
depot orders
2009-12-12(svn r18471) -Codechange/Fix: [NoAI] Deduplicate code betweeen ↵frosch
AIVehicle::SkipToVehicleOrder and AIOrder::SkipToOrder. They are the same. Also ORDER_CURRENT was not allowed for the latter, but well...
2009-10-04(svn r17693) -Cleanup: remove some unneeded includesrubidium
2009-09-10(svn r17495) -Codechange: replace 'Depot::Get(GetDepotIndex(tile))->index' ↵rubidium
with GetDepotIndex(tile)
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
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-07-26(svn r16966) -Codechange: BEGIN_TILE_LOOP and END_TILE_LOOP reworked into ↵rubidium
TILE_LOOP, which means no more duplication of parameters between BEGIN_TILE_LOOP and END_TILE_LOOP
2009-07-25(svn r16948) -Codechange: some code reductions and usage of wrapper functionsrubidium
2009-07-25(svn r16947) -Codechange: use TileArea instead of train_tile, trainst_w and ↵rubidium
trainst_h.
2009-07-22(svn r16912) -Codechange: split waypoint.h in waypoint_base.h and ↵rubidium
waypoint_func.h
2009-07-22(svn r16909) -Fix [FS#2996]: NewGRF stations would be triggering assertions ↵rubidium
all over the place when using the more advanced station types. -Change: make (rail) waypoints sub classes of 'base stations', make buoys waypoints and unify code between them where possible.
2009-07-10(svn r16785) -Codechange: make ships going to buoys use OT_GOTO_WAYPOINT toorubidium
2009-06-24(svn r16646) -Codechange: rename GetDepotByTile() to Depot::GetByTile()smatz
2009-06-24(svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile()smatz
2009-06-23(svn r16640) -Codechange: move roadstop stuff to separate filessmatz
2009-06-01(svn r16491) -Codechange: Added parentheses around bitwise operators for ↵alberth
code style.
2009-05-23(svn r16397) -Codechange: move GetVehicleOrder/GetLastVehicleOrder into Vehiclerubidium
2009-05-16(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)smatz
2009-05-06(svn r16239) -Fix (r16199): Use the stop/non-stop intermediate orderflags ↵yexo
AIs can give for goto-depot orders
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'.