Package net.starype.quiz.api.game
Class RaceRound
- java.lang.Object
-
- net.starype.quiz.api.game.RaceRound
-
- All Implemented Interfaces:
GameRound
- Direct Known Subclasses:
TimedRaceRound
public class RaceRound extends java.lang.Object implements GameRound
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RaceRound.Builder
-
Method Summary
Modifier and Type Method Description GameRoundContext
getContext()
RoundEndingPredicate
initEndingCondition()
EntityEligibility
initPlayerEligibility()
GameRoundReport
initReport(java.util.List<ScoreDistribution.Standing> standings)
ScoreDistribution
initScoreDistribution()
void
onGiveUpReceived(IDHolder<?> source)
PlayerGuessContext
onGuessReceived(Player<?> source, java.lang.String message)
void
start(QuizGame game, java.util.Collection<? extends IDHolder<?>> players, UpdatableHandler updatableHandler)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.starype.quiz.api.game.GameRound
onRoundStopped
-
-
-
-
Constructor Detail
-
RaceRound
public RaceRound(int maxGuessesPerPlayer, Question pickedQuestion, double pointsToAward)
-
-
Method Detail
-
start
public void start(QuizGame game, java.util.Collection<? extends IDHolder<?>> players, UpdatableHandler updatableHandler)
-
onGuessReceived
public PlayerGuessContext onGuessReceived(Player<?> source, java.lang.String message)
- Specified by:
onGuessReceived
in interfaceGameRound
-
onGiveUpReceived
public void onGiveUpReceived(IDHolder<?> source)
- Specified by:
onGiveUpReceived
in interfaceGameRound
-
initPlayerEligibility
public EntityEligibility initPlayerEligibility()
- Specified by:
initPlayerEligibility
in interfaceGameRound
-
initEndingCondition
public RoundEndingPredicate initEndingCondition()
- Specified by:
initEndingCondition
in interfaceGameRound
-
initScoreDistribution
public ScoreDistribution initScoreDistribution()
- Specified by:
initScoreDistribution
in interfaceGameRound
-
initReport
public GameRoundReport initReport(java.util.List<ScoreDistribution.Standing> standings)
- Specified by:
initReport
in interfaceGameRound
-
getContext
public GameRoundContext getContext()
- Specified by:
getContext
in interfaceGameRound
-
-