terkhen
0753669fa7
(svn r20143) -Codechange: Remove RecalcShipStuff function.
2010-07-14 12:27:51 +00:00
smatz
00a52cc475
(svn r19756) -Codechange: move UpdateViewport() from Vehicle to SpecializedVehicle in order to improve performance
2010-05-03 23:36:17 +00:00
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
2010-01-15 16:41:15 +00:00
rubidium
833c6f36f3
(svn r18779) -Codechange: merge the command callbacks of the primary vehicles; they are identical
2010-01-11 18:34:02 +00:00
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
rubidium
2fc0cb3e76
(svn r16505) -Fix [FS#2951] (r16472): since g++ 4.4 the implicit (default) constructor will zero the whole class. This caused all vehicle indices to be 0, which causes all kinds of trouble.
2009-06-02 19:12:28 +00:00
smatz
8c11d612e4
(svn r16472) -Codechange: set vehicle type in SpecializedVehicle constructor instead of constructor of each vehicle type
2009-05-30 20:13:12 +00:00
smatz
faae8f0177
(svn r16445) -Codechange: update old comments (Yexo)
2009-05-26 23:24:34 +00:00
smatz
5a463c8347
(svn r16442) -Codechange: use new Vehicle accessors at more places
2009-05-26 22:45:48 +00:00
smatz
7ee882d03f
(svn r16441) -Codechange: new class SpecializedVehicle used as superclass for all vehicle types
2009-05-26 22:10:13 +00:00
rubidium
441011b782
(svn r16382) -Codechange: make GetVehicleTrackdir a member function of Vehicle.
2009-05-22 18:17:20 +00:00
smatz
b687ac51ee
(svn r16376) -Codechange: Vehicle::Tick() now returns false if the vehicle was deleted
2009-05-22 13:53:14 +00:00
frosch
de9a6fc90b
(svn r15308) -Codechange: Deduplicate km-ish/h -> mph conversions.
2009-02-01 17:14:39 +00:00
glx
c5f0fe7c40
(svn r15210) -Fix: Vehicle::GetRunningCost() was wrong for ships and aircraft
2009-01-22 21:33:08 +00:00
rubidium
d03994098b
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
2008-05-06 15:11:33 +00:00
peter1138
a00371c8db
(svn r12924) -Feature: Introducing the so called 'engine pool' which 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-29 21:31:29 +00:00
smatz
345f160978
(svn r12870) -Codechange: remove some magic numbers from u.ship.state handling
2008-04-24 13:05:51 +00:00
smatz
9fc355fca5
(svn r12862) -Codechange: reduce code duplication for VehicleType -> WindowClass lookup
2008-04-24 09:55:20 +00:00
peter1138
5dcd689f56
(svn r12824) -Codechange: Standardise routines for drawing vehicle images, using correct types and less duplication.
2008-04-21 20:50:58 +00:00
rubidium
62bdc381e7
(svn r12657) -Codechange: add 'FindClosestDepot' to the vehicle class.
2008-04-11 08:14:43 +00:00
rubidium
bdd64495cd
(svn r12575) -Codechange: unduplicate Process*Orders for trains, ships and road vehicles.
2008-04-05 10:55:50 +00:00
rubidium
ef2be7d0fc
(svn r12490) -Codechange: rename engine.h to engine_func.h and remove unneeded inclusions of engine.h and/or replace them with engine_type.h.
2008-03-31 00:17:39 +00:00
glx
525409b0fc
(svn r12037) -Codechange: replace OnNewDay_(Aircraft|RoadVeh|Ship|Train) with an OnNewDay method in the Vehicle class
2008-02-01 22:02:14 +00:00
rubidium
b0ac283aec
(svn r11774) -Change: do not include variables.h in a header when it is not needed.
2008-01-07 00:57:19 +00:00
rubidium
384503e7d3
(svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes.
2007-12-27 13:35:39 +00:00
rubidium
9e9cfe6e59
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
2007-12-21 21:50:46 +00:00
rubidium
a407d53d1b
(svn r11001) -Codechange: unify the way to determine whether a vehicle is in a depot.
2007-08-29 21:49:08 +00:00
rubidium
3f3b013b99
(svn r10999) -Codechange: unify the way the running cost of a vehicle is determined. Patch by nycom.
2007-08-29 21:27:16 +00:00
rubidium
2179faf5c8
(svn r10995) -Codechange: unify the way to get the displayed maxium speed of a vehicle. Patch by nycom.
2007-08-28 06:46:33 +00:00
rubidium
3c919e36a7
(svn r10985) -Codechange: unify/remove duplicate CcClone(Aircraft|RoadVeh|Ship|Train) in favour of CcCloneVehicle.
2007-08-26 21:21:59 +00:00
rubidium
a5b32d8d72
(svn r10984) -Codechange: unify the way one can get the current speed in the same forwat so we can display it.
2007-08-26 20:43:22 +00:00
rubidium
ab5fa3add2
(svn r10798) -Fix [FS#1105]: virtual functions do not work in destructors :(.
2007-08-05 17:43:04 +00:00
rubidium
5d3f058b65
(svn r10673) -Cleanup: some assorted style cleanups. Primarily type* var -> type *var.
2007-07-24 17:01:23 +00:00
rubidium
90f85c957a
(svn r10409) -Codechange: replace (Aircraft|RoadVeh|Ship|Train)_Tick with a Tick method in the Vehicle class.
2007-07-01 19:24:54 +00:00
rubidium
83a880c882
(svn r10408) -Codechange: make GetImage a class method of Vehicle instead of Get(Aircraft|RoadVeh|Ship|Train)Image.
2007-07-01 19:11:47 +00:00
maedhros
4acf3e4c3f
(svn r10009) -Codechange: Add and use Vehicle::IsPrimaryVehicle to replace individual checks depending on the vehicle type.
2007-06-01 12:03:10 +00:00
rubidium
161786e222
(svn r9807) -Codechange: unify playing of sound when vehicle has been loaded and leaves the station.
2007-05-07 15:58:05 +00:00
rubidium
951c74806f
(svn r9765) -Codechange: constify some class functions.
2007-05-02 09:39:11 +00:00
rubidium
dce7dcb664
(svn r9764) -Codechange: replace some lookup tables by functions.
2007-05-02 09:29:41 +00:00
rubidium
a4e045a3fb
(svn r9760) -Codechange: remove the need for saving some vehicle variables.
2007-05-01 16:35:14 +00:00
rubidium
ec9ac99d01
(svn r9755) -Codechange: refactor some more of the begin loading stuff.
2007-04-29 22:33:51 +00:00
rubidium
202009522c
(svn r9754) -Codechange: make classes for all vehicle types, so we can make nicer/better maintainable code, i.e. virtual methods instead of switches.
2007-04-29 21:24:08 +00:00
belugas
dfe5533db6
(svn r9556) -Documentation: doxygen and comment-style changes. 'R', 'S'.. The end of the preliminary work is near
2007-04-04 01:35:16 +00:00
rubidium
ce919e8c71
(svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the coding style (and rest of the code).
2007-03-08 16:27:54 +00:00
bjarni
0c8078ae29
(svn r8661) -Fix: [depot windows] Enlarge the blocks in the depot window if a sprite is too big to fit (ships and aircraft only)
...
-Codechange: depot windows default now makes a 1x1 matrix and resize the window by block size*number of blocks
This will make less vehicle type specific code and easier to read resizing based on sprite sizes
2007-02-10 13:37:32 +00:00
bjarni
14b2998023
(svn r8335) -Feature: the build ship window is now also resizable horizontally and contains sorting options
...
-Codechange: the build ship window is merged into build_vehicle_gui.cpp
2007-01-22 00:26:46 +00:00
rubidium
66bbf336c6
(svn r7759) -Merge: makefile rewrite. This merge features:
...
- A proper ./configure, so everything needs to be configured only once, not for every make.
- Usage of makedepend when available. This greatly reduces the time needed for generating the dependencies.
- A generator for all project files. There is a single file with sources, which is used to generate Makefiles and the project files for MSVC.
- Proper support for OSX universal binaries.
- Object files for non-MSVC compiles are also placed in separate directories, making is faster to switch between debug and release compiles and it does not touch the directory with the source files.
- Functionality to make a bundle of all needed files for for example a nightly or distribution of a binary with all needed GRFs and language files.
Note: as this merge moves almost all files, it is recommended to make a backup of your working copy before updating your working copy.
2007-01-02 19:19:48 +00:00