]> git.tdb.fi Git - r2c2.git/commit
Redesign the train activation system
authorMikko Rasa <tdb@tdb.fi>
Tue, 25 Jun 2013 15:39:14 +0000 (18:39 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 25 Jun 2013 15:39:14 +0000 (18:39 +0300)
commit57e0944ee8ed442e2d0aa7c9964cac00450af5e7
tree75bdf17d781d73bf7cbf1aac54b4536443d2e908
parent4eea980c210c3f3bf5520c1e3d68426a4669db8a
Redesign the train activation system

It was getting rather messy and there was one or two bugs where block
allocation didn't resume correctly.  The flag now resides in
BlockAllocator.  Rather than poking at it directly, AIs can express an
intention of moving the train.  This should help keep things in sync
with each other.
source/engineer/engineer.cpp
source/libr2c2/aicontrol.cpp
source/libr2c2/aicontrol.h
source/libr2c2/blockallocator.cpp
source/libr2c2/blockallocator.h
source/libr2c2/train.cpp
source/libr2c2/train.h
source/libr2c2/trainai.h
source/libr2c2/trainrouter.cpp
source/libr2c2/trainstatus.cpp