10455
|
1 |
/* $Id$ */
|
|
2 |
|
|
3 |
/** @file tilehighlight_func.h Functions related to tile highlights. */
|
|
4 |
|
|
5 |
#ifndef TILEHIGHLIGHT_FUNC_H
|
|
6 |
#define TILEHIGHLIGHT_FUNC_H
|
|
7 |
|
|
8 |
#include "gfx_type.h"
|
|
9 |
#include "window_type.h"
|
|
10 |
#include "viewport_type.h"
|
|
11 |
#include "tilehighlight_type.h"
|
|
12 |
|
|
13 |
typedef void PlaceProc(TileIndex tile);
|
|
14 |
void PlaceProc_DemolishArea(TileIndex tile);
|
|
15 |
void PlaceProc_LevelLand(TileIndex tile);
|
|
16 |
void PlaceProc_BuyLand(TileIndex tile);
|
|
17 |
bool GUIPlaceProcDragXY(const WindowEvent *e);
|
|
18 |
|
|
19 |
bool HandlePlacePushButton(Window *w, int widget, CursorID cursor, ViewportHighlightMode mode, PlaceProc *placeproc);
|
|
20 |
void SetObjectToPlaceWnd(CursorID icon, SpriteID pal, ViewportHighlightMode mode, Window *w);
|
|
21 |
void SetObjectToPlace(CursorID icon, SpriteID pal, ViewportHighlightMode mode, WindowClass window_class, WindowNumber window_num);
|
|
22 |
|
|
23 |
extern PlaceProc *_place_proc;
|
|
24 |
extern TileHighlightData _thd;
|
|
25 |
|
|
26 |
#endif /* TILEHIGHLIGHT_FUNC_H */
|