@@ -17,85 +17,9 @@ public class SPL extends Rules
17
17
leagueDirectory = "spl" ;
18
18
/* How many robots are in a team. */
19
19
teamSize = 6 ; // 5 players + 1 sub
20
- /* How many robots of each team may play at one time. */
21
- robotsPlaying = 5 ;
22
20
/* The Java Colors the left and the right team starts with. */
23
21
teamColor = new Color [] {Color .BLUE , Color .RED , new Color (224 , 200 , 0 ), Color .BLACK , Color .WHITE , new Color (0 , 192 , 0 ), new Color (255 , 165 , 0 ), new Color (128 , 0 , 128 ), new Color (165 , 42 , 42 ), new Color (128 , 128 , 128 )};
24
- /* The name of the colors. */
25
- teamColorName = new String [] {"Blue" , "Red" , "Yellow" , "Black" , "White" , "Green" , "Orange" , "Purple" , "Brown" , "Gray" };
26
- /* If the clock may stop in certain states (Ready, Set) in a play-off game. */
27
- playOffTimeStop = true ;
28
22
/* Time in seconds one half is long. */
29
23
halfTime = 10 *60 ;
30
- /* Time in seconds the ready state is long. */
31
- readyTime = 45 ;
32
- /* Time in seconds between first and second half. */
33
- pauseTime = 10 *60 ;
34
- /* If left and right side may both have the first kickoff. */
35
- kickoffChoice = false ;
36
- /* Time in seconds the ball is blocked after kickoff. */
37
- kickoffTime = 10 ;
38
- /* Time in seconds the ball is blocked after a free kick. */
39
- freeKickTime = 30 ;
40
- /* Time in seconds the ready state during a penalty kick is long. */
41
- penaltyKickReadyTime = 30 ;
42
- /* Time in seconds before a global game stuck can be called. */
43
- minDurationBeforeStuck = 30 ;
44
- /* The number of seconds switching to Playing is delayed. */
45
- delayedSwitchToPlaying = 15 ;
46
- /* The number of seconds switching to Ready after a goal is delayed. */
47
- delayedSwitchAfterGoal = 15 ;
48
- /* If there is an overtime before penalty-shoot in a play-off game. */
49
- overtime = false ;
50
- /* Time in seconds one overtime half is long. */
51
- overtimeTime = 0 ;
52
- /* If the game starts with penalty-shoots. */
53
- startWithPenalty = false ;
54
- /* Time in seconds between second half and penalty shoot. */
55
- pausePenaltyShootOutTime = 0 ;
56
- /* Time in seconds one penalty shoot is long. */
57
- penaltyShotTime = 30 ;
58
- /* If there can be a penalty-shoot retry. */
59
- penaltyShotRetries = false ;
60
- /* If there is a sudden-death. */
61
- suddenDeath = true ;
62
- /* Time in seconds one penalty shoot is long in sudden-death. */
63
- penaltyShotTimeSuddenDeath = 30 ;
64
- /* Number of penalty-shots for each team. */
65
- numberOfPenaltyShots = 3 ;
66
- /* Time in seconds for each kind of penalty (-1 = should not be used). */
67
- penaltyTime = new int [] {-1 , 45 , 45 , 15 , 45 , 45 , 45 , 45 , 45 , 15 };
68
- /* Time in seconds to increment penalties. */
69
- penaltyIncreaseTime = 10 ;
70
- /* Whether the penalty count is reset on halftime */
71
- resetPenaltyCountOnHalftime = false ;
72
- /* Whether penalties can be removed before the penalty time has passed. */
73
- allowEarlyPenaltyRemoval = false ;
74
- /* Penalty that players get when they substitute another player. */
75
- substitutePenalty = PlayerInfo .PENALTY_SPL_REQUEST_FOR_PICKUP ;
76
- /* if robots should return from penalties when the game state changes. */
77
- returnRobotsInGameStoppages = true ;
78
- /* Time in seconds one team has as timeOut. */
79
- timeOutTime = 5 *60 ;
80
- /* Time in seconds of a referee timeout */
81
- refereeTimeout = 10 *60 ;
82
- /* Defines if the option for a referee timeout is available */
83
- isRefereeTimeoutAvailable = true ;
84
- /* One time-out per half? */
85
- timeOutPerHalf = false ;
86
- /* Allowed to compensate the lost time? */
87
- lostTime = true ;
88
- /* If true, the game controller should drop broadcast-messages */
89
- dropBroadcastMessages = true ;
90
- /* The type of the competition (COMPETITION_TYPE_NORMAL, COMPETITION_TYPE_CHALLENGE_SHIELD, etc) */
91
- competitionType = GameControlData .COMPETITION_TYPE_NORMAL ;
92
- /* Number of hardware penalties per half before the robot is ejected. */
93
- allowedHardwarePenaltiesPerHalf = Integer .MAX_VALUE ;
94
- /* Number of hardware penalties per game before the robot is ejected. */
95
- allowedHardwarePenaltiesPerGame = Integer .MAX_VALUE ;
96
- /* Number of team messages a team is allowed to send per game. */
97
- overallMessageBudget = 1200 ;
98
- /* Number of team messages that are added to the budget per minute of extra time. */
99
- additionalMessageBudgetPerMinute = 60 ;
100
24
}
101
25
}
0 commit comments