Character.cpp
bool Character::addItem(Item *item)
{

	if(item->m_iType == 1)
		return m_pBattleItems->addItem(item);
	else
		return m_pTreasureItems->addItem(item);

}
//-----------------------------------------------
// Add an item to the tree of items
//-----------------------------------------------

Add an item to the tree of items
Add an item to the tree of items
bool Character::addItem(Item *item)
{
	if(item->m_iType == 1)
		return m_pBattleItems->addItem(item);
	else
		return m_pTreasureItems->addItem(item);
}
bool Character :: addItem ( Item * item ) { if ( item -> m_iType == 1 ) return m_pBattleItems -> addItem ( item ) ; else return m_pTreasureItems -> addItem ( item ) ; }
Add an item to the tree of items
Add an item to the tree of items