void track(unsigned);
};
+ sigc::signal<void, const TrackType &> signal_track_added;
+ sigc::signal<void, const LocoType &> signal_loco_added;
+
private:
float scale;
float gauge;
float get_gauge() const { return gauge; }
const Profile &get_rail_profile() const { return rail_profile; }
const Profile &get_ballast_profile() const { return ballast_profile; }
- TrackType &get_track(unsigned) const;
+
+ void add_track(TrackType &);
+ const TrackType &get_track(unsigned) const;
const std::map<unsigned, TrackType *> &get_tracks() const { return tracks; }
- LocoType &get_locomotive(unsigned) const;
+
+ void add_locomotive(LocoType &);
+ const LocoType &get_locomotive(unsigned) const;
const std::map<unsigned, LocoType *> &get_locomotives() const { return locos; }
+
Layout &get_layout() { return layout; }
};