3 This file is part of the MSP Märklin suite
4 Copyright © 2010 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
8 #ifndef LIBMARKLIN_VEHICLE_H_
9 #define LIBMARKLIN_VEHICLE_H_
36 TrackPosition(Track *, unsigned, float);
38 TrackPoint get_point() const;
42 const VehicleType &type;
45 TrackPosition track_pos;
50 Vehicle(Layout &, const VehicleType &);
53 const VehicleType &get_type() const { return type; }
55 void place(Track *, unsigned, float, PlaceMode = CENTER);
57 Track *get_track() const { return track_pos.track; }
58 const Point &get_position() const { return position; }
59 float get_direction() const { return direction; }
61 void update_position();
62 TrackPoint get_position(float, float, const TrackPosition &);
65 } // namespace Marklin