]> git.tdb.fi Git - r2c2.git/blob - source/3d/train.h
Add a set_sensor function to the Driver interface
[r2c2.git] / source / 3d / train.h
1 /* $Id$
2
3 This file is part of the MSP Märklin suite
4 Copyright © 2010  Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef MARKLIN3D_TRAIN_H_
9 #define MARKLIN3D_TRAIN_H_
10
11 #include "libmarklin/train.h"
12 #include "object.h"
13
14 namespace Marklin {
15
16 class Layout3D;
17
18 class Train3D: public Object3D
19 {
20 private:
21         Layout3D &layout;
22         const Train &train;
23
24 public:
25         Train3D(Layout3D &, const Train &);
26         ~Train3D();
27
28         const Train &get_train() const { return train; }
29
30         virtual Point get_node() const;
31 };
32
33 } // namespace Marklin
34
35 #endif