(svn r9901) -Codechange: Decide what to do with selected land areas based on the specific variable, not how it was highlighted.

This commit is contained in:
maedhros
2007-05-23 13:52:10 +00:00
parent ca5c578d0f
commit 35ce34d55a
8 changed files with 93 additions and 69 deletions

View File

@@ -68,15 +68,29 @@ void PlaceProc_DemolishArea(TileIndex tile);
void PlaceProc_LevelLand(TileIndex tile);
bool GUIPlaceProcDragXY(const WindowEvent *e);
/** Drag and drop selection process, or, what to do with an area of land when
* you've selected it. */
enum {
GUI_PlaceProc_None,
GUI_PlaceProc_DemolishArea,
GUI_PlaceProc_LevelArea,
GUI_PlaceProc_DesertArea,
GUI_PlaceProc_WaterArea,
GUI_PlaceProc_ConvertRailArea,
GUI_PlaceProc_RockyArea,
GUI_PlaceProc_RemoveFromStation,
DDSP_DEMOLISH_AREA,
DDSP_LEVEL_AREA,
DDSP_CREATE_DESERT,
DDSP_CREATE_ROCKS,
DDSP_CREATE_WATER,
DDSP_PLANT_TREES,
DDSP_BUILD_BRIDGE,
/* Rail specific actions */
DDSP_PLACE_RAIL_NE,
DDSP_PLACE_RAIL_NW,
DDSP_PLACE_AUTORAIL,
DDSP_BUILD_SIGNALS,
DDSP_BUILD_STATION,
DDSP_REMOVE_STATION,
DDSP_CONVERT_RAIL,
/* Road specific actions */
DDSP_PLACE_ROAD_NE,
DDSP_PLACE_ROAD_NW,
};
/* misc_gui.cpp */