Skip to content

Commit

Permalink
Added mobile interface for penalty box timing
Browse files Browse the repository at this point in the history
Added a mobile interface for penalty box timing along with server side timers and support for filling in the penalty box sheet in a stats book.
  • Loading branch information
katpet committed Sep 19, 2023
1 parent cd0468d commit e4f8eb8
Show file tree
Hide file tree
Showing 23 changed files with 970 additions and 310 deletions.
304 changes: 0 additions & 304 deletions html/index.html

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import com.carolinarollergirls.scoreboard.core.game.GameImpl;
import com.carolinarollergirls.scoreboard.core.interfaces.BoxTrip;
import com.carolinarollergirls.scoreboard.core.interfaces.BoxSeat;
import com.carolinarollergirls.scoreboard.core.interfaces.Clock;
import com.carolinarollergirls.scoreboard.core.interfaces.CurrentGame;
import com.carolinarollergirls.scoreboard.core.interfaces.Expulsion;
Expand Down Expand Up @@ -143,6 +144,7 @@ protected void fillMaps() {
classMap.put(Penalty.class, CurrentPenalty.class);
classMap.put(Position.class, CurrentPosition.class);
classMap.put(BoxTrip.class, CurrentBoxTrip.class);
classMap.put(BoxSeat.class, CurrentBoxSeat.class);
classMap.put(Period.class, CurrentPeriod.class);
classMap.put(Jam.class, CurrentJam.class);
classMap.put(TeamJam.class, CurrentTeamJam.class);
Expand All @@ -152,7 +154,7 @@ protected void fillMaps() {
classMap.put(Official.class, CurrentOfficial.class);
classMap.put(Expulsion.class, CurrentExpulsion.class);

addPropertyMapping(Game.CLOCK, Game.TEAM, Game.PERIOD, Period.JAM, Game.REF, Game.NSO, Game.EXPULSION);
addPropertyMapping(Game.CLOCK, Game.BOX_CLOCK, Game.TEAM, Game.PERIOD, Period.JAM, Game.REF, Game.NSO, Game.EXPULSION);
}

@Override
Expand Down Expand Up @@ -186,7 +188,7 @@ public static class CurrentTeamImpl
CurrentTeamImpl(ScoreBoardEventProvider parent, Team sourceElement) { super(parent, sourceElement); }
@Override
protected void fillMaps() {
addPropertyMapping(Team.SKATER, Team.POSITION, Team.BOX_TRIP);
addPropertyMapping(Team.SKATER, Team.POSITION, Team.BOX_TRIP, Team.BOX_SEAT);
}
}
public static class CurrentSkaterImpl
Expand All @@ -209,6 +211,10 @@ public static class CurrentBoxTripImpl
extends MirrorScoreBoardEventProviderImpl<BoxTrip, CurrentBoxTrip> implements CurrentBoxTrip {
CurrentBoxTripImpl(ScoreBoardEventProvider parent, BoxTrip sourceElement) { super(parent, sourceElement); }
}
public static class CurrentBoxSeatImpl
extends MirrorScoreBoardEventProviderImpl<BoxSeat, CurrentBoxSeat> implements CurrentBoxSeat {
CurrentBoxSeatImpl(ScoreBoardEventProvider parent, BoxSeat sourceElement) { super(parent, sourceElement); }
}
public static class CurrentPeriodImpl
extends MirrorScoreBoardEventProviderImpl<Period, CurrentPeriod> implements CurrentPeriod {
CurrentPeriodImpl(ScoreBoardEventProvider parent, Period sourceElement) { super(parent, sourceElement); }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.carolinarollergirls.scoreboard.core.current;

import com.carolinarollergirls.scoreboard.core.current.CurrentGameImpl.CurrentBoxSeatImpl;
import com.carolinarollergirls.scoreboard.core.current.CurrentGameImpl.CurrentBoxTripImpl;
import com.carolinarollergirls.scoreboard.core.current.CurrentGameImpl.CurrentClockImpl;
import com.carolinarollergirls.scoreboard.core.current.CurrentGameImpl.CurrentExpulsionImpl;
Expand All @@ -14,6 +15,7 @@
import com.carolinarollergirls.scoreboard.core.current.CurrentGameImpl.CurrentTeamImpl;
import com.carolinarollergirls.scoreboard.core.current.CurrentGameImpl.CurrentTeamJamImpl;
import com.carolinarollergirls.scoreboard.core.current.CurrentGameImpl.CurrentTimeoutImpl;
import com.carolinarollergirls.scoreboard.core.interfaces.BoxSeat;
import com.carolinarollergirls.scoreboard.core.interfaces.BoxTrip;
import com.carolinarollergirls.scoreboard.core.interfaces.Clock;
import com.carolinarollergirls.scoreboard.core.interfaces.Expulsion;
Expand Down Expand Up @@ -52,6 +54,9 @@ public class MirrorFactoryImpl implements MirrorFactory {
if (mirrored instanceof Position) {
return (MirrorScoreBoardEventProvider<T>) new CurrentPositionImpl(parent, (Position) mirrored);
}
if (mirrored instanceof BoxSeat) {
return (MirrorScoreBoardEventProvider<T>) new CurrentBoxSeatImpl(parent, (BoxSeat) mirrored);
}
if (mirrored instanceof BoxTrip) {
return (MirrorScoreBoardEventProvider<T>) new CurrentBoxTripImpl(parent, (BoxTrip) mirrored);
}
Expand Down
Loading

0 comments on commit e4f8eb8

Please sign in to comment.