Show Inventory.cpp syntax highlighted
#include "StdAfx.h"
#include "Inventory.h"
#include "EntityManager.h"
//#include "IWeapon.h"
//#include "IEntity.h"
//template<class T>
//Inventory<T>::Inventory(void)
//{
// m_current = 0;
// EmptyBin();
//}
//
//template<class T>
//Inventory<T>::~Inventory(void)
//{
//}
/** Since we released these entities from the EntManager,
* we need to add them back
*/
//template<class T>
//Inventory::~Inventory(void)
//{
// EntityManager* entMng = EntityManager::GetInstance();
// type_Bin::iterator it = m_itemBin.begin();
// for(; it != m_itemBin.end(); it++ )
// {
// if ( *it ) { // FIXME - appears to be a leak
// entMng->AddEntity( *it );
// delete *it;
// }
// }
//}
See more files for this project here