summaryrefslogtreecommitdiff
path: root/src/ship.h
AgeCommit message (Collapse)Author
2019-06-30Feature: Multi-tile docks and docking points.peter1138
2019-04-29Codechange: Remove Direction*Byte typesCharles Pigott
2019-04-29Codechange: Remove Track{dir,}{Bits,}Byte typesCharles Pigott
2019-03-31Change: Remove ship max order distance.peter1138
It is skipped when NPF is in use. It is trivial to work around by adding and removing dummy orders. It is mostly alleviated by the ship path cache in YAPF.
2019-02-04Fix #7119: When rotating a ship, apply an additional offset to avoid ↵Peter Nelson
movement glitch.
2019-01-24Change: Make ships stop and change direction slowly instead of instantly ↵Peter Nelson
turning.
2019-01-19Change: Add path cache for ships.Peter Nelson
2019-01-14Codechange: Use const instead of magic number for ship order distance. Allow ↵Peter Nelson
slightly further distance when following orders.
2018-05-22Change: Remove direction parameter from Vehicle::UpdateDeltaXY. (#6792)PeterN
The value is either unused or always the same as this->direction.
2016-10-16(svn r27666) -Codechange: Pass vehicle sprites around using a struct ↵frosch
VehicleSpriteSeq.
2014-05-01(svn r26546) -Codechange: Make order wait_time, travel_time and max_speed ↵fonsinchen
private
2012-12-23(svn r24839) -Feature [FS#5271]: [NewGRF] Support oversized purchase list ↵michi_cc
sprites. (Based on patch by Eddi)
2012-05-14(svn r24246) -Add [FS#5052-ish]: [NewGRF] Variable with the current max ↵michi_cc
speed for vehicles.
2011-12-18(svn r23588) -Codechange: use the 'final' keyword so compiler can optimise ↵smatz
out some indirect calls
2011-11-01(svn r23080) -Feature: [NewGRF] Use variable 10 to enable vehicle GRFs to ↵frosch
draw different sprites on the map and in various GUIs.
2011-08-21(svn r22801) -Feature: [YAPF] Take canal/ocean speed fraction of ships into ↵michi_cc
account.
2011-05-01(svn r22406) -Document: some more "random-ish" tidbitsrubidium
2011-01-30(svn r21930) -Codechange: Remove unused vehicle GetTypeString() functions.alberth
2011-01-21(svn r21876) -Codechange: typedef SpecializedVehicleBase and ↵smatz
GroundVehicleBase to reduce typing
2010-11-06(svn r21098) -Codechange: Ships now store their max speed in the cache ↵terkhen
instead of recalculating it every time.
2010-07-14(svn r20143) -Codechange: Remove RecalcShipStuff function.terkhen
2010-05-03(svn r19756) -Codechange: move UpdateViewport() from Vehicle to ↵smatz
SpecializedVehicle in order to improve performance
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 r18779) -Codechange: merge the command callbacks of the primary ↵rubidium
vehicles; they are identical
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
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-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
2009-05-26(svn r16442) -Codechange: use new Vehicle accessors at more placessmatz
2009-05-26(svn r16441) -Codechange: new class SpecializedVehicle used as superclass ↵smatz
for all vehicle types
2009-05-22(svn r16382) -Codechange: make GetVehicleTrackdir a member function of Vehicle.rubidium
2009-05-22(svn r16376) -Codechange: Vehicle::Tick() now returns false if the vehicle ↵smatz
was deleted
2009-02-01(svn r15308) -Codechange: Deduplicate km-ish/h -> mph conversions.frosch
2009-01-22(svn r15210) -Fix: Vehicle::GetRunningCost() was wrong for ships and aircraftglx
2008-05-06(svn r12971) -Documentation: add @file in files that missed them and add ↵rubidium
something more than whitespace as description of files that don't have a description.
2008-04-29(svn r12924) -Feature: Introducing the so called 'engine pool' which ↵peter1138
primarily removes the fixed engine type limits and also happens to allow (with the patch option 'dynamic_engines') multiple NewGRF vehicle sets to coexist.
2008-04-24(svn r12870) -Codechange: remove some magic numbers from u.ship.state handlingsmatz
2008-04-24(svn r12862) -Codechange: reduce code duplication for VehicleType -> ↵smatz
WindowClass lookup
2008-04-21(svn r12824) -Codechange: Standardise routines for drawing vehicle images, ↵peter1138
using correct types and less duplication.
2008-04-11(svn r12657) -Codechange: add 'FindClosestDepot' to the vehicle class.rubidium
2008-04-05(svn r12575) -Codechange: unduplicate Process*Orders for trains, ships and ↵rubidium
road vehicles.
2008-03-31(svn r12490) -Codechange: rename engine.h to engine_func.h and remove ↵rubidium
unneeded inclusions of engine.h and/or replace them with engine_type.h.
2008-02-01(svn r12037) -Codechange: replace OnNewDay_(Aircraft|RoadVeh|Ship|Train) ↵glx
with an OnNewDay method in the Vehicle class
2008-01-07(svn r11774) -Change: do not include variables.h in a header when it is not ↵rubidium
needed.
2007-12-27(svn r11706) -Codechange: split vehicle.h and remove another bunch of ↵rubidium
useless includes.
2007-12-21(svn r11677) -Codechange: move price and command related types/functions to ↵rubidium
their respective places.
2007-08-29(svn r11001) -Codechange: unify the way to determine whether a vehicle is in ↵rubidium
a depot.
2007-08-29(svn r10999) -Codechange: unify the way the running cost of a vehicle is ↵rubidium
determined. Patch by nycom.
2007-08-28(svn r10995) -Codechange: unify the way to get the displayed maxium speed of ↵rubidium
a vehicle. Patch by nycom.
2007-08-26(svn r10985) -Codechange: unify/remove duplicate ↵rubidium
CcClone(Aircraft|RoadVeh|Ship|Train) in favour of CcCloneVehicle.