Class CalculatorArgs

java.lang.Object
cz.matfyz.rudad.joker.calculator.CalculatorArgs

class CalculatorArgs extends Object
Represents the command-line arguments for the Joker calculator application.
  • 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 invalid
      IllegalArgumentException - if the player cards cannot be created
    • getPlayers

      List<Player> getPlayers()
      Returns the list of players.
      Returns:
      the list of player objects
    • getBoardCards

      List<Card> getBoardCards()
      Returns the list of board cards.
      Returns:
      the list of board cards
    • getDeadCards

      List<Card> 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