00001 /* $Id: ai_tilelist.hpp 18721 2010-01-04 18:39:46Z rubidium $ */ 00002 00003 /* 00004 * This file is part of OpenTTD. 00005 * 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. 00006 * 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. 00007 * 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/>. 00008 */ 00009 00012 #ifndef AI_TILELIST_HPP 00013 #define AI_TILELIST_HPP 00014 00015 #include "ai_abstractlist.hpp" 00016 #include "ai_station.hpp" 00017 00022 class AITileList : public AIAbstractList { 00023 public: 00024 static const char *GetClassName() { return "AITileList"; } 00025 00033 void AddRectangle(TileIndex tile_from, TileIndex tile_to); 00034 00040 void AddTile(TileIndex tile); 00041 00049 void RemoveRectangle(TileIndex tile_from, TileIndex tile_to); 00050 00056 void RemoveTile(TileIndex tile); 00057 }; 00058 00064 class AITileList_IndustryAccepting : public AITileList { 00065 public: 00066 static const char *GetClassName() { return "AITileList_IndustryAccepting"; } 00067 00074 AITileList_IndustryAccepting(IndustryID industry_id, int radius); 00075 }; 00076 00082 class AITileList_IndustryProducing : public AITileList { 00083 public: 00084 static const char *GetClassName() { return "AITileList_IndustryProducing"; } 00085 00092 AITileList_IndustryProducing(IndustryID industry_id, int radius); 00093 }; 00094 00100 class AITileList_StationType : public AITileList { 00101 public: 00102 static const char *GetClassName() { return "AITileList_StationType"; } 00103 00108 AITileList_StationType(StationID station_id, AIStation::StationType station_type); 00109 }; 00110 00111 #endif /* AI_TILELIST_HPP */