src/ai/api/ai_enginelist.cpp
author rubidium
Thu, 19 Jun 2008 18:09:29 +0000
branchnoai
changeset 11029 776c7cc8bda5
parent 10455 22c441f5adf9
permissions -rw-r--r--
(svn r13585) [NoAI] -Add: possibility to get information/perform order changes based on the current order of a vehicle.
/* $Id$ */

/** @file ai_enginelist.cpp Implementation of AIEngineList and friends. */

#include "ai_enginelist.hpp"
#include "../../engine_base.h"

AIEngineList::AIEngineList(AIVehicle::VehicleType vehicle_type)
{
	Engine *e;
	FOR_ALL_ENGINES_OF_TYPE(e, (::VehicleType)vehicle_type) {
		this->AddItem(e->index);
	}
}