OpenTTD Source  20240919-master-gdf0233f4c2
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
flagstype of operation.
tiletile of the depot where ship is built.
ethe engine to build.
[out]retthe vehicle that has been built.
Returns
the cost of this operation or an error.

Definition at line 895 of file ship_cmd.cpp.

References DC_EXEC, and GetShipDepotNorthTile().