1: <?php
2: /**
3: * Represents the Game Infos of a Dedicated TrackMania Server
4: * ManiaLive - TrackMania dedicated server manager in PHP
5: *
6: * @copyright Copyright (c) 2009-2011 NADEO (http://www.nadeo.com)
7: * @license http://www.gnu.org/licenses/lgpl.html LGPL License 3
8: * @version $Revision: 425 $:
9: * @author $Author: melot.philippe $:
10: * @date $Date: 2012-07-18 12:36:36 +0200 (mer., 18 juil. 2012) $:
11: */
12: namespace DedicatedApi\Structures;
13:
14: class GameInfos extends AbstractStructure
15: {
16: /**
17: * Game Modes
18: */
19: const GAMEMODE_SCRIPT = 0;
20: const GAMEMODE_ROUNDS = 1;
21: const GAMEMODE_TIMEATTACK = 2;
22: const GAMEMODE_TEAM = 3;
23: const GAMEMODE_LAPS = 4;
24: const GAMEMODE_CUP = 5;
25: const GAMEMODE_STUNTS = 6;
26:
27: public $gameMode;
28: public $scriptName;
29: public $nbMaps;
30: public $chatTime;
31: public $finishTimeout;
32: public $allWarmUpDuration;
33: public $disableRespawn;
34: public $forceShowAllOpponents;
35: public $roundsPointsLimit;
36: public $roundsForcedLaps;
37: public $roundsUseNewRules;
38: public $roundsPointsLimitNewRules;
39: public $teamPointsLimit;
40: public $teamMaxPoints;
41: public $teamUseNewRules;
42: public $teamPointsLimitNewRules;
43: public $timeAttackLimit;
44: public $timeAttackSynchStartPeriod;
45: public $lapsNbLaps;
46: public $lapsTimeLimit;
47: public $cupPointsLimit;
48: public $cupRoundsPerMap;
49: public $cupNbWinners;
50: public $cupWarmUpDuration;
51: }
52: ?>
53: