author | truebrain |
Fri, 13 Jun 2008 19:57:25 +0000 | |
branch | noai |
changeset 10957 | 7a140b4cd91d |
parent 10645 | 8cbdb511a674 |
permissions | -rw-r--r-- |
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); |
|
10645 | 15 |
bool GUIPlaceProcDragXY(ViewportDragDropSelectionProcess proc, TileIndex start_tile, TileIndex end_tile); |
10455 | 16 |
|
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); |
|
10513
33cb70ff2f5d
(svn r13056) [NoAI] -Sync: with trunk r12996:13055.
rubidium
parents:
10455
diff
changeset
|
20 |
void ResetObjectToPlace(); |
33cb70ff2f5d
(svn r13056) [NoAI] -Sync: with trunk r12996:13055.
rubidium
parents:
10455
diff
changeset
|
21 |
|
33cb70ff2f5d
(svn r13056) [NoAI] -Sync: with trunk r12996:13055.
rubidium
parents:
10455
diff
changeset
|
22 |
void VpSelectTilesWithMethod(int x, int y, ViewportPlaceMethod method); |
33cb70ff2f5d
(svn r13056) [NoAI] -Sync: with trunk r12996:13055.
rubidium
parents:
10455
diff
changeset
|
23 |
void VpStartPlaceSizing(TileIndex tile, ViewportPlaceMethod method, ViewportDragDropSelectionProcess process); |
33cb70ff2f5d
(svn r13056) [NoAI] -Sync: with trunk r12996:13055.
rubidium
parents:
10455
diff
changeset
|
24 |
void VpSetPresizeRange(TileIndex from, TileIndex to); |
33cb70ff2f5d
(svn r13056) [NoAI] -Sync: with trunk r12996:13055.
rubidium
parents:
10455
diff
changeset
|
25 |
void VpSetPlaceSizingLimit(int limit); |
10455 | 26 |
|
27 |
extern PlaceProc *_place_proc; |
|
28 |
extern TileHighlightData _thd; |
|
29 |
||
30 |
#endif /* TILEHIGHLIGHT_FUNC_H */ |