src/engine/eTimer.h File Reference

#include "tSysTime.h"
#include "nNetObject.h"

Include dependency graph for eTimer.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  eTimer

Functions

REAL se_GameTime ()
REAL se_GameTimeNoSync ()
void se_SyncGameTimer ()
void se_ResetGameTimer (REAL t=0)
void se_MakeGameTimer ()
void se_KillGameTimer ()
void se_PauseGameTimer (bool p)
REAL se_PredictTime ()
REAL se_AverageFrameTime ()
REAL se_AverageFPS ()

Variables

eTimerse_mainGameTimer


Function Documentation

REAL se_AverageFPS (  ) 

Definition at line 424 of file eTimer.cpp.

References eTimer::AverageFPS().

Referenced by cCockpit::cb_Framerate(), and se_AverageFrameTime().

00424                     {
00425     if (se_mainGameTimer)
00426         return se_mainGameTimer->AverageFPS();
00427     else
00428         return (.2);
00429 }

Here is the call graph for this function:

Here is the caller graph for this function:

REAL se_AverageFrameTime (  ) 

Definition at line 420 of file eTimer.cpp.

References se_AverageFPS().

Referenced by Delay(), and se_PredictTime().

00420                           {
00421     return 1/se_AverageFPS();
00422 }

Here is the call graph for this function:

Here is the caller graph for this function:

REAL se_GameTime (  ) 

Definition at line 381 of file eTimer.cpp.

References eTimer::Time().

Referenced by eCamera::Act(), gCycleWallsDisplayListManager::CannotHaveList(), gSpawnPoint::Clear(), gNetPlayerWall::CopyIntoGrid(), gAIPlayer::CycleBlocksWay(), gSpawnPoint::Danger(), gPlayerWall::Deletable(), cWidget::Map::DrawWalls(), eGameObject::eGameObject(), gAIPlayer::EmergencySurvive(), gGame::GameLoop(), gBaseZoneHack::gBaseZoneHack(), gCycle::gCycle(), eCamera::MyInit(), new_destination_handler(), gAILog::NextEntry(), gCycle::OnNotifyNewDestination(), paint_sr_lowerSky(), gCycle::PassEdge(), gNetPlayerWall::RealWallReceived(), eNetGameObject::ReceiveControlNet(), gSpark::Render(), gCycle::Render(), cCockpit::Render(), eCamera::Render(), gCycle::Render2D(), gNetPlayerWall::RenderBegin(), gNetPlayerWall::RenderList(), gNetPlayerWall::RenderNormal(), gAIPlayer::RightBeforeDeath(), gNetPlayerWall::s_CopyIntoGrid(), se_ClampCamera(), gAIPlayer::SetTraceSide(), sg_CreateWinDeathZone(), sg_FullscreenMessage(), sg_TopologyPoliceCheck(), gSpawnPoint::Spawn(), gGame::StateUpdate(), gAIPlayer::SwitchToState(), gCycle::SyncEnemy(), gAIPlayer::Think(), gAIPlayer::ThinkCloseCombat(), gAIPlayer::ThinkPath(), gAIPlayer::ThinkSurvive(), gAIPlayer::ThinkTrace(), eCamera::Timestep(), and gCycleMovement::TimestepCore().

00381                   {
00382     if (se_mainGameTimer)
00383         return se_mainGameTimer->Time();
00384     else
00385         return 0;
00386 }

Here is the call graph for this function:

Here is the caller graph for this function:

REAL se_GameTimeNoSync (  ) 

Definition at line 387 of file eTimer.cpp.

References eTimer::TimeNoSync().

00387                         {
00388     if (se_mainGameTimer)
00389         return se_mainGameTimer->TimeNoSync();
00390     else
00391         return 0;
00392 }

Here is the call graph for this function:

void se_KillGameTimer (  ) 

Definition at line 403 of file eTimer.cpp.

References NULL.

Referenced by own_game().

00403                        {
00404     if (se_mainGameTimer)
00405         delete se_mainGameTimer;
00406     se_mainGameTimer=NULL; // to make sure
00407 }

Here is the caller graph for this function:

void se_MakeGameTimer (  ) 

Definition at line 399 of file eTimer.cpp.

References tNEW.

Referenced by own_game().

00399                        {
00400     tNEW(eTimer);
00401 }

Here is the caller graph for this function:

void se_PauseGameTimer ( bool  p  ) 

Definition at line 415 of file eTimer.cpp.

References nCLIENT, eTimer::pause(), and sn_GetNetState().

Referenced by Activate(), gGame::GameLoop(), ingame_menu_cleanup(), init_game_camera(), init_game_grid(), sg_FullscreenMessage(), and gGame::StateUpdate().

00415                               {
00416     if (se_mainGameTimer && sn_GetNetState()!=nCLIENT)
00417         se_mainGameTimer->pause(p);
00418 }

Here is the call graph for this function:

Here is the caller graph for this function:

REAL se_PredictTime (  ) 

Definition at line 431 of file eTimer.cpp.

References se_AverageFrameTime().

Referenced by gCycle::CalculatePredictPosition(), and gCycle::PreparePredictPosition().

00431                      {
00432     return se_AverageFrameTime()*.5;
00433 }

Here is the call graph for this function:

Here is the caller graph for this function:

void se_ResetGameTimer ( REAL  t = 0  ) 

Definition at line 410 of file eTimer.cpp.

References eTimer::Reset().

Referenced by init_game_camera(), and init_game_grid().

00410                               {
00411     if (se_mainGameTimer)
00412         se_mainGameTimer->Reset(t);
00413 }

Here is the call graph for this function:

Here is the caller graph for this function:

void se_SyncGameTimer (  ) 

Definition at line 394 of file eTimer.cpp.

References eTimer::SyncTime().

Referenced by gGame::GameLoop(), and gGame::StateUpdate().

00394                        {
00395     if (se_mainGameTimer)
00396         se_mainGameTimer->SyncTime();
00397 }

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

eTimer* se_mainGameTimer

Definition at line 37 of file eTimer.cpp.

Referenced by gCycle::Act(), gGame::Analysis(), display_cockpit_lucifer(), gGame::GameLoop(), gWallRim::RenderReal(), scores(), and sg_FullscreenMessage().


Generated on Sat Mar 15 22:59:36 2008 for Armagetron Advanced by  doxygen 1.5.4