X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Flibr2c2%2Fvehicletype.h;h=d9afdbce8c00aa60f4e32e224c782176cd239b22;hb=d15ac13f2e170f155b4bbd124df48400c339b644;hp=33d7d6590dba03fdec299a0e4932a5f1e1528f21;hpb=2d44923e135a119fde31a7a50e5fcd3e400e4f41;p=r2c2.git diff --git a/source/libr2c2/vehicletype.h b/source/libr2c2/vehicletype.h index 33d7d65..d9afdbc 100644 --- a/source/libr2c2/vehicletype.h +++ b/source/libr2c2/vehicletype.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of R²C² -Copyright © 2010-2011 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - #ifndef LIBR2C2_VEHICLETYPE_H_ #define LIBR2C2_VEHICLETYPE_H_ @@ -129,11 +122,13 @@ public: typedef std::vector RodArray; + typedef std::map FunctionMap; + private: ArticleNumber art_nr; std::string name; bool locomotive; - std::map functions; + FunctionMap functions; bool swap_direction; float length; float width; @@ -150,7 +145,7 @@ public: const std::string &get_name() const { return name; } bool is_locomotive() const { return locomotive; } unsigned get_max_function() const; - const std::map &get_functions() const { return functions; } + const FunctionMap &get_functions() const { return functions; } bool get_swap_direction() const { return swap_direction; } float get_length() const { return length; } float get_width() const { return width; }