Commit b31bd7af authored by MarkG's avatar MarkG Committed by TIGERs GitLab
Browse files

Resolve "Disallow driving through opponent penalty area during stop"

Closes #1616

See merge request main/Sumatra!1356

sumatra-commit: a819e4a62369ecd23a0b8d2736afb5586f61179e
parent f5195c8e
Pipeline #8842 passed with stage
in 5 minutes and 55 seconds
/*
* Copyright (c) 2009 - 2020, DHBW Mannheim - TIGERs Mannheim
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
package edu.tigers.sumatra.referee.data;
......@@ -409,6 +409,7 @@ public class GameState
return (state == EGameState.DIRECT_FREE) || (state == EGameState.INDIRECT_FREE) || (state == EGameState.KICKOFF);
}
/**
* @return true if the current state is KICKOFF or PREPARE_KICKOFF
*/
......@@ -466,6 +467,12 @@ public class GameState
}
public boolean isFreeKick()
{
return state == EGameState.DIRECT_FREE || state == EGameState.INDIRECT_FREE;
}
/**
* @return true if this is an INDIRECT_FREE for them.
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment