Package com.treescrub.spedran.data
Class GameRuleset
- java.lang.Object
-
- com.treescrub.spedran.data.GameRuleset
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanareEmulatorsAllowed()Returnstrueif emulators are allowed to be used in runs, otherwisefalse.booleanareMillisecondsShown()Returnstrueif milliseconds are shown on the leaderboard, otherwisefalse.TimingTypegetDefaultTime()Gets the defaultTimingTypethat this game uses to sort the leaderboard by.List<TimingType>getRunTimes()Gets aListof allowedTimingTypes that a run can have.booleanisVerificationRequired()Returnstrueif a run needs to be verified before it appears on the leaderboard.booleanisVideoRequired()Returnstrueif a video link is required, otherwisefalse.StringtoString()
-
-
-
Method Detail
-
areMillisecondsShown
public boolean areMillisecondsShown()
Returnstrueif milliseconds are shown on the leaderboard, otherwisefalse.- Returns:
- whether milliseconds are displayed on runs
-
isVerificationRequired
public boolean isVerificationRequired()
Returnstrueif a run needs to be verified before it appears on the leaderboard.- Returns:
- whether verification of a run is required
-
isVideoRequired
public boolean isVideoRequired()
Returnstrueif a video link is required, otherwisefalse.- Returns:
- whether a video of a run is required
-
areEmulatorsAllowed
public boolean areEmulatorsAllowed()
Returnstrueif emulators are allowed to be used in runs, otherwisefalse.- Returns:
- whether emulators are allowed in a run
-
getRunTimes
public List<TimingType> getRunTimes()
Gets aListof allowedTimingTypes that a run can have.- Returns:
- an unmodifiable
ListofTimingTypes
-
getDefaultTime
public TimingType getDefaultTime()
Gets the defaultTimingTypethat this game uses to sort the leaderboard by.- Returns:
- the
TimingTypethat runs are sorted by
-
-