File diff r27165:ea28ecab6159 → r27166:64e04a3ef9b1
src/depot_base.h
Show inline comments
 
@@ -9,23 +9,24 @@
 

	
 
#ifndef DEPOT_BASE_H
 
#define DEPOT_BASE_H
 

	
 
#include "depot_map.h"
 
#include "core/pool_type.hpp"
 
#include "timer/timer_game_calendar.h"
 

	
 
typedef Pool<Depot, DepotID, 64, 64000> DepotPool;
 
extern DepotPool _depot_pool;
 

	
 
struct Depot : DepotPool::PoolItem<&_depot_pool> {
 
	Town *town;
 
	std::string name;
 

	
 
	TileIndex xy;
 
	uint16 town_cn;    ///< The N-1th depot for this town (consecutive number)
 
	Date build_date;   ///< Date of construction
 
	uint16 town_cn; ///< The N-1th depot for this town (consecutive number)
 
	TimerGameCalendar::Date build_date; ///< Date of construction
 

	
 
	Depot(TileIndex xy = INVALID_TILE) : xy(xy) {}
 
	~Depot();
 

	
 
	static inline Depot *GetByTile(TileIndex tile)
 
	{