예제 #1
0
파일: QuestManager.cpp 프로젝트: lcs2/carpg
//=================================================================================================
void QuestManager::Reset()
{
	force = Q_FORCE_DISABLED;
	DeleteElements(quests);
	DeleteElements(unaccepted_quests);
	DeleteElements(quest_item_requests);
	quests_timeout.clear();
	quests_timeout2.clear();
	quest_counter = 0;
	unique_quests_completed = 0;
	unique_completed_show = false;
	quest_rumor_counter = P_MAX;
	for(int i = 0; i < P_MAX; ++i)
		quest_rumor[i] = false;
}
예제 #2
0
  void SPARSE_BIT_Array_2D :: SetSize (int ah, int aw)
  {
    DeleteElements();
    if (lines)
      {
	delete lines;
	lines = NULL;
      }

    if (!aw) aw = ah;

    height = ah;
    width = aw;

    if (!ah) return;
    lines = new linestruct[ah];

    if (lines)
      {
	for (int i = 0; i < ah; i++)
	  {
	    lines[i].size = 0;
	    lines[i].maxsize = 0;
	    lines[i].col = NULL;
	  }
      }
    else
      {
	height = width = 0;
	MyError ("SPARSE_Array::SetSize: Out of memory");
      }
  }
예제 #3
0
void CCfgFile::Destroy()
{_STTEX();
	// For each group
	while ( m_pHead != NULL )
	{
		LPCFGGROUPINFO next = m_pHead->pNext;

		// Delete all elements
		DeleteElements( m_pHead );

		// For good measure
		m_pHead->tail = NULL;
		m_pHead->size = 0;

		// Delete this element
		delete m_pHead;
		m_pHead = next;

	} // end while

	m_pTail = NULL;
	m_dwSize = 0;

	m_dwErrors = 0;

	m_hCurGroup = NULL;

	*m_szFileName = 0;
}
예제 #4
0
파일: Base.cpp 프로젝트: edeksumo/carpg
void PreLogger::Apply(Logger* logger)
{
	assert(logger);

	for(vector<Prelog*>::iterator it = prelogs.begin(), end = prelogs.end(); it != end; ++it)
		logger->Log((*it)->str.c_str(), (*it)->level, (*it)->time);

	DeleteElements(prelogs);
}
예제 #5
0
파일: Logger.cpp 프로젝트: lcs2/carpg
void PreLogger::Apply(Logger* logger)
{
	assert(logger);

	for(Prelog* log : prelogs)
		logger->Log(log->level, log->str.c_str(), log->time);

	if(flush)
		logger->Flush();
	DeleteElements(prelogs);
}
예제 #6
0
BOOL CCfgFile::RemoveGroup(HGROUP node)
{_STTEX();
	// Find the NULL group
	if ( node == NULL )
	{	node = VerifyGroup( NULL );
		if ( node == NULL ) return FALSE;
	} // end if

	// Remove this node from the list
	if ( node->pPrev != NULL ) node->pPrev->pNext = node->pNext;
	if ( node->pNext != NULL ) node->pNext->pPrev = node->pPrev;
	if ( m_pHead == node ) m_pHead = node->pNext;			
	if ( m_pTail == node ) m_pTail = node->pPrev;		
	
	// Delete this node
	DeleteElements( node );
	delete node;

	// Decrement the count
	if ( m_dwSize ) m_dwSize--;

	return TRUE;
}
예제 #7
0
파일: ListBox.cpp 프로젝트: edeksumo/carpg
//=================================================================================================
ListBox::~ListBox()
{
	DeleteElements(items);
	StringPool.Free(texts);
	delete menu;
}
예제 #8
0
//=============================================================================
void CleanGame()
{
	delete inn;
	DeleteElements(units);
}
예제 #9
0
 SPARSE_BIT_Array_2D :: ~SPARSE_BIT_Array_2D ()
 {
   DeleteElements ();
   delete lines;
 }
예제 #10
0
GeneratorBMRC::~GeneratorBMRC()
{
    DeleteElements();
}
예제 #11
0
파일: Base.cpp 프로젝트: edeksumo/carpg
void PreLogger::Clear()
{
	DeleteElements(prelogs);
}
예제 #12
0
파일: Base.cpp 프로젝트: edeksumo/carpg
MultiLogger::~MultiLogger()
{
	DeleteElements(loggers);
}
예제 #13
0
파일: QuestManager.cpp 프로젝트: lcs2/carpg
//=================================================================================================
void QuestManager::Cleanup()
{
	DeleteElements(quests);
	DeleteElements(unaccepted_quests);
	DeleteElements(quest_item_requests);
}
예제 #14
0
파일: City.cpp 프로젝트: edeksumo/carpg
//=================================================================================================
City::~City()
{
	DeleteElements(inside_buildings);
}
예제 #15
0
CNcbiResource::~CNcbiResource( void )
{
    DeleteElements( m_cmd );
}