summaryrefslogtreecommitdiff
path: root/engine.h
AgeCommit message (Collapse)Author
2006-12-28(svn r7592) -Feature: Add support for tractive effort to 'realistic' ↵peter1138
acceleration.
2006-12-03(svn r7331) - Codechange: Rename all memory pool macro's and types to "old ↵matthijs
pool", so the new pool implementation can be committed alongside it. - Codechange: Rename pool.[ch] to oldpool.[ch].
2006-12-03(svn r7330) -Fix (r7304): Data invalidation doesn't always happen as the local peter1138
player, resulting in an empty vehicle purchase list. Specify the player as an argument to IsEngineBuildable()
2006-12-02(svn r7326) -Feature: Add support for gradual (un)loading of vehicles (Maedhros)peter1138
2006-11-30(svn r7299) -CodeChange: Train and Aircraft Build window GUI code simplified ↵KUDr
a bit: - using one engine list instead of 3 - removed engine filters (loco, wagons, helicopters, etc.) - EngineList code isolated from GUI (moved to helpers.cpp - reusing CBlobT code which does exactly what is needed for EngineList) - removed unnecessary "optimization" (rebuild and sort engine list on each WE_PAINT)
2006-11-06(svn r7079) -Codechange: Move an array to the only place it is used.peter1138
2006-10-28(svn r6977) Use the pool macros for the EngineRenew pooltron
2006-09-04(svn r6381) -Cleanup: make the '/* */' comments that span multiple lines ↵rubidium
more uniform. -Cleanup: whitespace alignment of a few tables.
2006-08-28(svn r6204) -Cleanup: replace non-indentation with spaces; like '}<TAB>else ↵rubidium
{' -> '} else {', tabs between code and comment, etc.
2006-08-26(svn r6137) -Codechange: some very minor cleanups:truelight
- Start using DeleteXXX for every pool item, not manually doing it - Use some wrapper to improve logic - Rewrote some pieces to improve logic
2006-08-22(svn r6049) -Codechange: forgot EngineRenew in r6047truelight
-Codechange: cleaned up the EngineRenew code a bit (coding style mostly) -Codechange: forgot the correct comment in station_cmd -Codechange: move pool-stuff to engine.h, like we always do
2006-08-22(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. ↵rubidium
whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
2006-08-20(svn r5999) -Feature: change the original date format to a 32 bits format ↵rubidium
based at the year 0. The game date subsystem now allows someone to start in the year 0 and continue up to the year 5 000 000. However, you currently cannot build anything before 1920 as there is no newgrf support for dates before 1920 or after 2090 yet.
2006-08-15(svn r5919) -Cleanup: use the type Date when the variable really is a daterubidium
2006-06-27(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectaculartron
2006-06-14(svn r5262) Add symbolic names for the aircraft subtypes. not perfect, but ↵tron
better than raw numbers
2006-06-09(svn r5201) - NewGRF: add loading of default refit costs. This information ↵peter1138
is not yet used
2006-06-04(svn r5105) - NewGRF: Move callbackmask from *VehicleInfo to EngineInfo. ↵peter1138
This simplifies code that works with more than one vehicle type.
2006-05-18(svn r4902) Newgrf : Introduction of the newgrf_cargo files. belugas
Clearing engine and newgrf_engine from cargo related structures. Apart from moving stuff cargo related, there is nothing really newcargo for now.
2006-05-17(svn r4901) - Codechange: change 'SpriteGroup *' to 'struct SpriteGroup *' ↵peter1138
within StationSpec and GRFFile struct declarations. Now only code which actually references those pointers needs to know about the SpriteGroup struct. Remove some unnecessary lingering header dependencies.
2006-05-17(svn r4896) - NewGRF: add support for vehicle property 0x25 (user defined ↵peter1138
data) used by variable 0x42.
2006-05-04(svn r4738) - Newstations: attach all sprite group cargo types, not just the ↵peter1138
default and purchase pseudo types, to a station spec.
2006-03-31(svn r4201) - Codechange: Do for _engine_info[] what we do for ↵peter1138
_*_vehicle_info[]; create and use a function to retrieve data, and ensure constness.
2006-03-26(svn r4128) - CodeChange: Add proper semantics for CargoID for such ↵Darkvater
variables instead of using the general byte-type.
2006-03-01(svn r3717) - [2cc] Add 2cc colour maps and use for newgrf engines requiring ↵peter1138
them. Currently the second colour is fixed to be the player's colour.
2006-02-28(svn r3684) - NewGRF: Support loading of miscellaneous flags (not used yet)peter1138
2006-02-13(svn r3602) - Move _railveh_score data to _rail_vehicle_info->ai_rank and ↵peter1138
remove global variable to return data as we can now access this directly.
2006-02-11(svn r3586) - NewGRF: Load callback masks for all vehicle types.peter1138
2006-02-03(svn r3524) - Split newgrf features from engine.[ch] into ↵peter1138
newgrf_engine.[ch], and add the new files to project files.
2006-01-12(svn r3396) - Autoreplace changes:peter1138
- Change fixed array per player to a single pool. This avoids future problems with vehicle numbers and decreases savegame size. Engine replacements from previous savegames will be lost. - Move engine replacement code from players.c to engine.c. (thanks to blathijs for rewriting this)
2006-01-07(svn r3388) - NewGRF: Allow train running cost class to differ from engine ↵peter1138
class. Also fix typo in r3384.
2006-01-05(svn r3365) Staticise 36 functionstron
2005-12-18(svn r3316) - NewGRF: Unload engine names before loading grf files. This ↵peter1138
fixes names in climates where the engines don't get loaded. Renamed function to reflect its purpose.
2005-12-15(svn r3308) BADtron
foo.h: int bar; GOOD foo.h: extern int bar; foo.c: int bar;
2005-11-06(svn r3148) -NewGRF, Feature: Add support for cargo refitting specification ↵peter1138
by cargo classes.
2005-11-05(svn r3139) -NewGRF, Feature: support for articulated rail vehicles. This is ↵peter1138
used, for example, by coal tenders.
2005-10-20(svn r3071) -NewGRF: Add support for rail vehicle weight greater than 255 tons.peter1138
2005-10-18(svn r3059) Use bitfields to encode railtype and climates of engines instead ↵tron
of manual shifting/anding
2005-10-04(svn r3017) -NewGRF: Implement sprite group unreferencing and unloading.peter1138
2005-10-01(svn r3003) Change int, uint, uin16 and byte to EngineID where appropriate, ↵tron
plus some related changes (mostly casts)
2005-09-26(svn r2990) Remove _engine_original_sprites and replace all uses with ↵peter1138
references to our (new) original engine/vehicle tables.
2005-09-26(svn r2989) - Make engine/vehicle information tables constant. Duplicate ↵peter1138
them so NewGRF data can be loaded without wiping out the default data.
2005-09-18(svn r2962) - const correctness for all Get* functions and most Draw* ↵Darkvater
functions that don't change their pointer parameters - change a lot of byte player types to PlayerID - beautify header files, same "#endif /* filename */" ending
2005-08-11(svn r2857) -Fix: PlayerID is not a valid type for a player-bit-field. ↵truelight
Partly reverted r2290
2005-07-24(svn r2701) Insert Id tags into all source filestron
2005-07-19(svn r2639) -Add: Added the vehicle names in table/engines.h so that you ↵celestar
know what line represents what vehicle (I hope I didn't mess that up). Added some comments while I'm at it and include the table/ directory in the Doxygen generation
2005-07-01(svn r2504) Move Draw*EngineInfo to engine_gui.c to reduce dependenciestron
2005-06-07(svn r2432) Use GetEngine() instead of DEREF_ENGINE() or even _engines[]tron
2005-06-06(svn r2428) - Feature: [newgrf] Implement shorter train vehicles (Therax), ↵hackykid
and the callback that goes with it. - Codechange: Remove some magic numbers (PALETTE_CRASH)
2005-06-06(svn r2415) - Fix: [newgrf] Powered Wagons - Don't assume an undefined ↵hackykid
callback will fail.