summaryrefslogtreecommitdiff
path: root/rail.h
AgeCommit message (Collapse)Author
2006-07-22(svn r5582) Add and use AxisToTrack{Bits,}()tron
2006-06-27(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectaculartron
2006-06-18(svn r5309) Partially fix the rail header dependency fiasco: rail_map.h now ↵tron
depends on rail.h and not the other way round anymore
2006-05-27(svn r4987) Feature: Merged YAPF into trunk. Thanks to devs for continuous ↵KUDr
support and users for testing.
2006-05-22(svn r4946) "Feature": Add a cheat that allows running electric engines on ↵celestar
normal rail
2006-05-09(svn r4788) - Codechange: RAILTYPE_{NORMAL,ELECTRIC,...} and ↵rubidium
RAIL_TYPE_{NORMAL,SIGNAL,...} have nearly the same name, rename RAIL_TYPE_* to RAIL_TILE_* of extra clarity
2006-05-07(svn r4764) Move some functions from rail.h to rail_map.htron
2006-04-23(svn r4541) Add a type for slopes and replace many magic numbers by the ↵tron
appropriate enums
2006-04-17(svn r4461) -Codechange: Add and make use of map accessor functions for ↵celestar
signal drawing. Includes some basic cleanup of the drawing functions
2006-04-12(svn r4376) -Codechange Renamed GetSignalState to GetSignalStateByTrackdircelestar
2006-04-11(svn r4354) [Elrail][NewGRF] Codechange: Drawing of custom waypoints with ↵peter1138
custom ground sprites used the index of the rail type as an offset. With the introduction of elrails this offset is incorrect, so instead there is now a lookup table within the RailTypeInfo struct to explicitly list the offset.
2006-04-11(svn r4351) Simplify ReverseTrackdir() to use a simple arithmetic operation ↵tron
instead of a table lookup
2006-04-10(svn r4349) Remove GetCrossingTransportType(), it's slightly overkilltron
2006-04-10(svn r4348) Move IsLevelCrossing() from rail.h to road_map.htron
2006-03-31(svn r4204) - Get trunk compiling again on OS/2orudge
2006-03-29(svn r4150) -Feature: Merged elrails into trunk. Thanks to Tron for lots of ↵celestar
code and proofreading, thanks to peter1138 for another lot of code and ideas.
2006-03-19(svn r3979) Move GetRailFoundation() to rail_map.h and use it and friends to ↵tron
get information about rail tiles
2006-03-18(svn r3946) Add short hand names for common track combinationstron
2006-03-18(svn r3941) Get rid of RAIL_TYPE_SPECIALtron
2006-03-17(svn r3913) Move declarations to rail_map.h so rail.h is dependent on ↵tron
rail_map.h and not the other way round
2006-03-17(svn r3912) Move the signal type enum and GetSignalType() to rail_map.h; ↵tron
also add SetSignalType() and use the functions
2006-03-16(svn r3911) Add functions to retrieve/set the signal variant ↵tron
(electric/semaphore)
2006-03-05(svn r3767) Move all direction related enums and functions to a separate headertron
2006-03-03(svn r3747) Change HASBIT() to return 0/1 instead of 0/value of tested bit, ↵tron
because the name suggests it does the former and current behavior broke in some places in very subtle ways (for example HASBIT(x, 0) != HASBIT(y, 1) doesn't work, returning a bool after HASBIT(x, 9) neither)
2006-03-01(svn r3697) Rename DIAG1/DIAG2 to X resp. Y as this conveys a bit better in ↵tron
which direction a pieces of rail goes
2006-02-06(svn r3564) Several smaller changes:tron
- Don't treat non-booleans as booleans - Reduce variable scope - Bracing - Use DeMorgan's law to make conditionals easier to read - if cascade -> switch - Replace some magic numbers by symbolic names - Avoid assignments within other statements
2006-02-01(svn r3510) Fiddle with whitespace and parenthesestron
2006-01-29(svn r3472) - [PBS] Remove from trunk. Anyone interested can still find it ↵Darkvater
in branch/pbs. This reverts revisions r3158, r3140, r3075, r2977, r2674, r2625, r2621, r2529, r2528, r2525, r2524, r2519, r2517, r2516, r2507, r2499. (in conjunction with Tron) - The only change is that the nsignalsw.grf file is kept and that existing nightlies with PBS signals get those signals converted to combo-signals.
2006-01-29(svn r3466) - Codechange: Some changes to increase readability of signals code.Darkvater
2006-01-26(svn r3443) - Fix signed/unsigned comparison warning when compiling with gcc ↵peter1138
2.95 (tokai)
2006-01-05(svn r3365) Staticise 36 functionstron
2005-12-21(svn r3329) - Doc: Some documentation cleanups.matthijs
- Add: TracksOverlap() (from the map branch), TrackdirBitsToTrackBits(), DiagdirReachesTrackdirs(), DiagdirReachesTracks(). - Fix: Infinite loop in the pathfinder introduces in r3321.
2005-10-22(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in ↵tron
comments, excess empty lines, minor other changes nothing spectacular, just some stuff, which piled up
2005-10-19(svn r3065) -Codechange/Add: Modified the bridge drawing code so that the ↵celestar
basic offset is read from the RailTypeInfo struct. This is (hopefully) the last DrawTile change on the way to electrified railways. While being at it, de-mystified the function a bit and added some asserts.
2005-10-16(svn r3049) Replace byte/int/uint by RailType where appropriatetron
2005-10-14(svn r3040) Don't deduce the cursor sprites when building rails from magic ↵tron
numbers, but fetch them from the central rail info array.
2005-10-13(svn r3037) Don't deduce the sprites for tunnels and level crossings from ↵tron
magic numbers, but fetch them from the central rail info array. This is a preparation step for electrified rails
2005-09-29(svn r2998) -Codechange: Split rail drawing code off from DrawTile_Rail into ↵peter1138
a separate function to be used elsewhere. (Deja vu?)
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-03(svn r2798) -Codechange: Unified the rail toolbars into one that is modified bycelestar
request using the RailtypeInfo struct
2005-07-31(svn r2774) -Codechange: Removed TRACKTYPE_SPRITE_PITCH globally and ↵celestar
replaced it by a member of RailtypeInfo
2005-07-29(svn r2756) Renamed railtypes into _railtypesludde
Renamed railtypes.c into railtypes.h, all other tables are in .h files. (It should be in the tables dir but I couldn't figure out how to get it there without deleting it first). Added const and extern.
2005-07-29(svn r2753) -Codechange: Introduced a new struct "RailtypeInfo" to store ↵celestar
rail type specific information. Begun populating it with a bunch of sprites, more to come later. This should result in cleaner, more compact code which allows easy introduction of new railtypes.
2005-07-29(svn r2752) -Doc: Added some doxygen stuff to rail.h. I'm gonna mess around ↵celestar
with this file and wanted to get rid of this first
2005-07-24(svn r2701) Insert Id tags into all source filestron
2005-07-13(svn r2558) Change the internal map format from 7 arrays to one array of ↵tron
structs, this doesn't change the saved format for now. It's a stepping stone for further changes.
2005-07-10(svn r2541) -Feature: Modified IsCompatibleRail so that an engine can move ↵celestar
on more than one railtype (like Diesel engines on electrified rail). -Codechange: Use IsCompatibleRail where it should be used
2005-07-04(svn r2516) - Feature: [pbs] Implement path-based-signalling. This allows ↵hackykid
multiple trains within the same signal block, provided their paths dont intersect. For this the block must have all exit and entry signals be pbs signals. Place these by ctrl-clicking 4 times on a normal signal. - Feature: [pbs] Implement autoplacement of pbs blocks, when a block has an entry and an exit pbs signal, covert the entire block to pbs. Can be turned off in the patch settings. - Feature: [pbs] Allow showing of reserved status by making the tracks darker, when the pbs debug level is at least 1.
2005-07-03(svn r2514) - Codechange: [NPF] Move the checking of railtype into a ↵matthijs
funciton IsCompatibleRail(). - Codechange: [NPF] Check the railtype along a route against the engine type instead of against the previouse tile. This clears the way for electriefied rails. - Add: [NPF] [ 1209644 ] A penalty for crossings (peter1138)
2005-07-02(svn r2507) -Fix: Forgot to change an enum in rail.h in r2499 (thanks ↵celestar
blathijs for pointing it out)