src/viewport_func.h
branchnoai
changeset 9724 b39bc69bb2f2
parent 9723 eee46cb39750
child 10249 58810805030e
equal deleted inserted replaced
9723:eee46cb39750 9724:b39bc69bb2f2
     6 #define VIEWPORT_FUNC_H
     6 #define VIEWPORT_FUNC_H
     7 
     7 
     8 #include "gfx_type.h"
     8 #include "gfx_type.h"
     9 #include "viewport_type.h"
     9 #include "viewport_type.h"
    10 #include "vehicle_type.h"
    10 #include "vehicle_type.h"
       
    11 #include "strings_type.h"
    11 
    12 
    12 void SetSelectionRed(bool);
    13 void SetSelectionRed(bool);
    13 
    14 
    14 void InitViewports();
    15 void InitViewports();
    15 void DeleteWindowViewport(Window *w);
    16 void DeleteWindowViewport(Window *w);
    48 
    49 
    49 Vehicle *CheckMouseOverVehicle();
    50 Vehicle *CheckMouseOverVehicle();
    50 
    51 
    51 void VpSelectTilesWithMethod(int x, int y, ViewportPlaceMethod method);
    52 void VpSelectTilesWithMethod(int x, int y, ViewportPlaceMethod method);
    52 void VpStartPlaceSizing(TileIndex tile, ViewportPlaceMethod method, byte process);
    53 void VpStartPlaceSizing(TileIndex tile, ViewportPlaceMethod method, byte process);
    53 void VpSetPresizeRange(uint from, uint to);
    54 void VpSetPresizeRange(TileIndex from, TileIndex to);
    54 void VpSetPlaceSizingLimit(int limit);
    55 void VpSetPlaceSizingLimit(int limit);
    55 
    56 
    56 typedef void PlaceProc(TileIndex tile);
    57 typedef void PlaceProc(TileIndex tile);
    57 void PlaceProc_DemolishArea(TileIndex tile);
    58 void PlaceProc_DemolishArea(TileIndex tile);
    58 void PlaceProc_LevelLand(TileIndex tile);
    59 void PlaceProc_LevelLand(TileIndex tile);