]> git.tdb.fi Git - r2c2.git/blob - trainai.cpp
df80240d83284156613da0817e51dc2e41b16cfc
[r2c2.git] / 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