]> git.tdb.fi Git - r2c2.git/blob - source/3d/trackcircuit.h
Don't crash if a train has no router
[r2c2.git] / source / 3d / trackcircuit.h
1 #ifndef R2C2_3D_TRACKCIRCUIT_H_
2 #define R2C2_3D_TRACKCIRCUIT_H_
3
4 #include <libr2c2/trackcircuit.h>
5 #include "utility.h"
6
7 namespace R2C2 {
8
9 class Layout3D;
10 class Path3D;
11
12 class TrackCircuit3D: public Utility3D, public sigc::trackable
13 {
14 private:
15         TrackCircuit &track_circuit;
16         std::list<Path3D *> paths;
17
18 public:
19         TrackCircuit3D(Layout3D &, TrackCircuit &);
20
21 private:
22         void state_changed(Sensor::State);
23 };
24
25 } // namespace R2C2
26
27 #endif