summaryrefslogtreecommitdiff
path: root/src/ai
AgeCommit message (Collapse)Author
2009-02-13(svn r15470) -Fix [NoAI]: Check the types of the parameters passed to ↵yexo
AddSetting, AddLabels and RegisterAI.
2009-02-13(svn r15467) -Fix [NoAI]: AIs with an error in their info.nut are no longer ↵yexo
available in-game.
2009-02-13(svn r15466) -Fix (r15330): The squirrel instance object was freed twice if ↵yexo
an info.nut failed to compile.
2009-02-13(svn r15465) -Codechange: constify most of AIInfo/AIFileInfo methods, move ↵smatz
definition of very simple getters to header file
2009-02-13(svn r15464) -Codechange [NoAI]: Call all info.nut functions exactly once ↵yexo
and only during initialization.
2009-02-13(svn r15463) -Change [API CHANGE]: Replace ↵yexo
AIInfo::CanLoadFromVersion(version) with AIInfo::MinVersionToLoad() which should return a single integer, the minimum version the AI is able to load data from.
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-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