Skip to content

Commit

Permalink
Support ball holding fouls
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesbraun committed Mar 16, 2023
1 parent eb3c70f commit 8be728d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/rv/comm/rcssserver/GameState.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ public enum FoulType
INCAPABLE(4, "incapable"),
KICKOFF(5, "illegal kickoff"),
CHARGING(6, "charging"),
SELF_COLLISION(7, "self collision");
SELF_COLLISION(7, "self collision"),
BALL_HOLDING(8, "ball holding");

private int index;
private String name;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/rv/ui/screens/FoulListOverlay.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ void drawFoul(GL2 gl, int x, int y, int w, int h, int screenW, int screenH, Game
case KICKOFF:
case CHARGING:
case SELF_COLLISION:
case BALL_HOLDING:
default:
// Yellow
cardFillColor = new float[] {0.8f, 0.6f, 0.0f, 1.0f};
Expand Down

0 comments on commit 8be728d

Please sign in to comment.