]> git.tdb.fi Git - r2c2.git/commit
Get rid of the TrainAI tagging system
authorMikko Rasa <tdb@tdb.fi>
Sun, 24 Feb 2013 11:53:46 +0000 (13:53 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 24 Feb 2013 11:53:46 +0000 (13:53 +0200)
commitdec294d40194a640e7b4bccf20dd1baa4a87038c
tree271e10595f8347bb23d5270af1301a09a0a5e6dd
parent3acb396462f2d6361423b744e489c13ef64c8114
Get rid of the TrainAI tagging system

Instead add a function to get an AI of a specific type.

The tags were too clumsy and brittle.  Most AIs don't work well with
multiple instances per train, so the type is an adequate identifier.
13 files changed:
source/engineer/routeselect.cpp
source/engineer/trainpanel.cpp
source/engineer/trainproperties.cpp
source/libr2c2/timetable.cpp
source/libr2c2/timetable.h
source/libr2c2/train.cpp
source/libr2c2/train.h
source/libr2c2/trainai.cpp
source/libr2c2/trainai.h
source/libr2c2/trainrouter.cpp
source/libr2c2/trainrouter.h
source/network/server.cpp
source/network/server.h