]> git.tdb.fi Git - r2c2.git/blob - source/libr2c2/trainai.cpp
Strip Id tags and copyright notices from files
[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 void TrainAI::set_tag(const string &t)
20 {
21         tag = t;
22 }
23
24 } // namespace R2C2