ai_tilelist.hpp

Go to the documentation of this file.
00001 /* $Id$ */
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 
00026 private:
00033   void FixRectangleSpan(TileIndex &t1, TileIndex &t2);
00034 
00035 public:
00043   void AddRectangle(TileIndex tile_from, TileIndex tile_to);
00044 
00050   void AddTile(TileIndex tile);
00051 
00059   void RemoveRectangle(TileIndex tile_from, TileIndex tile_to);
00060 
00066   void RemoveTile(TileIndex tile);
00067 };
00068 
00074 class AITileList_IndustryAccepting : public AITileList {
00075 public:
00076   static const char *GetClassName() { return "AITileList_IndustryAccepting"; }
00077 
00084   AITileList_IndustryAccepting(IndustryID industry_id, int radius);
00085 };
00086 
00092 class AITileList_IndustryProducing : public AITileList {
00093 public:
00094   static const char *GetClassName() { return "AITileList_IndustryProducing"; }
00095 
00102   AITileList_IndustryProducing(IndustryID industry_id, int radius);
00103 };
00104 
00110 class AITileList_StationType : public AITileList {
00111 public:
00112   static const char *GetClassName() { return "AITileList_StationType"; }
00113 
00118   AITileList_StationType(StationID station_id, AIStation::StationType station_type);
00119 };
00120 
00121 #endif /* AI_TILELIST_HPP */

Generated on Wed Dec 30 20:40:00 2009 for OpenTTD by  doxygen 1.5.6