OpenTTD Source: src/ship_cmd.h File Reference

OpenTTD Source 14.0-RC3

Functions
ship_cmd.h File Reference
`#include "command_type.h"`
`#include "engine_type.h"`
`#include "vehicle_type.h"`

Go to the source code of this file.

## Functions
CommandCost | CmdBuildShip (DoCommandFlag flags, TileIndex tile, const Engine *e, Vehicle **v)
| Build a ship. More...

## Detailed Description

Command definitions related to ships.

Definition in file ship_cmd.h.

## Function Documentation

## ◆ CmdBuildShip()

CommandCost CmdBuildShip | ( | DoCommandFlag | flags,
|  | TileIndex | tile,
|  | const Engine * | e,
|  | Vehicle ** | ret
| ) |  |

Build a ship.

Parameters

  | flags | type of operation.
  | tile | tile of the depot where ship is built.
  | e | the engine to build.
  [out] | ret | the vehicle that has been built.

Returns
  the cost of this operation or an error.

Definition at line 914 of file ship_cmd.cpp.

References DC_EXEC, and GetShipDepotNorthTile().