summaryrefslogtreecommitdiff
path: root/src/ai
AgeCommit message (Collapse)Author
2009-02-14(svn r15494) -Change [API CHANGE]: Split AIRoad::BuildRoadStation in ↵yexo
BuildRoadStation and BuildDriveThroughRoadStation.
2009-02-14(svn r15492) -Change [API CHANGE]: Split AIVehicle::MoveWagon in MoveWagon ↵yexo
and MoveWagonChain (frosch).
2009-02-14(svn r15491) -Change [API CHANGE]: AIMarine::BuildWaterDepot now accepts a ↵yexo
front tile instead of a bool is_vertical (frosch).
2009-02-14(svn r15490) -Change [API CHANGE]: Remove AIBridge::GetYearAvailable. ↵yexo
AIBridge::IsValidBridge now only returns true for available bridges.
2009-02-14(svn r15489) -Change [API CHANGE]: Remove AIAirport::AirportAvailable. ↵yexo
AIAirport::IsValidAirportType now only returns true for available AirportTypes.
2009-02-14(svn r15488) -Change [API CHANGE]: Add support for distant-join stations.yexo
2009-02-14(svn r15487) -Change [API CHANGE]: Remove the never implemented function ↵yexo
AIEventVehicleCrashed::CloneCrashedVehicle.
2009-02-14(svn r15486) -Change [API CHANGE]: Remove AITown::GetMaxTownID.yexo
2009-02-14(svn r15485) -Change [API CHANGE]: Split AIIndustry::HasHeliportAndDock and ↵yexo
GetHeliportAndDockLocation in HasHeliport/HasDock and GetHeliportLocation/GetDockLocation.
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 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