summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_railtypelist.cpp
blob: 494cb5222b0f8fdc9445ef8c8901ea0a19ce2006 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* $Id$ */

/** @file ai_railtypelist.cpp Implementation of AIRailTypeList and friends. */

#include "ai_railtypelist.hpp"
#include "../../rail.h"
#include "../../company_func.h"

AIRailTypeList::AIRailTypeList()
{
	for (RailType rt = RAILTYPE_BEGIN; rt != RAILTYPE_END; rt++) {
		if (::HasRailtypeAvail(_current_company, rt)) this->AddItem(rt);
	}
}