ai_tilelist.hpp

Go to the documentation of this file.
00001 /* $Id: ai_tilelist.hpp 21888 2011-01-22 10:33:16Z 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_station.hpp"
00016 #include "ai_list.hpp"
00017 
00022 class AITileList : public AIList {
00023 public:
00025   static const char *GetClassName() { return "AITileList"; }
00026 
00034   void AddRectangle(TileIndex tile_from, TileIndex tile_to);
00035 
00041   void AddTile(TileIndex tile);
00042 
00050   void RemoveRectangle(TileIndex tile_from, TileIndex tile_to);
00051 
00057   void RemoveTile(TileIndex tile);
00058 };
00059 
00065 class AITileList_IndustryAccepting : public AITileList {
00066 public:
00068   static const char *GetClassName() { return "AITileList_IndustryAccepting"; }
00069 
00076   AITileList_IndustryAccepting(IndustryID industry_id, int radius);
00077 };
00078 
00084 class AITileList_IndustryProducing : public AITileList {
00085 public:
00087   static const char *GetClassName() { return "AITileList_IndustryProducing"; }
00088 
00095   AITileList_IndustryProducing(IndustryID industry_id, int radius);
00096 };
00097 
00103 class AITileList_StationType : public AITileList {
00104 public:
00106   static const char *GetClassName() { return "AITileList_StationType"; }
00107 
00112   AITileList_StationType(StationID station_id, AIStation::StationType station_type);
00113 };
00114 
00115 #endif /* AI_TILELIST_HPP */

Generated on Fri Mar 18 23:17:33 2011 for OpenTTD by  doxygen 1.6.1