script_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 SCRIPT_TILELIST_HPP
00013 #define SCRIPT_TILELIST_HPP
00014 
00015 #include "script_station.hpp"
00016 #include "script_list.hpp"
00017 
00023 class ScriptTileList : public ScriptList {
00024 public:
00032   void AddRectangle(TileIndex tile_from, TileIndex tile_to);
00033 
00039   void AddTile(TileIndex tile);
00040 
00048   void RemoveRectangle(TileIndex tile_from, TileIndex tile_to);
00049 
00055   void RemoveTile(TileIndex tile);
00056 };
00057 
00064 class ScriptTileList_IndustryAccepting : public ScriptTileList {
00065 public:
00072   ScriptTileList_IndustryAccepting(IndustryID industry_id, int radius);
00073 };
00074 
00081 class ScriptTileList_IndustryProducing : public ScriptTileList {
00082 public:
00089   ScriptTileList_IndustryProducing(IndustryID industry_id, int radius);
00090 };
00091 
00098 class ScriptTileList_StationType : public ScriptTileList {
00099 public:
00104   ScriptTileList_StationType(StationID station_id, ScriptStation::StationType station_type);
00105 };
00106 
00107 #endif /* SCRIPT_TILELIST_HPP */