-/* $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_
typedef std::vector<Rod> RodArray;
+ typedef std::map<unsigned, std::string> FunctionMap;
+
private:
ArticleNumber art_nr;
std::string name;
bool locomotive;
- std::map<unsigned, std::string> functions;
+ FunctionMap functions;
bool swap_direction;
float length;
float width;
const std::string &get_name() const { return name; }
bool is_locomotive() const { return locomotive; }
unsigned get_max_function() const;
- const std::map<unsigned, std::string> &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; }