src/ai/api/ai_cargolist.cpp
author rubidium
Sat, 12 Apr 2008 21:38:49 +0000
branchnoai
changeset 10142 56ee7da4ad56
parent 9833 89a64246458f
child 10339 ce6cd68d9eb8
permissions -rw-r--r--
(svn r12673) [NoAI] -Sync: with trunk r12596:12672. Note that due to the order rewrite AIOrder.ChangeOrder does currently not work as expected.
/* $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);
		}
	}
}