]> git.tdb.fi Git - r2c2.git/commit
New routing system for trains
authorMikko Rasa <tdb@tdb.fi>
Wed, 29 May 2013 17:48:38 +0000 (20:48 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 29 May 2013 20:31:42 +0000 (23:31 +0300)
commit1c072afdb1866ba397ee8e6155f5f68c6c7ab4da
tree53c65c5f25cac420239d7c46edf7e68d9e7520f4
parent0db89b665527609582df98854c9e3255d1017811
New routing system for trains

The earlier code routed each train separately and tried to deal with
conflicts as they arose.  The new system instead considers the entire
layout and simultaneously finds routes for all trains.  It is able to
have trains wait for each other, and in the future many new tricks can
be added.
source/engineer/trainpanel.cpp
source/libr2c2/timetable.cpp
source/libr2c2/timetable.h
source/libr2c2/train.cpp
source/libr2c2/trainrouteplanner.cpp [new file with mode: 0644]
source/libr2c2/trainrouteplanner.h [new file with mode: 0644]
source/libr2c2/trainrouter.cpp
source/libr2c2/trainrouter.h
source/libr2c2/zone.cpp