src/ai/api/ai_list.cpp
author truelight
Sun, 15 Jul 2007 11:45:25 +0000
branchnoai
changeset 9664 c5741021bf59
parent 9593 012f29f59906
child 9820 8c116d4c6033
permissions -rw-r--r--
(svn r10577) [NoAI] -Add: added ChangeItem to AIList
[NoAI] -Change [API]: AddItem of AIList now takes a second param: value
#include "ai_list.hpp"

void AIList::AddItem(int32 item, int32 value)
{
	AIAbstractList::AddItem(item);
	this->SetValue(item, value);
}

void AIList::ChangeItem(int32 item, int32 value)
{
	this->SetValue(item, value);
}

void AIList::RemoveItem(int32 item)
{
	AIAbstractList::RemoveItem(item);
}