# depot.cpp File Reference

Handling of depots. More...

`#include "stdafx.h"`
`#include "depot_base.h"`
`#include "order_func.h"`
`#include "window_func.h"`
`#include "oldpool_func.h"`

Go to the source code of this file.

## Functions
Depot * | GetDepotByTile (TileIndex tile)
| Gets a depot from a tile.
void | InitializeDepots ()

## Detailed Description

Handling of depots.

Definition in file depot.cpp.

## Function Documentation

Depot* GetDepotByTile | ( | TileIndex | tile | ) |

Gets a depot from a tile.

Returns:
  Returns the depot if the tile had a depot, else it returns NULL

Definition at line 18 of file depot.cpp.

Referenced by AIOrder::InsertOrder(), and YapfFindNearestRoadDepot().