src/ai/api/ai_cargolist.cpp
author truebrain
Mon, 31 Mar 2008 08:42:20 +0000
branchnoai
changeset 9838 0839682a601b
parent 9833 89a64246458f
child 10339 ce6cd68d9eb8
permissions -rw-r--r--
(svn r12504) [NoAI] -Documentation: the last few files which now are consistent in their comments (anyway, so I hope :))
/* $Id$ */

/** @file ai_cargolist.cpp Implementation of AICargoList and friends. */

#include "ai_cargolist.hpp"
#include "../../cargotype.h"

AICargoList::AICargoList()
{
	for (byte i = 0; i < NUM_CARGO; i++) {
		const CargoSpec *c = ::GetCargo(i);
		if (c->IsValid()) {
			this->AddItem(i);
		}
	}
}