GEP-Assignment1/FSM.cpp
void GameState::ClearSwappingSet() {
	for (int i = 0; i < (int)m_vSwappingSet.size(); i++)
	{
		m_vSwappingSet[i] = nullptr;
	}
	m_vSwappingSet.clear();
	m_vSwappingSet.shrink_to_fit();
	
}
/* Simply goes throught list of swapping card set and clears it(set to nullptr), but does not delete/destroy the contents*/
Simply goes throught list of swapping card set and clears it(set to nullptr), but does not delete/destroy the contents
Simply goes throught list of swapping card set and clears it ( set to nullptr ) but does not delete / destroy the contents
void GameState::ClearSwappingSet() {
	for (int i = 0; i < (int)m_vSwappingSet.size(); i++)
	{
		m_vSwappingSet[i] = nullptr;
	}
	m_vSwappingSet.clear();
	m_vSwappingSet.shrink_to_fit();
}
void GameState :: ClearSwappingSet ( ) { for ( int i = 0 ; i < ( int ) m_vSwappingSet . size ( ) ; i ++ ) { m_vSwappingSet [ i ] = nullptr ; } m_vSwappingSet . clear ( ) ; m_vSwappingSet . shrink_to_fit ( ) ; }
Simply goes throught list of swapping card set and clears it(set to nullptr), but does not delete/destroy the contents
Simply goes throught list of swapping card set and clears it ( set to nullptr ) but does not delete / destroy the contents