src/ai/api/ai_enginelist.cpp
author truebrain
Mon, 31 Mar 2008 18:33:33 +0000
branchnoai
changeset 9851 a5f5a7cf2b61
parent 9837 c9ec4f82e0d0
child 10455 22c441f5adf9
permissions -rw-r--r--
(svn r12519) [NoAI] -Add: added AILog with Info(), Warning(), and Error()
[NoAI] -Add: redirect AI outputs to the AI Debug GUI to show it per AI, in a clear way ingame (no more need for stderr viewing)
NOTE: it still does output to stderr, but on an other DEBUG() level (depending on the message).
/* $Id$ */

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

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

AIEngineList::AIEngineList(AIVehicle::VehicleType vehicle_type)
{
	EngineID e;
	FOR_ALL_ENGINEIDS_OF_TYPE(e, (::VehicleType)vehicle_type) {
		this->AddItem(e);
	}
}