Character.cpp
Item *Character::getItem(char *itemName)
{
	if(m_pBattleItems->getItem(itemName) != NULL)
		return m_pBattleItems->getItem(itemName);
	else
		return m_pTreasureItems->getItem(itemName);
}
//-----------------------------------------------
// Get a pointer to an item in the tree
//-----------------------------------------------

Get a pointer to an item in the tree
Get a pointer to an item in the tree
Item *Character::getItem(char *itemName)
{
	if(m_pBattleItems->getItem(itemName) != NULL)
		return m_pBattleItems->getItem(itemName);
	else
		return m_pTreasureItems->getItem(itemName);
}
Item * Character :: getItem ( char * itemName ) { if ( m_pBattleItems -> getItem ( itemName ) != NULL ) return m_pBattleItems -> getItem ( itemName ) ; else return m_pTreasureItems -> getItem ( itemName ) ; }
Get a pointer to an item in the tree
Get a pointer to an item in the tree