tilehighlight_func.h

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 TILEHIGHLIGHT_FUNC_H
00013 #define TILEHIGHLIGHT_FUNC_H
00014 
00015 #include "gfx_type.h"
00016 #include "window_type.h"
00017 #include "viewport_type.h"
00018 #include "tilehighlight_type.h"
00019 
00020 typedef void PlaceProc(TileIndex tile);
00021 void PlaceProc_DemolishArea(TileIndex tile);
00022 bool GUIPlaceProcDragXY(ViewportDragDropSelectionProcess proc, TileIndex start_tile, TileIndex end_tile);
00023 
00024 bool HandlePlacePushButton(Window *w, int widget, CursorID cursor, HighLightStyle mode, PlaceProc *placeproc);
00025 void SetObjectToPlaceWnd(CursorID icon, SpriteID pal, HighLightStyle mode, Window *w);
00026 void SetObjectToPlace(CursorID icon, SpriteID pal, HighLightStyle mode, WindowClass window_class, WindowNumber window_num);
00027 void ResetObjectToPlace();
00028 
00029 void VpSelectTilesWithMethod(int x, int y, ViewportPlaceMethod method);
00030 void VpStartPlaceSizing(TileIndex tile, ViewportPlaceMethod method, ViewportDragDropSelectionProcess process);
00031 void VpSetPresizeRange(TileIndex from, TileIndex to);
00032 void VpSetPlaceSizingLimit(int limit);
00033 
00034 void UpdateTileSelection();
00035 
00036 extern PlaceProc *_place_proc;
00037 extern TileHighlightData _thd;
00038 
00039 #endif /* TILEHIGHLIGHT_FUNC_H */

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