Commit Graph

66 Commits (828ae0333147df5b40563afb70720da8db83138b)

Author SHA1 Message Date
rubidium 360d6daf34 (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 14 years ago
yexo f30cc9e6ca (svn r20563) -Change: [NoAI] rename AIAbstractList to AIList 14 years ago
yexo 0d57e6c193 (svn r20562) -Change: [NoAI] Move all functions from AIList to AIAbstractList 14 years ago
yexo 971691b691 (svn r20285) -Codechange: use ///< for single-line doxygen comments in the AI code 14 years ago
yexo 844e62546b (svn r20271) -Doc: add doxygen comments to several items under src/ai/ 14 years ago
rubidium a70fd540fc (svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int 15 years ago
smatz 114c2af6f2 (svn r19775) -Fix: improper use of 'then' in few comments (ln) 15 years ago
yexo cdfe7f7834 (svn r19544) -Feature [FS#3496]: add an input box to the AI Debug window where you can input a break string (patch by Zuu) 15 years ago
smatz 5504b1105e (svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit 15 years ago
rubidium 0bf54aaedb (svn r18862) -Fix [FS#3544]: don't pass AI strings through iconv 15 years ago
rubidium 9467b7c6d6 (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 15 years ago
rubidium d9f86b6f97 (svn r18747) -Codechange: add some constness to the AI code 15 years ago
frosch 9e3c107ffe (svn r18725) -Add: [NoAI] AIWaypoint::WaypointType and AIWaypoint::HasWaypointType().
-Change: [NoAI] Constructor of AIWaypoint now takes a WaypointType to also handle buoys.
-Remove: [NoAI] AIBuoyList.
15 years ago
smatz f708b9a80a (svn r18557) -Fix: (most of) gcc errors when using lto caused by some structs having different definition in different object files 15 years ago
alberth 5a97b64d73 (svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
Gentlemen, swap your string parameters.
15 years ago
rubidium 982b8ee5fc (svn r17693) -Cleanup: remove some unneeded includes 15 years ago
rubidium 83be7b09ea (svn r17545) -Fix [FS#3202]: [NoAI] AIs had 'infinite' time when running code from the global scope 15 years ago
rubidium 3e3927cfcc (svn r17544) -Fix [FS#3202]: [NoAI] Crash when doing commands in the 'global' scope 15 years ago
rubidium a8975e9e72 (svn r17486) -Add [NoAI]: a vehicle list for all vehicle that are ordered to a specific depot 15 years ago
rubidium 62e990823d (svn r17345) -Fix [FS#2769]: one wasn't offered to take over bankrupt companies anymore; caused by the introduction NoAI, although NewAI had the same problem too. 15 years ago
rubidium 99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
yexo d6a3178646 (svn r17233) -Fix (r17232): typo 15 years ago
yexo 172d4dd23e (svn r17232) -Fix (r17223): Kill an AI when it tries to Sleep / execute a DoCommand during Save() instead of failing to save 15 years ago
yexo 48f70be5f8 (svn r17231) -Fix [FS#3134]: AIs that crashed during Save() weren't killed as they should 15 years ago
yexo 6b0520b3b4 (svn r17230) -Fix (r15027): don't assert when an AI uses AI*Mode objects incorrectly but crash the AI instead 15 years ago
yexo c22f60c812 (svn r17223) -Change [NoAI] [FS#2980]: Crash an AI when it uses a DoCommand / Sleep instead of just printing an error message in the AI Debug Window 15 years ago
yexo 418c88f94d (svn r17214) -Add [NoAI]: GetAPIVersion() as optional function in info.nut. 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.
15 years ago
yexo ee384495b9 (svn r17125) -Cleanup: remove an unused variable 15 years ago
rubidium d61be2637e (svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives 15 years ago
yexo 127ceaf828 (svn r17043) -Change [NoAI]: Load the API before compiling an AI script so AIs can subclass API classes and use API constants as part of their own constants 15 years ago
yexo 86b89fda98 (svn r17011) -Change [NoAI]: Add AIBaseStation as a parentclass for AIStation and AIWaypoint, and move GetName, SetName and GetLocation to AIBaseStation
Remove (nearly) all references to WaypointID and replace them with StationID
15 years ago
yexo 6e467e8ae0 (svn r16834) -Fix [FS#3034]: call the AI Save() function only once so AIs can't crash OpenTTD 15 years ago
yexo 4c227b6b78 (svn r16585) -Add [NoAI]: AIBuoyList to get a list of all buoys 16 years ago
smatz a2567c84a0 (svn r16559) -Codechange: introduce Company::IsValidAiID() and Company::IsValidHumanID(), don't use IsHumanCompany() where possible 16 years ago
smatz f67ea11992 (svn r16556) -Codechange [NoAI]: use accessor for AIInstance::is_dead 16 years ago
yexo de04ae2cda (svn r16425) -Change [FS#2869]: Stop an AI when it takes too long to initialize or load 16 years ago
yexo 2d8609080f (svn r16400) -Add [NoAI]: add AISignList that can be used to get a list of valid signs. This makes AISign::GetMaxSignID obsolete. 16 years ago
smatz 0c10daa243 (svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index) 16 years ago
smatz d495dc5dbc (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 16 years ago
yexo d1ab79a902 (svn r16174) -Fix (r16093) [FS#2863]: crash when starting a game/loading a game with no AIs available. 16 years ago
rubidium 27b831935f (svn r16149) -Fix [FS#2860]: when there's no AI and an AI is started... *boom* 16 years ago
yexo f96429a494 (svn r16093) -Feature [FS#2808]: Add GetURL() as possible function to info.nut. If AIs implement it, that url is shown when the AI crashes and also in the AI selection window. 16 years ago
yexo 4b8d1a58a2 (svn r15774) -Fix (r15708): Don't show the message about reporting an AI crash for the dummy AI. 16 years ago
yexo 473cc5076a (svn r15708) -Feature [FS#2728]: Pop up the AI Debug Window if one of the AIs crashed and show a message that the user should report the crash. 16 years ago
yexo 28c49b694a (svn r15668) -Fix: a few typos. 16 years ago
yexo 89fc2b2b08 (svn r15614) -Add [NoAI]: AIVehicleList_Group(group_id) and AIVehicleList_DefaultGroup(vehicle_type). 16 years ago
glx 85ea21a5d0 (svn r15535) -Fix (r15460, pre noai merge): use '.' as 'any' for squirrel calls typechecking as stated in squirrel docs 16 years ago
yexo d9caae1635 (svn r15530) -Fix (r15519): The AIWaypoint classes were not exported to squirrel. 16 years ago
yexo 69df9f2787 (svn r15519) -Add [NoAI]: support for waypoints by adding AIRail::Build/Remove RailWaypoint, AIWaypoint and AIWaypointList. 16 years ago
yexo 3e53890348 (svn r15467) -Fix [NoAI]: AIs with an error in their info.nut are no longer available in-game. 16 years ago