diff options
author | rubidium <rubidium@openttd.org> | 2008-05-07 13:10:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-07 13:10:15 +0000 |
commit | c28ce39e3cefd43ca52e5daf812048a38f23eeb7 (patch) | |
tree | bcef44c109a8918a321975b6aaaff9a98017d596 /src/tilehighlight_func.h | |
parent | e0e1bf76a23eca1ac622f5915a8461b8a77f6779 (diff) | |
download | openttd-c28ce39e3cefd43ca52e5daf812048a38f23eeb7.tar.xz |
(svn r12987) -Codechange: split viewport and tile selection.
Diffstat (limited to 'src/tilehighlight_func.h')
-rw-r--r-- | src/tilehighlight_func.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/tilehighlight_func.h b/src/tilehighlight_func.h new file mode 100644 index 000000000..13278aa5f --- /dev/null +++ b/src/tilehighlight_func.h @@ -0,0 +1,26 @@ +/* $Id$ */ + +/** @file tilehighlight_func.h Functions related to tile highlights. */ + +#ifndef TILEHIGHLIGHT_FUNC_H +#define TILEHIGHLIGHT_FUNC_H + +#include "gfx_type.h" +#include "window_type.h" +#include "viewport_type.h" +#include "tilehighlight_type.h" + +typedef void PlaceProc(TileIndex tile); +void PlaceProc_DemolishArea(TileIndex tile); +void PlaceProc_LevelLand(TileIndex tile); +void PlaceProc_BuyLand(TileIndex tile); +bool GUIPlaceProcDragXY(const WindowEvent *e); + +bool HandlePlacePushButton(Window *w, int widget, CursorID cursor, ViewportHighlightMode mode, PlaceProc *placeproc); +void SetObjectToPlaceWnd(CursorID icon, SpriteID pal, ViewportHighlightMode mode, Window *w); +void SetObjectToPlace(CursorID icon, SpriteID pal, ViewportHighlightMode mode, WindowClass window_class, WindowNumber window_num); + +extern PlaceProc *_place_proc; +extern TileHighlightData _thd; + +#endif /* TILEHIGHLIGHT_FUNC_H */ |