depot_cmd.cpp File Reference

Command Handling for depots. More...

#include "stdafx.h"
#include "command_func.h"
#include "depot_base.h"
#include "company_func.h"
#include "string_func.h"
#include "town.h"
#include "vehicle_gui.h"
#include "vehiclelist.h"
#include "window_func.h"
#include "table/strings.h"

Go to the source code of this file.

Functions

static bool IsUniqueDepotName (const char *name)
 Check whether the given name is globally unique amongst depots.
CommandCost CmdRenameDepot (TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text)
 Rename a depot.

Detailed Description

Command Handling for depots.

Definition in file depot_cmd.cpp.


Function Documentation

CommandCost CmdRenameDepot ( TileIndex  tile,
DoCommandFlag  flags,
uint32  p1,
uint32  p2,
const char *  text 
)
static bool IsUniqueDepotName ( const char *  name  )  [static]

Check whether the given name is globally unique amongst depots.

Parameters:
name The name to check.
Returns:
True if there is no depot with the given name.

Definition at line 29 of file depot_cmd.cpp.

Referenced by CmdRenameDepot().


Generated on Fri May 27 04:19:54 2011 for OpenTTD by  doxygen 1.6.1