summaryrefslogtreecommitdiff
path: root/src/ai/api
AgeCommit message (Collapse)Author
2009-02-14(svn r15484) -Change [API CHANGE]: Remove AICompany::GetCompanyName and ↵yexo
SetCompanyName. They've been replaced with GetName and SetName.
2009-02-14(svn r15483) -Change [API CHANGE]: Remove AIIndustry::GetProduction, use ↵yexo
AIIndustry::GetLastMonthProduction instead.
2009-02-14(svn r15482) -Fix [NoAI]: Typos in api docs.yexo
2009-02-14(svn r15481) -Fix [NoAI]: Make sure AIs can't call functions they shouldn't ↵yexo
call.
2009-02-14(svn r15479) -Fix: Documentation of AIIndustryType::CanBuildIndustry().frosch
2009-02-13(svn r15462) -Change [NoAI]: Make AIController::GetTick() and ↵yexo
AIController::GetSetting() static functions. -Fix (r15460): ai_controller.hpp.sq was forgotten.
2009-02-12(svn r15460) -Fix [NoAI]: don't require an instance to exist in the scope ↵rubidium
for static functions and limit exposure of the internal function GetClassName.
2009-02-11(svn r15441) -Cleanup: Use a return value instead of passing a pointer to ↵yexo
where the result should be stored.
2009-02-10(svn r15440) -Fix: Backup AIObject::GetAllowDoCommand and restore the old ↵yexo
value so AIs can't work around it.
2009-02-09(svn r15436) -Codechange: Return index of station spec within station class ↵peter1138
as a return parameter of GetCustomStationSpecByGrf(), as the index is already known. Saves on an extra loop and an extern...
2009-02-08(svn r15410) -Cleanup: get rid of most of the references to the 'patches' ↵rubidium
except where it's used for backward compatability.
2009-02-08(svn r15408) -Fix (r15027): AIs could call AIController::Sleep() at times ↵Yexo
they're not allowed to sleep.
2009-02-08(svn r15406) -Fix: make Valuate actually cost a few opcodes to not make it a ↵rubidium
single opcode method of doing lots of the same thing. This should resolve most of the hiccups caused by AIs.
2009-02-07(svn r15400) -Fix: Typos in comments.frosch
2009-02-05(svn r15360) -Fix: Flooding vehicles did not trigger an AI event.frosch
2009-02-05(svn r15359) -Add [NoAI]: AIEventVehicleCrashed::CRASH_RV_UFO, ↵frosch
AIEventDisasterZeppelinerCrashed and AIEventDisasterZeppelinerCleared as aliens accepted NoAIs as competing life-form.
2009-02-05(svn r15358) -Add [NoAI]: AIEventVehicleCrashed::GetCrashReason()frosch
2009-02-05(svn r15355) -Codechange: simplify some stuff now ->FirstShared returns ↵rubidium
non-NULL again.
2009-02-05(svn r15346) -Add [NoAI]: Add AIAirport::GetNearestTown() so AIs can known ↵Yexo
in which town the noise level will increase.
2009-02-05(svn r15345) -Add [NoAI]: Add AIVehicle::HasSharedOrders() and ↵Yexo
AIVehicleList_SharedOrders.
2009-02-04(svn r15343) -Add [NoAI]: Add AITown::GetRoadLayout so AIs can get the road ↵Yexo
layout per town.
2009-02-03(svn r15324) -Codechange: unify the class used for comparing of strings for ↵smatz
std::map
2009-02-01(svn r15308) -Codechange: Deduplicate km-ish/h -> mph conversions.frosch
2009-02-01(svn r15307) -Fix: AIVehicle::GetCurrentSpeed() should also use km-ish/h ↵frosch
instead of mph. (Documentation by Rubidium)
2009-02-01(svn r15306) -Codechange: Deduplicate code by adding ↵frosch
Engine::GetDisplayMaxSpeed(), GetPower() and GetDisplayWeight(). (and using them)
2009-01-31(svn r15299) -Cleanup: remove many redundant includessmatz
2009-01-26(svn r15278) -Fix [FS#2332]: test noise limit of nearest town instead of ↵smatz
st->town
2009-01-26(svn r15277) -Fix (r15027): Building bridges in AITestMode always returned ↵Yexo
false.
2009-01-25(svn r15270) -Change [API CHANGE]: remove AIEventTestglx
2009-01-25(svn r15263) -Codechange: added Engine::GetCost() to remove some code ↵glx
duplication.
2009-01-24(svn r15261) -Add: added Engine::GetRunningCost() to remove some code ↵glx
duplication. Also stops AIs decrementing vehicle counter of first company
2009-01-24(svn r15255) -Fix (r15027): AIVehicle::GetLength() returned only the length ↵frosch
of the first part of articulated road vehicles.
2009-01-24(svn r15252) -Fix (r15027): AIMarine::AreWaterTilesConnected() reported ↵frosch
aqueducts being connected with all surrounding tiles. Also add some type safety.
2009-01-23(svn r15244) -Fix (r15027): The station tile of an oilrig-like industry is ↵frosch
not neccessarily the first industry tile.
2009-01-23(svn r15241) -Fix (r15027): NoAI API was not aware of certain newindustries ↵frosch
'features'.
2009-01-21(svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map.Yexo
2009-01-21(svn r15187) -Fix: assert when an AI called AIRoad::GetNeighbourRoadCount on ↵Yexo
a tile at the north edge (bug found by SmatZ).
2009-01-19(svn r15149) -Codechange: GetMaskOfTownActions() is used by a Cmd handler, ↵peter1138
therefore it does not belong in _gui.
2009-01-18(svn r15139) -Fix [NoAI]: a wrong tile got returned for hangar tiles when ↵rubidium
the station sign isn't over st->airport_tile.
2009-01-17(svn r15123) -Fix [NoAI]: 'const char *' implies that the return value ↵truebrain
should not be free'd, which is should .. so make them 'char *'
2009-01-16(svn r15109) -Add [NoAI]: add AITile::LevelTiles (Yexo)truebrain
2009-01-16(svn r15102) -Fix (r15101): somehow makedepend fucked up (patch by Yexo)truebrain
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-15(svn r15100) -Add [NoAI]: introduce TILE_INVALID as consttruebrain
2009-01-15(svn r15099) -Fix (r15078): GetTileIndex(0, -1) is perfectly finetruebrain
2009-01-15(svn r15093) -Fix [NoAI]: check if a tile is valid before using IsTileType ↵truebrain
(bug found by Zuu, patch by Yexo)
2009-01-14(svn r15084) -Fix [NoAI] (r15027): by removing the threads for NoAIs, it is ↵truebrain
no longer possible to use DoCommand (even indirect) in AIAbstractList::Valuator().
2009-01-13(svn r15078) -Fix [NoAI]: AIMap didn't filter its input (Yexo)truebrain
2009-01-13(svn r15077) -Codechange: enumify DAYS_IN_YEAR and DAYS_IN_LEAP_YEARsmatz
-Change: when computing daily running cost, divide by 365 (instead of 364). Since r12134, the rounding errors don't need this correction anymore
2009-01-13(svn r15073) -Fix (r15067) [FS#2532]: Default copy constructors don't ↵peter1138
necessarily do what you want. Instead of creating one, we now pass a pointer around as that avoids additional allocations.