From 11bf3902c46fd559e203cbee59489048ad3c62b3 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 2 Aug 2008 22:47:20 +0000 Subject: (svn r13926) -Add [YAPP]: Add map accessors for path reservations. (michi_cc) --- docs/landscape.html | 38 +++++++++++++++++++++++ docs/landscape_grid.html | 16 +++++----- src/rail_map.h | 81 ++++++++++++++++++++++++++++++++++++++++++++++++ src/road_map.h | 37 ++++++++++++++++++++++ src/station_map.h | 36 +++++++++++++++++++++ src/track_func.h | 15 +++++++++ src/tunnelbridge_map.h | 39 +++++++++++++++++++++++ 7 files changed, 254 insertions(+), 8 deletions(-) diff --git a/docs/landscape.html b/docs/landscape.html index 9a92ba9c0..15333cc8f 100644 --- a/docs/landscape.html +++ b/docs/landscape.html @@ -407,6 +407,39 @@
  • m4 bits 7..4: bit clear = signal 3..0 shows red
  • +
  • m2 bits 8..10: track reserved for pbs + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    0  not reserved
    1  X direction
    2  Y direction
    3  north corner (W-E)
    4  south corner (W-E)
    5  west corner (N-S)
    6  east corner (N-S)
    +
  • +
  • m2 bit 11: opposite track is reserved, too
  • m5 bit 7 set, bit 6 clear: checkpoint @@ -425,6 +458,7 @@
  • +
  • m5 bit 4: pbs reservation state
  • m5 bit 7 set, bit 6 set: railway depot @@ -452,6 +486,7 @@
  • +
  • m5 bit 4: pbs reservation state
  • m6 bits 7..6 : Possibility of a bridge above, in the direction specified
  • @@ -582,6 +617,7 @@
  • m4 bit 5: set if crossing lights are on
  • m4 bits 4..0: owner of the road type 0 (normal road)
  • +
  • m5 bit 4: pbs reservation state
  • @@ -898,6 +934,7 @@
  • m6 bits 5..3: the station type (rail, airport, truck, bus, oilrig, dock, buoy)
  • m6 bit 2: 1 when a drive through road stop is built over a town owned road, otherwise 0
  • +
  • m6 bit 2: pbs reservation state for railway stations
  • m6 bits 1..0 : Tropic zone definition
  • m7: animation frame
  • @@ -1370,6 +1407,7 @@
  • m3 bits 3..0: track type for railway
  • m3 bits 2..0: present road types for road
  • m4 bit 7 set = on snow or desert
  • +
  • m5 bit 4: pbs reservation state for railway
  • m5 bits 7 clear: tunnel entrance/exit
  • m5 bit 7 set: bridge ramp