1
/* $Id: tilehighlight_func.h 15065 2009-01-13 17:28:11Z frosch $ */
3
/** @file tilehighlight_func.h Functions related to tile highlights. */
5
#ifndef TILEHIGHLIGHT_FUNC_H
6
#define TILEHIGHLIGHT_FUNC_H
9
#include "window_type.h"
10
#include "viewport_type.h"
11
#include "tilehighlight_type.h"
13
typedef void PlaceProc(TileIndex tile);
14
void PlaceProc_DemolishArea(TileIndex tile);
15
bool GUIPlaceProcDragXY(ViewportDragDropSelectionProcess proc, TileIndex start_tile, TileIndex end_tile);
17
bool HandlePlacePushButton(Window *w, int widget, CursorID cursor, ViewportHighlightMode mode, PlaceProc *placeproc);
18
void SetObjectToPlaceWnd(CursorID icon, SpriteID pal, ViewportHighlightMode mode, Window *w);
19
void SetObjectToPlace(CursorID icon, SpriteID pal, ViewportHighlightMode mode, WindowClass window_class, WindowNumber window_num);
20
void ResetObjectToPlace();
22
void VpSelectTilesWithMethod(int x, int y, ViewportPlaceMethod method);
23
void VpStartPlaceSizing(TileIndex tile, ViewportPlaceMethod method, ViewportDragDropSelectionProcess process);
24
void VpSetPresizeRange(TileIndex from, TileIndex to);
25
void VpSetPlaceSizingLimit(int limit);
27
void UpdateTileSelection();
29
extern PlaceProc *_place_proc;
30
extern TileHighlightData _thd;
32
#endif /* TILEHIGHLIGHT_FUNC_H */