Commit Graph

6 Commits (3a7a81e02f3ced3ca57e8fcfb0a38398dda4d1b1)

Author SHA1 Message Date
Jonathan G Rennison fedf618978 Add last visited station condition. 9 years ago
Jonathan G Rennison 2296fc85e6 Add next order condition variable. 9 years ago
Jonathan G Rennison ffed0c194a Add current order (station, waypoint or depot) condition variable.
Adjust item bit allocations:
* Increase cond flags from 2 bits to 3 bits, for future expansion.
* Use 2 bits remaining in adjacent gap for an auxiliary type field.
  This is used for the type (station, waypoint, etc.) of order tests.
Perform a linear scan of the program pool when deleting a station,
waypoint or depot.
9 years ago
Jonathan G Rennison 0be3b053d5 Add maximum train speed condition variable. 9 years ago
Jonathan G Rennison 627288277e Implement reset, copy, share and unshare of trace restrict programs.
Add documentation on data storage model, wrt lookup, mapping and sharing.
9 years ago
Jonathan G Rennison 5f1b148cf9 Initial minimal working tracerestrict implementation.
This is a port of the tracerestrict/routing restrictions feature
from TTDPatch.
At present this implements if tests (train length only),
and pathfinder deny and penalty actions.
This requires the use of YAPF. Note that restrictions are only evaluated
within the YAPF lookahead distance.
9 years ago