tilehighlight_func.h
Go to the documentation of this file.00001
00002
00005 #ifndef TILEHIGHLIGHT_FUNC_H
00006 #define TILEHIGHLIGHT_FUNC_H
00007
00008 #include "gfx_type.h"
00009 #include "window_type.h"
00010 #include "viewport_type.h"
00011 #include "tilehighlight_type.h"
00012
00013 typedef void PlaceProc(TileIndex tile);
00014 void PlaceProc_DemolishArea(TileIndex tile);
00015 bool GUIPlaceProcDragXY(ViewportDragDropSelectionProcess proc, TileIndex start_tile, TileIndex end_tile);
00016
00017 bool HandlePlacePushButton(Window *w, int widget, CursorID cursor, ViewportHighlightMode mode, PlaceProc *placeproc);
00018 void SetObjectToPlaceWnd(CursorID icon, SpriteID pal, ViewportHighlightMode mode, Window *w);
00019 void SetObjectToPlace(CursorID icon, SpriteID pal, ViewportHighlightMode mode, WindowClass window_class, WindowNumber window_num);
00020 void ResetObjectToPlace();
00021
00022 void VpSelectTilesWithMethod(int x, int y, ViewportPlaceMethod method);
00023 void VpStartPlaceSizing(TileIndex tile, ViewportPlaceMethod method, ViewportDragDropSelectionProcess process);
00024 void VpSetPresizeRange(TileIndex from, TileIndex to);
00025 void VpSetPlaceSizingLimit(int limit);
00026
00027 void UpdateTileSelection();
00028
00029 extern PlaceProc *_place_proc;
00030 extern TileHighlightData _thd;
00031
00032 #endif