OpenTTD Source 20250312-master-gcdcc6b491d
terraform_cmd.h File Reference

Command definitions related to terraforming. More...

#include "command_type.h"
#include "map_type.h"
#include "slope_type.h"

Go to the source code of this file.

Functions

std::tuple< CommandCost, Money, TileIndexCmdTerraformLand (DoCommandFlags flags, TileIndex tile, Slope slope, bool dir_up)
 Terraform land.
 
std::tuple< CommandCost, Money, TileIndexCmdLevelLand (DoCommandFlags flags, TileIndex tile, TileIndex start_tile, bool diagonal, LevelMode lm)
 Levels a selected (rectangle) area of land.
 
void CcTerraform (Commands cmd, const CommandCost &result, Money, TileIndex tile)
 

Variables

CommandCallback CcPlaySound_EXPLOSION
 

Detailed Description

Command definitions related to terraforming.

Definition in file terraform_cmd.h.

Function Documentation

◆ CcTerraform()

void CcTerraform ( Commands  cmd,
const CommandCost result,
Money  ,
TileIndex  tile 
)

Definition at line 48 of file terraform_gui.cpp.

◆ CmdLevelLand()

std::tuple< CommandCost, Money, TileIndex > CmdLevelLand ( DoCommandFlags  flags,
TileIndex  tile,
TileIndex  start_tile,
bool  diagonal,
LevelMode  lm 
)

◆ CmdTerraformLand()

std::tuple< CommandCost, Money, TileIndex > CmdTerraformLand ( DoCommandFlags  flags,
TileIndex  tile,
Slope  slope,
bool  dir_up 
)

Variable Documentation

◆ CcPlaySound_EXPLOSION

CommandCallback CcPlaySound_EXPLOSION

Definition at line 23 of file terraform_cmd.h.