# ai_enginelist.cpp

Go to the documentation of this file.

    00001 /* $Id: ai_enginelist.cpp 15060 2009-01-13 15:44:36Z smatz $ */
    00002
    00005 #include "ai_enginelist.hpp"
    00006 #include "../../company_func.h"
    00007 #include "../../engine_base.h"
    00008 #include "../../core/bitmath_func.hpp"
    00009
    00010 AIEngineList::AIEngineList(AIVehicle::VehicleType vehicle_type)
    00011 {
    00012   Engine *e;
    00013   FOR_ALL_ENGINES_OF_TYPE(e, (::VehicleType)vehicle_type) {
    00014     if (HasBit(e->company_avail, _current_company)) this->AddItem(e->index);
    00015   }
    00016 }