Depot Struct Reference

Inheritance diagram for Depot:
Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_depot_pool >

Public Member Functions

 Depot (TileIndex xy=INVALID_TILE)
 ~Depot ()
 Clean up a depot.
FORCEINLINE bool IsOfType (const Depot *d) const
 Is the "type" of depot the same as the given depot, i.e.

Static Public Member Functions

static FORCEINLINE DepotGetByTile (TileIndex tile)

Data Fields

Towntown
char * name
TileIndex xy
uint16 town_cn
 The N-1th depot for this town (consecutive number).
Date build_date
 Date of construction.

Detailed Description

Definition at line 21 of file depot_base.h.


Member Function Documentation

FORCEINLINE bool Depot::IsOfType ( const Depot d  )  const [inline]

Is the "type" of depot the same as the given depot, i.e.

are both a rail, road or ship depots?

Parameters:
d The depot to compare to.
Returns:
true iff their types are equal.

Definition at line 43 of file depot_base.h.

References GetTileType().


The documentation for this struct was generated from the following files:

Generated on Fri Jun 3 05:19:52 2011 for OpenTTD by  doxygen 1.6.1