# ai_railtypelist.cpp

Go to the documentation of this file.

    00001 /* $Id: ai_railtypelist.cpp 15060 2009-01-13 15:44:36Z smatz $ */
    00002
    00005 #include "ai_railtypelist.hpp"
    00006 #include "../../rail.h"
    00007 #include "../../company_func.h"
    00008
    00009 AIRailTypeList::AIRailTypeList()
    00010 {
    00011   for (RailType rt = RAILTYPE_BEGIN; rt != RAILTYPE_END; rt++) {
    00012     if (::HasRailtypeAvail(_current_company, rt)) this->AddItem(rt);
    00013   }
    00014 }