summaryrefslogtreecommitdiff
path: root/src/ai
AgeCommit message (Collapse)Author
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-09(svn r15428) -Codechange: consistently use colour instead of having both ↵rubidium
color and colour.
2009-02-09(svn r15425) -Codechange: some color->colour changes and type safety.rubidium
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 r15401) -Fix [FS#2619](r15027): AI::Stop changed _current_company, but ↵smatz
didn't restore its original value
2009-02-07(svn r15400) -Fix: Typos in comments.frosch
2009-02-06(svn r15368) -Fix: some typos in commentsrubidium
2009-02-06(svn r15366) -Add [NoAI]: Add AddLabels() where you can define labels for ↵Yexo
the values of the settings in info.nut
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 r15330) -Fix [FS#2597]: leaking of Squirrel when using circular ↵rubidium
references (by enabling the GC).
2009-02-03(svn r15328) -Fix (r15327): Load(data, version) was called instead of ↵Yexo
Load(version, data).
2009-02-03(svn r15327) -Fix (r15027): AIs could access the map and other data in their ↵Yexo
constructor and Load() function while the savegame was not completely loaded.
2009-02-03(svn r15324) -Codechange: unify the class used for comparing of strings for ↵smatz
std::map
2009-02-02(svn r15322) -Fix (r15175): The AI list window didn't display information ↵Yexo
about the selected AI if it wasn't visible.
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-27(svn r15284) -Fix [FS#2582] (r15045): Parameters were popped from the ↵Yexo
squirrel stack twice.
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 r15262) -Fix: AIEvents were not freed, when they were not queued for ↵frosch
any AI.
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-23(svn r15228) -Fix [FS#2571]: possible crash when an AI/Library doesn't have ↵glx
a required function
2009-01-23(svn r15226) -Fix (r15214): broken AI content downloadglx
2009-01-23(svn r15215) -Fix: various MSVC x64 compiler warningsrubidium
2009-01-23(svn r15214) -Fix [NoAI]: ignore case for ai/library main script path on windowsglx
2009-01-21(svn r15191) -Fix (r15188): -1 is not a bool (MSVC warning)glx
2009-01-21(svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map.Yexo
2009-01-21(svn r15188) -Feature: You can now change the number of AIs from the AI ↵Yexo
config window.
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-21(svn r15186) -Fix: Select the currently selected AI instead of the second on ↵Yexo
in the list. -Feature: Double clicking on a slot in the AI config window results in opening the list of AIs.
2009-01-21(svn r15185) -Fix (r15175): It was impossible to select AIs that had a ↵Yexo
different instance name then their name.
2009-01-21(svn r15184) -Cleanup: remove extra spacesglx
2009-01-21(svn r15182) -Fix: After updating an AI select the latest version for the ↵Yexo
next game.
2009-01-20(svn r15175) -Feature: Add the option to select the AIs to start in a new ↵Yexo
game and configure them via the gui.