Skip to content

Commit

Permalink
Changes for GORE
Browse files Browse the repository at this point in the history
  • Loading branch information
ahasselbring committed Apr 12, 2022
1 parent 0eab4f3 commit f728252
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Usage: `java -jar GameController.jar {options}`
delayed game state switches in the SPL
(-i | --interface) <interface> set network interface (default is a
connected IPv4 interface)
(-l | --league) (spl | spl_penalty_shootout | spl_7v7 | spl_dynamic_ball_handling)
(-l | --league) (spl | spl_with_ejection | spl_penalty_shootout)
select league (default is spl)
(-w | --window) select window mode (default is fullscreen)
(-g | --game-type) (undefined | preliminary | playoff)
Expand Down
5 changes: 2 additions & 3 deletions src/data/Rules.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ public abstract class Rules
/** Note all league's rules here to have them available. */
public static final Rules[] LEAGUES = {
new SPL(),
new SPLPenaltyShootout(),
new SPL7v7(),
new SPLDynamicBallHandling()
new SPLGORE(),
new SPLPenaltyShootout()
};

/**
Expand Down
2 changes: 1 addition & 1 deletion src/data/SPL.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class SPL extends Rules
/** The league's directory name with its teams and icons. */
leagueDirectory = "spl";
/** How many robots are in a team. */
teamSize = 6; // 5 players + 1 sub
teamSize = 5; // no substitute
/** How many robots of each team may play at one time. */
robotsPlaying = 5;
/** The Java Colors the left and the right team starts with. */
Expand Down
6 changes: 2 additions & 4 deletions src/data/SPLGORE.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package data;

/**
* This class sets attributes given by the spl rules, adapted for the German Open Replacement Event 2021.
* This class sets attributes given by the spl rules, adapted for the German Open Replacement Event 2022.
*
* @author Arne Hasselbring
*/
Expand All @@ -10,11 +10,9 @@ public class SPLGORE extends SPL
SPLGORE()
{
/** The league's name this rules are for. */
leagueName = "SPL GORE";
leagueName = "SPL With Ejection";
/** The league's directory name with its teams and icons. */
leagueDirectory = "spl";
/** How many robots are in a team. */
teamSize = 5; // no substitute
/** Number of hardware penalties per half before the robot is ejected. */
allowedHardwarePenaltiesPerHalf = 2;
/** Number of hardware penalties per game before the robot is ejected. */
Expand Down

0 comments on commit f728252

Please sign in to comment.