]> git.tdb.fi Git - r2c2.git/blob - source/libr2c2/trainai.cpp
Sync timetable to clock on first tick
[r2c2.git] / source / libr2c2 / trainai.cpp
1 #include "train.h"
2 #include "trainai.h"
3
4 using namespace std;
5
6 namespace R2C2 {
7
8 TrainAI::TrainAI(Train &t):
9         train(t)
10 {
11         train.add_ai(*this);
12 }
13
14 TrainAI::~TrainAI()
15 {
16         train.remove_ai(*this);
17 }
18
19 } // namespace R2C2