]> git.tdb.fi Git - r2c2.git/commit
Make the simulation independent of wall clock time
authorMikko Rasa <tdb@tdb.fi>
Sun, 9 Jun 2013 08:39:05 +0000 (11:39 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 9 Jun 2013 08:39:05 +0000 (11:39 +0300)
commit9f4f169affcedcf249e935f93e0a15ed60232f6a
tree2274b71345787ccfa68ba78c0955994c5daa1e4c
parentd2dfed1a38c5e8487532e9055fad464cf54efd83
Make the simulation independent of wall clock time

Layout now holds a Clock object, which keeps track of simulated absolute
time and can advance faster (or slower) than the system clock.
13 files changed:
source/libr2c2/aicontrol.cpp
source/libr2c2/aicontrol.h
source/libr2c2/clock.cpp [new file with mode: 0644]
source/libr2c2/clock.h [new file with mode: 0644]
source/libr2c2/layout.cpp
source/libr2c2/layout.h
source/libr2c2/train.cpp
source/libr2c2/train.h
source/libr2c2/trainai.h
source/libr2c2/trainrouter.cpp
source/libr2c2/trainrouter.h
source/libr2c2/trainstatus.cpp
source/libr2c2/trainstatus.h