bool Engine::Update() { BROFILER_FRAME("MainThread") UpdateInput(); UpdateMessages(); UpdateLogic(); UpdateScene(); UpdatePhysics(); Draw(); return true; }
void iAction::Update(float afTimeStep) { UpdateLogic(afTimeStep); if(!IsTriggerd()) { mbIsTriggerd=false; mbTriggerDown = false; if(mfTimeCount >= 0) mfTimeCount += afTimeStep; } else { mbBecameTriggerd=true; } }
void Game::ApplyTime(float time) { // Update the game UpdateLogic(time); DrawHud(true); // Update the hud }