summaryrefslogtreecommitdiff
path: root/src/articulated_vehicles.cpp
AgeCommit message (Collapse)Author
2021-01-05Codechange: create MutableSpriteCache to remove the need to cast Vehicle to ↵Matt Kimber
a mutable type in render methods
2020-04-06Fix #8064: Incorrect display of refit capacityglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-24Change: Show additional cost and refitted capacity in build vehicle window.peter1138
2018-05-21Change: Add CargoTypes type for cargo masks. (#6790)PeterN
2016-10-16(svn r27666) -Codechange: Pass vehicle sprites around using a struct ↵frosch
VehicleSpriteSeq.
2016-05-22(svn r27580) -Fix [FS#6395]: Set date of last service on construction also ↵frosch
for wagons and articulated parts.
2014-09-20(svn r26863) -Codechange: move a number of Vehicle* functions into the ↵rubidium
Vehicle class
2014-09-18(svn r26849) -Fix[FS#6113]: Better display of refit information in ↵alberth
articulated vehicles.
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2013-05-19(svn r25259) -Codechange: track capacities and usage of linksrubidium
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-03-14(svn r24029) -Change: [NoAI] make AIEngine::IsArticulated return true if the ↵yexo
articulated callback flag is set, don't try to run the callback.
2012-02-19(svn r23965) -Fix [FS#5070]: Refittability should never depend on the ↵frosch
current capacity of a vehicle.
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2012-01-02(svn r23713) -Codechange: split VehicleMove() into two functions, to ↵truebrain
minimalize the work done where possible
2011-12-15(svn r23526) -Codechange: unify cargos vs cargoesrubidium
2011-11-08(svn r23137) -Change: [NewGRF v8] New result format for callback 16.frosch
2011-11-01(svn r23075) -Codechange: Add GetGRF() and GetGRFID() methods to Engine and ↵frosch
Vehicle to simplify code.
2011-11-01(svn r23074) -Codechange: Add Vehicle::GetEngine() to simplify code.frosch
2011-05-02(svn r22413) -Document: even more stuffrubidium
2011-03-05(svn r22205) -Codechange: replace magic number with constantrubidium
2011-02-10(svn r22048) -Fix (r4495): company 0 does not always exist, so put temporary ↵glx
vehicles in a valid company
2011-01-29(svn r21924) -Codechange: Unify some parts of the articulated vehicle code.terkhen
-Cleanup: Avoid conversions to Train and RoadVehicle that are no longer required.
2011-01-19(svn r21858) -Codechange: Give more similar names to ArticulatedPart functions.terkhen
2010-12-14(svn r21521) -Codechange: Unify some cached values that were present in both ↵terkhen
road vehicles and trains.
2010-12-14(svn r21517) -Codechange: Add IsGroundVehicle function to the Engine class.terkhen
2010-11-09(svn r21123) -Codechange: Remove max_speed from the Vehicle class.terkhen
2010-08-26(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to ↵rubidium
some headers
2010-08-01(svn r20281) -Codechange: unify case scope closure + break coding stylerubidium
2010-02-14(svn r19132) -Codechange: No need to end a line with ;;.alberth
2010-01-15(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, ↵rubidium
if a header require a header make it include that header
2009-12-20(svn r18566) -Codechange: When both the union and intersection of refit ↵frosch
masks of articulated vehicles are needed, they can be determined at once.
2009-10-31(svn r17911) -Codechange: bool * is a pointer, not a boolpeter1138
2009-10-30(svn r17907) -Codechange: Deduplicate result interpretation of articulated ↵frosch
vehicle callback.
2009-10-06(svn r17728) -Cleanup: Remove some more unneeded/unused parameters.frosch
2009-10-06(svn r17726) -Cleanup: Remove some unneeded/unused parameters.frosch
2009-10-04(svn r17700) -Codechange: Integrate ShipVehicleInfo::refittable into ↵frosch
EngineInfo::refit_mask during initialisation.
2009-10-03(svn r17684) -Fix: tcache.first_engine and rcache.first_engine need to be ↵frosch
set before first callback/sprite-resolving. For RV fronts it was missing at all, causing livery selection to fail.
2009-09-14(svn r17534) -Codechange: unify the naming of callback masks/flagsrubidium
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-07-02(svn r16723) -Codechange: make GetNextArticPart(), GetLastEnginePart(), ↵smatz
GetNextVehicle(), GetPrevVehicle(), GetNextUnit(), GetPrevUnit() members of Train
2009-07-02(svn r16722) -Codechange: unify the naming of the Is/Set/HasArticulatedPart ↵rubidium
functions
2009-07-02(svn r16721) -Codechange: make Is/SetRoadVehicleFront, ↵rubidium
Is/Set/HasArticulatedPart member of RoadVehicle.
2009-07-02(svn r16720) -Codechange: make Set/ClearFrontEngine(), ↵smatz
Set/ClearArticulatedPart(), Set/ClearWagon(), Set/ClearEngine(), Set/ClearFreeWagon() and Set/ClearMultiheaded() members of Train
2009-07-01(svn r16719) -Codechange: make IsArticulatedPart(), IsTrainEngine(), ↵smatz
IsTrainWagon(), IsMultiheaded(), EngineHasArticPart() and IsRearDualheaded() members of Train
2009-06-27(svn r16679) -Codechange: Let GetCapacityOfArticulatedParts() return a ↵frosch
CargoArray instead of a pointer to a static array.
2009-06-06(svn r16527) -Codechange: use static member functions instead of simple ↵smatz
casts when converting Vehicle to specialised vehicle types. Includes safety check
2009-05-26(svn r16426) -Fix [FS#2921] (r16390): articulated parts got the wrong image ↵rubidium
assigned