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