summaryrefslogtreecommitdiff
path: root/src/train.h
AgeCommit message (Collapse)Author
2010-11-18(svn r21235) -Codechange: Move Train::UpdateVisualEffect to the Vehicle ↵rubidium
class (Hirundo)
2010-11-18(svn r21232) -Codechange: Move cached_vis_effect from the TrainCache to the ↵rubidium
VehicleCache (Hirundo)
2010-11-07(svn r21106) -Change: Tuned realistic acceleration to be a bit more ↵michi_cc
realistic in order to make acceleration "slower", which highlights the differences between vehicle types more.
2010-11-06(svn r21097) -Codechange: Unify cached max speed for all vehicle types.terkhen
2010-11-06(svn r21092) -Codechange: Merge max speed functions.terkhen
2010-10-30(svn r21060) -Doc: Improved wording of comments (mostly by __ln__)alberth
2010-08-15(svn r20505) -Feature [FS#3978]: Allow changing visual effect when changing ↵frosch
railtype.
2010-08-15(svn r20504) -Codechange: Move updating of train's visual effect to separate ↵frosch
function.
2010-08-15(svn r20503) -Fix (r18838): Powered wagons should check the railtype of the ↵frosch
tile they are on, not where the engine is on.
2010-08-02(svn r20302) -Add: Method for getting the air drag of a ground vehicle.terkhen
2010-08-02(svn r20299) -Add: Make trains and road vehicles use a different area value ↵terkhen
to calculate air drag.
2010-07-09(svn r20098) -Fix [FS#3898]: A train reversing in a station would sometimes ↵michi_cc
fail to release its reserved path.
2010-06-21(svn r20005) -Codechange: Enumify force_proceed.frosch
2010-03-06(svn r19342) -Codechange: Move inclination update functions to GroundVehicle.terkhen
2010-03-06(svn r19341) -Codechange: Move GOINGUP/GOINGDOWN flags to GroundVehicle.terkhen
-Codechange: Move GetSlopeResistance to GroundVehicle.
2010-03-06(svn r19339) -Codechange: Move acceleration functions to GroundVehicle.terkhen
2010-03-06(svn r19338) -Codechange: Move the acceleration cache to GroundVehicle.terkhen
2010-03-06(svn r19337) -Codechange: Create the GroundVehicle class.terkhen
2010-03-06(svn r19336) -Codechange: Move rail speed limit to its own function.terkhen
2010-02-10(svn r19090) -Codechange: some comment coding style fixesrubidium
2010-01-31(svn r18972) -Add: [NewGRF] Per-rail type speed limits.peter1138
2010-01-30(svn r18960) -Codechange: Move acceleration-related values to a separated cache.terkhen
2010-01-28(svn r18939) -Codechange [FS#3545]: Move train slope steepness to its own ↵terkhen
function.
2010-01-17(svn r18854) -Codechange [FS#3539]: unconflict acceleration type as 'status' ↵rubidium
and rail property (Terhken)
2010-01-16(svn r18838) -Codechange [FS#3524]: reorganisation of the train acceleration ↵rubidium
code plus some minor optimisations (Terkhen)
2010-01-16(svn r18836) -Codechange: make TrainUpdateSpeed a class function and update ↵rubidium
some comments (Terkhen)
2010-01-15(svn r18812) -Codechange: make some functions in train.h functions of Train.rubidium
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
2010-01-11(svn r18781) -Codechange: pass the CommandCost to the callback instead of ↵rubidium
whether it succeeded or not. -Fix: AIs did update their last cost incorrectly in network games if the cost of the DC_EXEC phase differed from the ~DC_EXEC phase.
2010-01-11(svn r18779) -Codechange: merge the command callbacks of the primary ↵rubidium
vehicles; they are identical
2010-01-09(svn r18764) -Fix [FS#3422]: split the (un)load ticks counter and signal ↵rubidium
wait counter; sometimes they might get into eachother's way
2009-12-13(svn r18484) -Codechange: simplify the Is(Stopped)InDepot functions for trainsrubidium
2009-12-11(svn r18465) -Codechange: simplify CheckTrainInDepot and remove some ↵rubidium
unneeded wrapper functions
2009-12-04(svn r18402) -Codechange: unify/centralise the code for crashing vehiclesrubidium
2009-10-04(svn r17688) -Fix (r17684): incorrect commentssmatz
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-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-07-19(svn r16884) -Codechange: Add Train::GetFirstEnginePart() and use it.frosch
2009-07-17(svn r16867) -Feature(ette): Turn variable 0E/8E (vertical offset for trains ↵frosch
in depot) and variable 1E/9E bit 3 (wagon width in depot) into grf-local variables.
2009-07-17(svn r16857) -Fix [FS#3036](r16652): crash when train partially in depot crashedsmatz
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 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-07-01(svn r16718) -Codechange: make IsFreeWagon() member of Trainsmatz
2009-07-01(svn r16717) -Codechange: make IsFrontEngine() member of Trainsmatz
2009-06-02(svn r16505) -Fix [FS#2951] (r16472): since g++ 4.4 the implicit (default) ↵rubidium
constructor will zero the whole class. This caused all vehicle indices to be 0, which causes all kinds of trouble.
2009-06-01(svn r16494) -Codechange: cache train's speed limit caused by curvessmatz
2009-05-30(svn r16472) -Codechange: set vehicle type in SpecializedVehicle constructor ↵smatz
instead of constructor of each vehicle type
2009-05-26(svn r16445) -Codechange: update old comments (Yexo)smatz