Commit Graph

380 Commits (1ceb349779223715b9019523520d53007a32d7f5)

Author SHA1 Message Date
smatz d6e203ebe2 (svn r16379) -Codechange: remove GetNumTowns(), GetNumIndustries() and GetActiveCompanyCount(), use PoolItem::GetNumItems() instead 16 years ago
smatz 6636ed7589 (svn r16354) -Codechange: use 'new' pool accessors and methods for Engine too 16 years ago
smatz 512db5248e (svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get() 16 years ago
smatz 05db91dc65 (svn r16349) -Codechange: rename IsPlainRailTile() to IsPlainRail(), introduce shiny new IsPlainRailTile() 16 years ago
rubidium f1955333c9 (svn r16332) -Codechange: replace some -1 + 1 with 'nothing' or <= .. - 1 with < .. - 1 (both caused due to wrapper functions) 16 years ago
smatz 0c10daa243 (svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index) 16 years ago
smatz cf986c3099 (svn r16326) -Codechange: replace GetPoolItemPoolSize() by PoolItem::GetPoolSize() 16 years ago
smatz d495dc5dbc (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 16 years ago
yexo d489f93473 (svn r16315) -Codechange: move the autorenew settings to a new CompanySettings struct 16 years ago
frosch 1205f02b43 (svn r16311) -Fix: (Get|Set)TrackBits() is only valid for RAIL_TILE_NORMAL and _SIGNALS. 16 years ago
frosch 41aec3d3c7 (svn r16267) -Documentation: [NoAI] Explain how to deal with IDs of various objects. 16 years ago
frosch 074569ca80 (svn r16266) -Documentation: [NoAI] Add details to AITile::(Raise|Lower)Tile wrt. modifiing multiple corners at once. 16 years ago
frosch cb66ca57c1 (svn r16264) -Change/Fix (r16262): [NoAI] Change SLOPE_INVALID to 0xFFFF so that SLOPE_INVALID != (SLOPE_ELEVATED | SLOPE_STEEP | SLOPE_HALFTILE_MASK). 16 years ago
yexo 2060b0b29a (svn r16262) -Fix [NoAI]: Check slopes passed to the API better for validity 16 years ago
yexo 6ced713033 (svn r16253) -Add [NoAI]: AIController::GetVersion, this returns the newgrf-version of OpenTTD 16 years ago
yexo 0ad4f31658 (svn r16252) -Add [NoAI]: AIAirport::GetPrice, returning the building cost of an airport 16 years ago
yexo f51d764fbd (svn r16249) -Fix [NoAI]: Enable parameter checking for AIController::* functions again 16 years ago
yexo cac5b8bf79 (svn r16244) -Fix [NoAI]: Make sure AITunnel::BuildTunnel returns what the documentation says it does 16 years ago
yexo eb162ef55d (svn r16243) -Fix [FS#2875]: CmdBuildTunnel could be called with invalid parameters from the api code, causing crashes later 16 years ago
yexo d0c22e5f46 (svn r16239) -Fix (r16199): Use the stop/non-stop intermediate orderflags AIs can give for goto-depot orders 16 years ago
frosch ac1b753f9a (svn r16199) -Codechange: Pass OrderNonStopFlags also to MakeGoToDepotOrder().
-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'.
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
yexo 59a9d1eade (svn r16172) -Fix (r16171): typo (thanks SmatZ) 16 years ago
yexo 406e231634 (svn r16171) -Add [NoAI]: two new error codes to AITile: ERR_AREA_ALREADY_FLAT and ERR_ESCAVATION_WOULD_DAMAGE. 16 years ago
frosch 4f45dce1b5 (svn r16166) -Add [NoAI]: AITile::Get(Min|Max|Corner)Height 16 years ago
yexo e03736b304 (svn r16165) -Add [FS#2801] [NoAI]: several functions to AIOrder to check 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.
16 years ago
rubidium 3bd4eeb178 (svn r16162) -Codechange: remove needless TC_ colours from DrawString when they are part of strings and add some colours to a few strings. 16 years ago
rubidium 650cb3694e (svn r16160) -Codechange: remove the need for explicit TC_FROMSTRING for DrawString. 16 years ago
yexo 65633e1a50 (svn r16158) -Codechange: fix the string alignment in all .hpp.sq files 16 years ago
yexo 46ba81964b (svn r16151) -Codechange: move some includes around to prevent including half the AI api in non-noai related code. 16 years ago
yexo 4444e48566 (svn r16150) -Fix [NoAI]: Change WAYPOINT_INVALID to 0xFFFF from -1 as that's the value the AIs got (due to casting).
Clarify some api documentation.
16 years ago
rubidium 27b831935f (svn r16149) -Fix [FS#2860]: when there's no AI and an AI is started... *boom* 16 years ago
rubidium 5c5b357043 (svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible. 16 years ago
rubidium e0e9a1b02e (svn r16114) -Cleanup: unify some more strings and remove some more unused strings 16 years ago
yexo a127ed11e1 (svn r16113) -Feature [NoAI]: Add UseAsRandomAI as function in info.nut. When an AI returns false, it'll never be chosen as random AI. 16 years ago
yexo cdfdd87286 (svn r16109) -Fix [NoAI]: Make sure AIOrder::GetDestination always returns a tile belonging to the station 16 years ago
yexo 66d95f6a66 (svn r16108) -Fix [NoAI]: When giving an aircraft a goto-hangar order don't 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).
16 years ago
yexo cf6adbfe4f (svn r16107) -Add [NoAI]: AIOF_STOP_IN_DEPOT to the orderflags in AIOrder to allow stop-in-depot orders 16 years ago
yexo 7d9549ffd3 (svn r16106) -Fix [NoAI]: AIOrder::SetOrderFlags always removed "Service if needed" from goto-depot orders. 16 years ago
frosch ff8e25a748 (svn r16094) -Fix: AIDebug window profiled the blitters by invalidating itself unconditionally on repaint. OTOH it was not invalidated in other cases when needed. 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 a1af08f4d3 (svn r16091) -Change [FS#2778]: Reverse the order of the lines in the AI debug window 16 years ago
frosch 8501c74b94 (svn r16062) -Fix (r16037): AIOrder::InsertOrder was broken. Default all AI orders to 'stop at far end'. 16 years ago
rubidium 11e2ca71e6 (svn r16024) -Codechange: harden string copying on places where it's possible 16 years ago
yexo 058477ed89 (svn r15910) -Fix [FS#2777]: Clarify that TILE_INVALID is part of AIMap make doxygen output some documentation for it. 16 years ago
frosch c1fec40b1a (svn r15901) -Add: AIIndustryType::IsBuiltOnWater(), HasHeliport() and HasDock(). Just like AIIndustry. 16 years ago
alberth bbd546b792 (svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback 16 years ago
yexo 9fd6956496 (svn r15881) -Fix (r15875): add an explicit cast so some compilers stop complaining. 16 years ago
yexo a0388f85a3 (svn r15875) -Add: AIBridge::GetBridgeID() so AIs can get the type of bridge that are already build. 16 years ago
frosch 779a9f4e24 (svn r15860) -Add: AIRoad::GetRoadVehicleTypeForCargo() to tell whether a certain cargo needs a bus- or a truckstop. 16 years ago