src/engine/eLagCompensation.h

Go to the documentation of this file.
00001 /*
00002 
00003 *************************************************************************
00004 
00005 ArmageTron -- Just another Tron Lightcycle Game in 3D.
00006 Copyright (C) 2005  by 
00007 and the AA DevTeam (see the file AUTHORS(.txt) in the main source directory)
00008 
00009 **************************************************************************
00010 
00011 This program is free software; you can redistribute it and/or
00012 modify it under the terms of the GNU General Public License
00013 as published by the Free Software Foundation; either version 2
00014 of the License, or (at your option) any later version.
00015 
00016 This program is distributed in the hope that it will be useful,
00017 but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019 GNU General Public License for more details.
00020 
00021 You should have received a copy of the GNU General Public License
00022 along with this program; if not, write to the Free Software
00023 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00024   
00025 ***************************************************************************
00026 
00027 */
00028 
00029 #ifndef ArmageTron_LAGCOMPENSATION_H
00030 #define ArmageTron_LAGCOMPENSATION_H
00031 
00032 #include "defs.h"
00033 
00035 class eLag
00036 {
00037 public:
00039     static void Report( int client, REAL lag );
00040 
00042     static REAL TakeCredit( int client, REAL lag );
00043 
00045     static REAL Credit( int client );
00046 
00048     static REAL Threshold();
00049 
00051     static REAL Current();
00052 
00054     static void Timestep( REAL dt );
00055 };
00056 
00057 #endif

Generated on Sat Mar 15 22:55:45 2008 for Armagetron Advanced by  doxygen 1.5.4