Exemple #1
0
bool Engine::Update()
{ BROFILER_FRAME("MainThread")
	UpdateInput();

	UpdateMessages();

	UpdateLogic();

	UpdateScene();

	UpdatePhysics();

	Draw();

	return true;
}
Exemple #2
0
void iAction::Update(float afTimeStep)
{
    UpdateLogic(afTimeStep);

    if(!IsTriggerd())
        {
            mbIsTriggerd=false;
            mbTriggerDown = false;

            if(mfTimeCount >= 0) mfTimeCount += afTimeStep;
        }
    else
        {
            mbBecameTriggerd=true;
        }
}
Exemple #3
0
void Game::ApplyTime(float time) {
    // Update the game
    UpdateLogic(time);

    DrawHud(true); // Update the hud
}