From 8f0e68285b4eadd1780280d7e36b00ff80c20f67 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 22 Dec 2007 23:30:28 +0000 Subject: (svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type. --- src/functions.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/functions.h') diff --git a/src/functions.h b/src/functions.h index c7b758132..c4b42dc45 100644 --- a/src/functions.h +++ b/src/functions.h @@ -5,10 +5,9 @@ #ifndef FUNCTIONS_H #define FUNCTIONS_H -#include "gfx.h" -#include "viewport.h" #include "core/random_func.hpp" #include "command_type.h" +#include "window_type.h" void UpdateTownMaxPass(Town *t); @@ -74,15 +73,6 @@ void InvalidateWindowClassesData(WindowClass cls); void DeleteWindowById(WindowClass cls, WindowNumber number); void DeleteWindowByClass(WindowClass cls); -void SetObjectToPlaceWnd(CursorID icon, SpriteID pal, ViewportHighlightMode mode, Window *w); -void SetObjectToPlace(CursorID icon, SpriteID pal, ViewportHighlightMode mode, WindowClass window_class, WindowNumber window_num); - -void ResetObjectToPlace(); - -bool ScrollWindowTo(int x, int y, Window *w, bool instant = false); - -bool ScrollMainWindowToTile(TileIndex tile, bool instant = false); -bool ScrollMainWindowTo(int x, int y, bool instant = false); bool EnsureNoVehicleOnGround(TileIndex tile); /** -- cgit v1.2.3-54-g00ecf