java.lang.Object
cz.matfyz.rudad.joker.calculator.CalculatorArgs
Represents the command-line arguments for the Joker calculator application.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of board cards.(package private) picocli.CommandLine
Returns the underlying CommandLine object for advanced usage.Returns the list of dead cards.Returns the list of players.(package private) void
Parses the command-line arguments and fills the players, boardCards and deadCards.(package private) boolean
Returns whether emojis should be printed instead of letters.
-
Constructor Details
-
CalculatorArgs
CalculatorArgs()
-
-
Method Details
-
parseArgs
void parseArgs(String[] args) throws picocli.CommandLine.ParameterException, IllegalArgumentException Parses the command-line arguments and fills the players, boardCards and deadCards.- Parameters:
args
- the command-line arguments- Throws:
picocli.CommandLine.ParameterException
- if the command-line arguments are invalidIllegalArgumentException
- if the player cards cannot be created
-
getPlayers
Returns the list of players.- Returns:
- the list of player objects
-
getBoardCards
Returns the list of board cards.- Returns:
- the list of board cards
-
getDeadCards
Returns the list of dead cards.- Returns:
- the list of dead cards
-
shouldPrintEmojis
boolean shouldPrintEmojis()Returns whether emojis should be printed instead of letters.- Returns:
- true if emojis should be printed, false otherwise
-
getCommandLine
picocli.CommandLine getCommandLine()Returns the underlying CommandLine object for advanced usage.- Returns:
- the CommandLine object
-