1 /* 2 * This file is part of OpenTTD. 3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. 4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>. 6 */ 7 8 /** @file script_roadtypelist.hpp List all available roadtypes. */ 9 10 #ifndef SCRIPT_ROADTYPELIST_HPP 11 #define SCRIPT_ROADTYPELIST_HPP 12 13 #include "script_list.hpp" 14 #include "script_road.hpp" 15 16 /** 17 * Creates a list of all available roadtypes. 18 * @api ai game 19 * @ingroup ScriptList 20 */ 21 class ScriptRoadTypeList : public ScriptList { 22 public: 23 /** 24 * @param rtts Bitmask of road/tram types to list. 25 */ 26 ScriptRoadTypeList(ScriptRoad::RoadTramTypes rtts); 27 }; 28 29 #endif /* SCRIPT_ROADTYPELIST_HPP */ 30