/** * Performs this action`s penalty on a selected player. * * @param data The current data to work on. * @param player The player to penalise. * @param side The side the player is playing on (0:left, 1:right). * @param number The player`s number, beginning with 0! */ @Override public void performOn(AdvancedData data, PlayerInfo player, int side, int number) { player.penalty = PlayerInfo.PENALTY_SPL_PLAYING_WITH_HANDS; data.whenPenalized[side][number] = data.getTime(); Log.state( data, "Playing with Hands " + Rules.league.teamColorName[data.team[side].teamColor] + " " + (number + 1)); }
/** * Performs this action`s penalty on a selected player. * * @param data The current data to work on. * @param player The player to penalise. * @param side The side the player is playing on (0:left, 1:right). * @param number The player`s number, beginning with 0! */ @Override public void performOn(AdvancedData data, PlayerInfo player, int side, int number) { player.penalty = PlayerInfo.PENALTY_HL_ILLEGAL_DEFENSE; handleRepeatedPenalty(data, player, side, number); data.whenPenalized[side][number] = data.getTime(); Log.state( data, "Illegal Defense " + Rules.league.teamColorName[data.team[side].teamColor] + " " + (number + 1)); }