コード例 #1
0
ファイル: MainEventPool.cpp プロジェクト: KFlaga/FlagRTS
	MainEventPool::~MainEventPool()
	{
		RemoveAllTriggers();
		for(auto facIt = _actionParsers.begin(); facIt != _actionParsers.end(); ++facIt)
		{
			xDelete(facIt->second);
		}
		for(auto facIt = _conditionParsers.begin(); facIt != _conditionParsers.end(); ++facIt)
		{
			xDelete(facIt->second);
		}
		for(auto poolIt = _eventPools.begin(); poolIt != _eventPools.end(); ++poolIt)
		{
			xDelete(poolIt->second);
		}
	}
コード例 #2
0
ファイル: triggers.c プロジェクト: bugamn/cdogs-sdl
void FreeTriggersAndWatches(void)
{
	RemoveAllTriggers();
	RemoveAllWatches();
}