Obj_ItemBox* ItemBoxManager::GenItemBox() { __ENTER_FUNCTION Obj_ItemBox* pIB = g_pItemBoxPool->NewItemBox(); pIB->CleanUp(); return pIB; __LEAVE_FUNCTION return NULL ; }
VOID ItemBoxManager::RecycleItemBox(ObjID_t ObjID) { __ENTER_FUNCTION Obj_ItemBox* pItemBox = GetItemBox(ObjID) ; Assert( pItemBox ) ; //Remove(ObjID); pItemBox->SetActiveFlag( FALSE ); pItemBox->CleanUp(); GetScene()->DeleteObject( pItemBox ); __LEAVE_FUNCTION }