Exercise/Solution/Motor2D/j1App.cpp
bool j1App::PostUpdate()
{
	bool ret = true;
	std::list<j1Module*>::const_iterator item = modules.begin();
	j1Module* pModule = NULL;

	for (; item != modules.end() && ret; ++item)
	{
		pModule = *item;

		if (!pModule->active)
		{
			continue;
		}

		ret = (*item)->PostUpdate();
	}

	return ret;
}
// Call modules after each loop iteration
Call modules after each loop iteration
Call modules after each loop iteration
bool j1App::PostUpdate()
{
	bool ret = true;
	std::list<j1Module*>::const_iterator item = modules.begin();
	j1Module* pModule = NULL;
	for (; item != modules.end() && ret; ++item)
	{
		pModule = *item;
		if (!pModule->active)
		{
			continue;
		}
		ret = (*item)->PostUpdate();
	}
	return ret;
}
bool j1App :: PostUpdate ( ) { bool ret = true ; std :: list < j1Module * > :: const_iterator item = modules . begin ( ) ; j1Module * pModule = NULL ; for ( ; item != modules . end ( ) && ret ; ++ item ) { pModule = * item ; if ( ! pModule -> active ) { continue ; } ret = ( * item ) -> PostUpdate ( ) ; } return ret ; }
Call modules after each loop iteration
Call modules after each loop iteration