EzAcc/DemoProject/Input Combos/Motor2D/ctApp.cpp
// Call modules on each loop iteration
Call modules on each loop iteration
Call modules on each loop iteration
bool ctApp::DoUpdate()
{
	bool ret = true;
	ctModule* pModule = NULL;
	for (std::list<ctModule*>::iterator it = modules.begin(); it != modules.end() && ret == true; it++)
	{
		pModule = (*it);
		if (pModule->active == false) {
			continue;
		}
		(all_modules_loaded) ? ret = (*it)->Update(dt) : ret = (*it)->Update(0);
	}
	return ret;
}
bool ctApp :: DoUpdate ( ) { bool ret = true ; ctModule * pModule = NULL ; for ( std :: list < ctModule * > :: iterator it = modules . begin ( ) ; it != modules . end ( ) && ret == true ; it ++ ) { pModule = ( * it ) ; if ( pModule -> active == false ) { continue ; } ( all_modules_loaded ) ? ret = ( * it ) -> Update ( dt ) : ret = ( * it ) -> Update ( 0 ) ; } return ret ; }
Call modules on each loop iteration
Call modules on each loop iteration