summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_order.hpp
AgeCommit message (Collapse)Author
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-23(svn r21900) -Fix: [NoAI] hide automatic orders from AIs as they have no way ↵yexo
of dealing with them
2011-01-22(svn r21888) -Codechange: remove some unneeded (for the AI header) headers ↵rubidium
from some AI headers, reducing the include tree
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-08-01(svn r20288) -Doc: add doxygen string to all GetClassName functions (part of ↵yexo
all AI api classes)
2010-08-01(svn r20284) -Codechange: use ///< for single-line doxygen comments in the ↵yexo
AI code
2010-05-09(svn r19775) -Fix: improper use of 'then' in few comments (ln)smatz
2010-03-23(svn r19507) -Codechange: remove semicolon after DECLARE_POSTFIX_INCREMENT ↵smatz
and DECLARE_ENUM_AS_BIT_SET
2010-02-05(svn r19017) -Doc: [NoAI] A parameter wasn't documentedrubidium
2010-02-04(svn r19014) -Add: [NoAI] AIOrder::[G|S]etStopLocation to get/set the stop ↵yexo
location of trains in a rail station
2009-12-28(svn r18651) -Fix [FS#3438](r18518): [NoAI] When AI tried to create ↵smatz
NO_UNLOAD order, GOTO_NEAREST_DEPOT order was created instead
2009-12-16(svn r18518) -Add [NoAI]: AIOrder::AIOF_GOTO_NEAREST_DEPOT for goto nearest ↵yexo
depot orders
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-08-08(svn r17110) -Fix [NoAI]: Print a warning message in the AI console when a ↵yexo
deprecated function is used
2009-07-17(svn r16865) -Doc [NoAI] [FS#3037]: replace old exception names with current ↵yexo
ones and fix a type in the noai documentation (patch by Chruker)
2009-06-03(svn r16510) -Doc: silence some (AI) doxygen warnings by adding comments ↵rubidium
about the appropriate things.
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-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-20(svn r16107) -Add [NoAI]: AIOF_STOP_IN_DEPOT to the orderflags in AIOrder to ↵yexo
allow stop-in-depot orders
2009-03-12(svn r15684) -Add [NoAI]: AIOrder::SkipToOrder().yexo
2009-03-04(svn r15616) -Change [API CHANGE]: Rename AIOrder::ChangeOrder() to ↵yexo
AIOrder::SetOrderFlags().
2009-02-19(svn r15526) -Add [NoAI]: Support for conditional orders.yexo
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-14(svn r15481) -Fix [NoAI]: Make sure AIs can't call functions they shouldn't ↵yexo
call.
2009-01-16(svn r15101) -Change [API CHANGE]: more consistant naming for consts:truebrain
INVALID_TOWN_RATING -> TOWN_RATING_INVALID INVALID_TRANSPORT -> TRANSPORT_INVALID INVALID_ORDER -> ORDER_INVALID INVALID_GROUP -> GROUP_INVALID GROUP_ALL/DEFAULT -> ALL/DEFAULT_GROUP VEHICLE_RAIL/ROAD/.. -> VT_RAIL/ROAD/.. MY_COMPANY -> COMPANY_SELF FIRST/LAST/INVALID_COMPANY -> COMPANY_FIRST/LAST/INVALID
2009-01-12(svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to ↵truebrain
see. NoAI is an API (a framework) to build your own AIs in. See: http://wiki.openttd.org/wiki/index.php/AI:Main_Page With many thanks to: - glx and Rubidium for their syncing, feedback and hard work - Yexo for his feedback, patches, and AIs which tested the system very deep - Morloth for his feedback and patches - TJIP for hosting a challenge which kept NoAI on track - All AI authors for testing our AI API, and all other people who helped in one way or another -Remove: all old AIs and their cheats/hacks