////////////////////////////////////////////////////////////////////// // // Game Source Code // // File: IDGenerator.cpp // Description: ID Generator class. // // History: // - 08/06/2001: Created by Alberto Demichelis // - 12/03/2003: Martin Mittring made distinction between static and dynamic ids // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "IDGenerator.h" #ifdef _DEBUG static char THIS_FILE[] = __FILE__; #define DEBUG_CLIENTBLOCK new( _NORMAL_BLOCK, THIS_FILE, __LINE__) #define new DEBUG_CLIENTBLOCK #endif /////////////////////////////////////////////// CIDGenerator::CIDGenerator() { m_vUsedIDs.resize(0xFFFF+1,false); Reset(); } /////////////////////////////////////////////// CIDGenerator::~CIDGenerator() { } /////////////////////////////////////////////// void CIDGenerator::Reset() { BitVectorItor itor=m_vUsedIDs.begin(); int nSize=m_vUsedIDs.size(); int n=0; while(n