Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- ABANDONED - Enum constant in enum class javatro.core.Deck.DeckType
- ABANDONED_DECK - Enum constant in enum class javatro.display.DeckArt
- AbstractJoker - Class in javatro.core.jokers.addmult
-
Represents a AbstractJoker Joker, based off the Abstract Joker of Balatro.
- AbstractJoker() - Constructor for class javatro.core.jokers.addmult.AbstractJoker
- AcceptBlindOption - Class in javatro.manager.options
-
Represents an option to accept the current blind in the game.
- AcceptBlindOption() - Constructor for class javatro.manager.options.AcceptBlindOption
- ACE - Enum constant in enum class javatro.core.Card.Rank
- add(Card) - Method in class javatro.core.HoldingHand
-
Adds a Card to the Hand.
- add(Joker) - Method in class javatro.core.jokers.HeldJokers
-
Adds 1 Joker to the HeldJokers Class.
- addNewRun() - Method in class javatro.storage.Storage
-
Adds a new run to the storage with default values.
- addPropertyChangeListener(PropertyChangeListener) - Method in class javatro.core.round.Round
-
Registers a listener for round state changes.
- addPropertyChangeListener(PropertyChangeListener) - Method in class javatro.display.Parser
-
Registers an observer to listen for user input changes.
- AFTERHANDPLAY - Enum constant in enum class javatro.core.jokers.Joker.ScoreType
- ante - Static variable in class javatro.core.JavatroCore
-
The current ante for the game.
- ante - Static variable in class javatro.manager.JavatroManager
- Ante - Class in javatro.core
-
The
Anteclass represents the ante system in a poker game, managing the current round, ante values, and blind progression. - Ante() - Constructor for class javatro.core.Ante
-
Constructs an
Anteobject with an initial ante count of 1 and the small blind level. - ANTE_NUMBER_INDEX - Static variable in class javatro.storage.DataParser
- Ante.Blind - Enum Class in javatro.core
-
Enum representing different blind levels with associated multipliers and names.
- apply() - Method in class javatro.core.PlanetCard
-
Enhances this card's associated hand type by one level.
- ArtConstants - Class in javatro.display.formatter.runselect
- ArtConstants() - Constructor for class javatro.display.formatter.runselect.ArtConstants
- AudioPlayer - Class in javatro.audioplayer
-
The
AudioPlayerclass provides functionality for playing, stopping, and switching audio files.
B
- beginGame() - Method in class javatro.core.JavatroCore
-
Starts the game by initializing a new set of game parameters.
- beginGame(Deck.DeckType) - Static method in class javatro.manager.JavatroManager
-
Begins the game by initializing the game model and registering necessary observers.
- BLACK_B - Static variable in class javatro.display.UI
- BLIND_INDEX - Static variable in class javatro.storage.DataParser
- blindFromKey(String) - Static method in class javatro.storage.utils.CardUtils
-
Converts a storage key into an
Ante.Blindobject. - BlindSelectScreen - Class in javatro.display.screens
-
Represents the screen for selecting the blind in the game.
- BlindSelectScreen() - Constructor for class javatro.display.screens.BlindSelectScreen
-
Constructs a BlindSelectScreen and initializes the available options.
- BLUE - Enum constant in enum class javatro.core.Deck.DeckType
- BLUE - Static variable in class javatro.display.UI
- BLUE_B - Static variable in class javatro.display.UI
- BLUE_DECK - Enum constant in enum class javatro.display.DeckArt
- BOLD - Static variable in class javatro.display.UI
-
ANSI escape code for bold text.
- BORDER_WIDTH - Static variable in class javatro.display.UI
-
Fixed width for the bordered message display.
- BOSS_BLIND - Enum constant in enum class javatro.core.Ante.Blind
- BossType - Enum Class in javatro.core
-
Represents the types of bosses available in the game.
- BOTTOM_LEFT - Static variable in class javatro.display.UI
- BOTTOM_RIGHT - Static variable in class javatro.display.UI
- BY_RANK - Enum constant in enum class javatro.display.screens.CardSelectScreen.SortOrder
-
Ordered by card rank
- BY_SUIT - Enum constant in enum class javatro.display.screens.CardSelectScreen.SortOrder
-
Grouped by card suit
C
- cannotDiscardZeroCards() - Static method in exception javatro.core.JavatroException
- Card - Record Class in javatro.core
-
Represents a playing card with a rank and a suit in a card game.
- Card(Card) - Constructor for record class javatro.core.Card
-
Constructs a new card by copying an existing card instance.
- Card(Card.Rank, Card.Suit) - Constructor for record class javatro.core.Card
-
Compact constructor to validate card components.
- Card.Rank - Enum Class in javatro.core
-
Enumeration of card ranks with associated symbols and chip values.
- Card.Suit - Enum Class in javatro.core
-
Enumeration of card suits with full display names.
- CardRenderer - Class in javatro.display
-
Renders playing cards as ASCII art with colored symbols.
- CardRenderer() - Constructor for class javatro.display.CardRenderer
- CardSelectOption - Class in javatro.manager.options
-
The
CardSelectOptionclass handles card selection operations for the player, allowing them to either play cards into their current poker hand or discard cards, depending on the active game screen. - CardSelectOption() - Constructor for class javatro.manager.options.CardSelectOption
-
Constructs a card selector with default selection limit (5).
- CardSelectOption(int) - Constructor for class javatro.manager.options.CardSelectOption
-
Constructs a card selector with a custom selection limit.
- CardSelectScreen - Class in javatro.display.screens
-
Abstract base class for card selection screens with sorting and display capabilities.
- CardSelectScreen(String) - Constructor for class javatro.display.screens.CardSelectScreen
-
Constructs a card selection screen with core functionality.
- CardSelectScreen.SortOrder - Enum Class in javatro.display.screens
-
Sorting options for card display
- cardToString(Card) - Static method in class javatro.storage.utils.CardUtils
-
Converts a
Cardto a string representation. - CardUtils - Class in javatro.storage.utils
-
The
CardUtilsclass provides utility methods for handling cards, decks, blinds, and jokers in the Javatro application. - CardUtils() - Constructor for class javatro.storage.utils.CardUtils
- centerText(String, int) - Static method in class javatro.display.UI
-
Centers text within a specified width, accounting for ANSI codes and Unicode characters.
- CHECKERED - Enum constant in enum class javatro.core.Deck.DeckType
- CHECKERED_DECK - Enum constant in enum class javatro.display.DeckArt
- clearCommandMap() - Method in class javatro.display.screens.Screen
- clearCSVFile(String) - Static method in class javatro.utilities.csvutils.CSVUtils
-
Clears the content of a CSV file by overwriting it with an empty string.
- clearScreen() - Static method in class javatro.display.UI
-
Clears the console using ANSI escape codes.
- CLUBS - Enum constant in enum class javatro.core.Card.Suit
- commandMap - Variable in class javatro.display.screens.Screen
-
List of available commands/options for this screen
- createRandomJoker() - Static method in class javatro.core.jokers.JokerFactory
-
Returns a random Joker from the above list.
- createSaveFile() - Method in class javatro.storage.StorageManager
-
Creates a new save file if it does not exist.
- CROSS - Static variable in class javatro.display.UI
- CSVUtils - Class in javatro.utilities.csvutils
- CSVUtils() - Constructor for class javatro.utilities.csvutils.CSVUtils
- currentRound - Static variable in class javatro.core.JavatroCore
-
The current active round in the game.
- CYAN - Static variable in class javatro.display.UI
D
- DataParser - Class in javatro.storage
-
The
DataParserclass provides static utility methods for parsing, validating, and loading CSV data related to game runs. - deck - Static variable in class javatro.core.JavatroCore
-
The deck used throughout the game.
- Deck - Class in javatro.core
- Deck(Deck.DeckType) - Constructor for class javatro.core.Deck
-
Initialize the deck with cards that the player owns If no new cards owned or a new game has started, initializes a new deck
- DECK_INDEX - Static variable in class javatro.storage.DataParser
- Deck.DeckType - Enum Class in javatro.core
-
Enum representing the type of the deck.
- DeckArt - Enum Class in javatro.display
- deckFromKey(String) - Static method in class javatro.storage.utils.CardUtils
-
Converts a storage key into a
Deck.DeckTypeobject. - DeckRenderer - Class in javatro.display.formatter.runselect
- DeckRenderer() - Constructor for class javatro.display.formatter.runselect.DeckRenderer
- DeckSelectOption - Class in javatro.manager.options
-
Represents a menu option for selecting a specific deck type to start a new game.
- DeckSelectOption(String, Deck.DeckType) - Constructor for class javatro.manager.options.DeckSelectOption
-
Constructs a deck selection option with specified description and deck type.
- DeckSelectScreen - Class in javatro.display.screens
-
Screen for selecting player deck configuration at game start.
- DeckSelectScreen() - Constructor for class javatro.display.screens.DeckSelectScreen
-
Constructs deck selection screen with available deck options.
- DeckViewOption - Class in javatro.manager.options
-
Represents a menu option to view the current deck composition.
- DeckViewOption() - Constructor for class javatro.manager.options.DeckViewOption
- DeckViewScreen - Class in javatro.display.screens
-
Displays the current deck composition in a formatted table view showing card distribution by suit and rank.
- DeckViewScreen() - Constructor for class javatro.display.screens.DeckViewScreen
-
Constructs a deck view screen with return option.
- DEFAULT - Enum constant in enum class javatro.core.Deck.DeckType
- DEFAULT_SELECTION_LIMIT - Static variable in class javatro.manager.options.CardSelectOption
-
Default maximum number of cards that can be selected in one operation
- deleteRunData(int) - Method in class javatro.storage.StorageManager
-
Deletes the data associated with a specific run number.
- description - Static variable in class javatro.core.jokers.Joker
- DIAMONDS - Enum constant in enum class javatro.core.Card.Suit
- discard(List<Integer>) - Method in class javatro.core.HoldingHand
-
Discards a set number of cards.
- DISCARD_INDEX - Static variable in class javatro.storage.DataParser
- DiscardCardOption - Class in javatro.manager.options
-
Represents a command to discard selected cards during gameplay.
- DiscardCardOption() - Constructor for class javatro.manager.options.DiscardCardOption
- discardCards(List<Integer>) - Method in class javatro.core.round.Round
-
Discards a selection of cards from the player's hand.
- DiscardCardScreen - Class in javatro.display.screens
-
The
DiscardCardScreenclass represents a screen where the user selects cards to discard. - DiscardCardScreen() - Constructor for class javatro.display.screens.DiscardCardScreen
-
Constructs a
DiscardCardScreenand initializes the selection command. - DisplayFormatter - Class in javatro.display.formatter.runselect
- DisplayFormatter() - Constructor for class javatro.display.formatter.runselect.DisplayFormatter
- displayHoldingHand() - Method in class javatro.display.screens.CardSelectScreen
-
Displays formatted card hand with borders and styling.
- displayOptions() - Method in class javatro.display.screens.Screen
-
Displays formatted options menu with title and border decoration.
- displayScreen() - Method in class javatro.display.screens.BlindSelectScreen
-
Displays the Blind Selection screen with highlighted sections based on the current blind setting.
- displayScreen() - Method in class javatro.display.screens.CardSelectScreen
-
Implemented by subclasses to define screen-specific display logic
- displayScreen() - Method in class javatro.display.screens.DeckSelectScreen
-
Displays deck selection interface (handled by superclass options rendering).
- displayScreen() - Method in class javatro.display.screens.DeckViewScreen
-
Displays the deck composition in a formatted table showing: Card counts by suit and rank Suit totals Rank totals Grand total count
- displayScreen() - Method in class javatro.display.screens.DiscardCardScreen
-
Displays the current cards in the user's holding hand for selection.
- displayScreen() - Method in class javatro.display.screens.GameScreen
-
Displays the game screen with current game information such as scores, round details, deck view, and card art.
- displayScreen() - Method in class javatro.display.screens.HelpScreen
-
Displays the help screen.
- displayScreen() - Method in class javatro.display.screens.LoseScreen
-
Displays loss screen components: Defeat ASCII art Decorative borders Randomized loss message Repeated "HA" defeat banner
- displayScreen() - Method in class javatro.display.screens.PlayCardScreen
-
Displays the current cards in the user's holding hand for selection.
- displayScreen() - Method in class javatro.display.screens.PokerHandScreen
- displayScreen() - Method in class javatro.display.screens.RunListScreen
-
Displays the list of saved runs on the screen.
- displayScreen() - Method in class javatro.display.screens.RunSelectScreen
-
Displays the screen content based on whether saved runs are available or not.
- displayScreen() - Method in class javatro.display.screens.Screen
-
Displays the main content of the screen.
- displayScreen() - Method in class javatro.display.screens.StartScreen
-
Displays the startup screen content including: Javatro logo loaded from external file Formatted menu options (handled by superclass)
- displayScreen() - Method in class javatro.display.screens.WinGameScreen
-
Displays victory screen components: Celebratory ASCII art Decorative border elements Random victory quote Post-game options
- displayScreen() - Method in class javatro.display.screens.WinRoundScreen
-
Displays round victory content based on blind type: Boss Blind: Awards random joker with special ability Normal Blind: Awards planet card with stat boosts
- draw() - Method in class javatro.core.Deck
-
Draws and returns a card from the top of the deck
- draw(int, Deck) - Method in class javatro.core.HoldingHand
-
Draws a specified number of cards from the deck and adds them to the Hand.
E
- EIGHT - Enum constant in enum class javatro.core.Card.Rank
- END - Static variable in class javatro.display.UI
-
ANSI escape code to reset all formatting.
- equals(Object) - Method in record class javatro.core.Card
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class javatro.core.PokerHand
-
Indicates whether some other object is "equal to" this one.
- errorLoadingLogo(String) - Static method in exception javatro.core.JavatroException
-
Creates exception for missing resource file.
- evaluateHand(List<Card>) - Static method in class javatro.core.HandResult
-
Evaluates the poker hand based on the given list of cards.
- exceedsMaxCardSelection(int) - Static method in exception javatro.core.JavatroException
-
Creates exception for exceeding maximum card selection.
- exceedsMaxJokers() - Static method in exception javatro.core.JavatroException
- execute() - Method in class javatro.manager.options.AcceptBlindOption
-
Executes the action associated with accepting the blind.
- execute() - Method in class javatro.manager.options.CardSelectOption
-
Executes the card selection operation.
- execute() - Method in class javatro.manager.options.DeckSelectOption
-
Executes the command.
- execute() - Method in class javatro.manager.options.DeckViewOption
-
Executes the command.
- execute() - Method in class javatro.manager.options.DiscardCardOption
-
Executes the command.
- execute() - Method in class javatro.manager.options.ExitGameOption
-
Executes the command.
- execute() - Method in class javatro.manager.options.HelpHowOption
-
Executes the command to display instructions on how to play.
- execute() - Method in class javatro.manager.options.HelpIntroOption
-
Executes the command to display the introduction message.
- execute() - Method in class javatro.manager.options.HelpMenuOption
-
Executes the command to display the help screen.
- execute() - Method in class javatro.manager.options.HelpRulesOption
-
Executes the command to display the rules of the game.
- execute() - Method in class javatro.manager.options.HelpTipsOption
-
Executes the command to display gameplay tips.
- execute() - Method in class javatro.manager.options.MainMenuOption
-
Executes the command to change the screen to the start menu.
- execute() - Method in class javatro.manager.options.NextRoundOption
-
Executes the command to move on to the next round.
- execute() - Method in interface javatro.manager.options.Option
-
Executes the command.
- execute() - Method in class javatro.manager.options.PlayCardOption
-
Executes the command.
- execute() - Method in class javatro.manager.options.PokerHandOption
-
Executes the command.
- execute() - Method in class javatro.manager.options.RejectBlindOption
-
Executes the action of rejecting the current blind level.
- execute() - Method in class javatro.manager.options.ResumeGameOption
-
Executes the resume game command, updating the game screen to return the player to the main game interface.
- execute() - Method in class javatro.manager.options.ReturnOption
-
Executes the command.
- execute() - Method in class javatro.manager.options.RunSelectOption
-
Executes the command to change the screen to the start menu.
- execute() - Method in class javatro.manager.options.SortByRankOption
-
Executes the command.
- execute() - Method in class javatro.manager.options.SortBySuitOption
-
Executes the command.
- execute() - Method in class javatro.manager.options.StartGameOption
-
Executes the command to begin the game, restore available commands, and update the main screen to display the game interface.
- execute() - Method in class javatro.manager.options.StartRunOption
-
Executes the command to change the screen to the start menu.
- execute() - Method in class javatro.manager.options.ViewNextRunOption
-
Executes the command to change the screen to the start menu.
- execute() - Method in class javatro.manager.options.ViewPrevRunOption
-
Executes the command to change the screen to the start menu.
- execute() - Method in class javatro.manager.options.ViewRunListOption
-
Executes the command to change the screen to the start menu.
- execute() - Method in class javatro.manager.options.ViewRunOption
-
Executes the command to change the screen to the run selection screen.
- ExitGameOption - Class in javatro.manager.options
-
Terminates the game application after displaying exit sequences.
- ExitGameOption() - Constructor for class javatro.manager.options.ExitGameOption
F
- FIVE - Enum constant in enum class javatro.core.Card.Rank
- FIVE_OF_A_KIND - Enum constant in enum class javatro.core.PokerHand.HandType
- FIVE_OF_A_KIND_INDEX - Static variable in class javatro.storage.DataParser
- FLUSH - Enum constant in enum class javatro.core.PokerHand.HandType
- FLUSH_FIVE - Enum constant in enum class javatro.core.PokerHand.HandType
- FLUSH_FIVE_INDEX - Static variable in class javatro.storage.DataParser
- FLUSH_HOUSE - Enum constant in enum class javatro.core.PokerHand.HandType
- FLUSH_HOUSE_INDEX - Static variable in class javatro.storage.DataParser
- FLUSH_INDEX - Static variable in class javatro.storage.DataParser
- formatRunInformation(Storage, int) - Static method in class javatro.display.formatter.runselect.DisplayFormatter
- FOUR - Enum constant in enum class javatro.core.Card.Rank
- FOUR_OF_A_KIND - Enum constant in enum class javatro.core.PokerHand.HandType
- FOUR_OF_A_KIND_INDEX - Static variable in class javatro.storage.DataParser
- fromStorageKey(String) - Static method in class javatro.storage.utils.CardUtils
-
Converts a storage key into a
DeckArtobject. - FULL_HOUSE - Enum constant in enum class javatro.core.PokerHand.HandType
- FULL_HOUSE_INDEX - Static variable in class javatro.storage.DataParser
G
- GameScreen - Class in javatro.display.screens
-
GameScreen class represents the game menu screen in the Javatro application.
- GameScreen() - Constructor for class javatro.display.screens.GameScreen
-
Constructs a new GameScreen with predefined command options.
- generateHash(List<String>) - Static method in class javatro.storage.utils.HashUtil
-
Generates a SHA-256 hash from a list of strings representing run data.
- getAllRunData() - Method in class javatro.storage.StorageManager
-
Retrieves all run data stored in memory.
- getAnte() - Static method in class javatro.core.JavatroCore
-
Retrieves the current ante.
- getAnteCount() - Method in class javatro.core.Ante
-
Gets the current ante count.
- getAnteScore() - Method in class javatro.core.Ante
-
Gets the base ante score for the current round.
- getArtLines() - Method in enum class javatro.display.DeckArt
- getBlind() - Method in class javatro.core.Ante
-
Gets the current blind level.
- getBlindScore() - Method in class javatro.core.round.Round
-
Gets the target score needed to win this round.
- getBlindScreen() - Static method in class javatro.display.UI
- getBossType() - Method in class javatro.core.round.Round
-
Gets the boss type for this round.
- getCardArtLines(List<Card>) - Static method in class javatro.display.UI
-
Generates ASCII art lines for displaying cards.
- getCardIndicesTitle(int) - Method in class javatro.display.screens.CardSelectScreen
-
Generates formatted card index header for display.
- getCardInput(int, int) - Static method in class javatro.display.Parser
-
Collects and validates card selection input from the user.
- getChipIncrement() - Method in class javatro.core.PlanetCard
- getChipIncrement(PokerHand.HandType) - Static method in class javatro.core.PlanetCard
-
Calculates total chip increment for a hand type at its current level.
- getChips() - Method in record class javatro.core.Card
-
Returns the chip value of this card based on its rank.
- getChips() - Method in enum class javatro.core.Card.Rank
-
Returns the chip value used in game calculations.
- getChips() - Method in record class javatro.core.PokerHand
-
Calculates the total chip value adjusted by the hand's current progression level.
- getChips() - Method in enum class javatro.core.PokerHand.HandType
-
Gets the base chip value before level adjustments.
- getCommand(int) - Method in class javatro.display.screens.Screen
-
Retrieves a command by its index position.
- getCommandMap() - Method in class javatro.display.screens.Screen
- getConfig() - Method in class javatro.core.round.Round
-
Gets the configuration object for this round.
- getCurrentAudioPath() - Method in class javatro.audioplayer.AudioPlayer
-
Returns the path of the currently playing audio file.
- getCurrentScore() - Method in class javatro.core.round.Round
-
Gets the current score accumulated in this round.
- getCurrentScreen() - Static method in class javatro.display.UI
- getDeck() - Method in class javatro.core.round.Round
-
Gets the deck used in this round.
- getDeckName() - Method in class javatro.core.Deck
-
Returns an DeckType containing the deck variant you are using
- getDeckName() - Method in enum class javatro.display.DeckArt
- getDeckName() - Method in class javatro.display.formatter.runselect.RunDataFetcher
- getDeckSelectScreen() - Static method in class javatro.display.UI
- getDeckViewScreen() - Static method in class javatro.display.UI
- getDescription() - Method in enum class javatro.core.BossType
-
Returns the description of the BossType.
- getDescription() - Method in class javatro.core.jokers.Joker
- getDescription() - Method in class javatro.manager.options.AcceptBlindOption
-
Returns the description of this option.
- getDescription() - Method in class javatro.manager.options.CardSelectOption
-
Returns a human-readable description of this command.
- getDescription() - Method in class javatro.manager.options.DeckSelectOption
-
Retrieves a description of the command.
- getDescription() - Method in class javatro.manager.options.DeckViewOption
-
Retrieves a description of the command.
- getDescription() - Method in class javatro.manager.options.DiscardCardOption
-
Retrieves a description of the command.
- getDescription() - Method in class javatro.manager.options.ExitGameOption
-
Retrieves a description of the command.
- getDescription() - Method in class javatro.manager.options.HelpHowOption
-
Returns a description of this command.
- getDescription() - Method in class javatro.manager.options.HelpIntroOption
-
Returns a description of this command.
- getDescription() - Method in class javatro.manager.options.HelpMenuOption
-
Returns a description of this command.
- getDescription() - Method in class javatro.manager.options.HelpRulesOption
-
Returns a description of this command.
- getDescription() - Method in class javatro.manager.options.HelpTipsOption
-
Returns a description of this command.
- getDescription() - Method in class javatro.manager.options.MainMenuOption
-
Provides a brief description of the command.
- getDescription() - Method in class javatro.manager.options.NextRoundOption
- getDescription() - Method in interface javatro.manager.options.Option
-
Retrieves a description of the command.
- getDescription() - Method in class javatro.manager.options.PlayCardOption
-
Retrieves a description of the command.
- getDescription() - Method in class javatro.manager.options.PokerHandOption
-
Retrieves a description of the command.
- getDescription() - Method in class javatro.manager.options.RejectBlindOption
-
Returns the description of this option.
- getDescription() - Method in class javatro.manager.options.ResumeGameOption
-
Provides a brief description of the command.
- getDescription() - Method in class javatro.manager.options.ReturnOption
-
Retrieves a description of the command.
- getDescription() - Method in class javatro.manager.options.RunSelectOption
-
Provides a brief description of the command.
- getDescription() - Method in class javatro.manager.options.SortByRankOption
-
Retrieves a description of the command.
- getDescription() - Method in class javatro.manager.options.SortBySuitOption
-
Retrieves a description of the command.
- getDescription() - Method in class javatro.manager.options.StartGameOption
-
Provides a brief description of the command.
- getDescription() - Method in class javatro.manager.options.StartRunOption
-
Provides a brief description of the command.
- getDescription() - Method in class javatro.manager.options.ViewNextRunOption
-
Provides a brief description of the command.
- getDescription() - Method in class javatro.manager.options.ViewPrevRunOption
-
Provides a brief description of the command.
- getDescription() - Method in class javatro.manager.options.ViewRunListOption
-
Provides a brief description of the command.
- getDescription() - Method in class javatro.manager.options.ViewRunOption
-
Returns a description of this option, which includes the run number it represents.
- getDiscardIndex() - Method in class javatro.display.formatter.runselect.RunDataFetcher
- getDiscardScreen() - Static method in class javatro.display.UI
- getDisplayLength(String) - Static method in class javatro.display.UI
-
Calculates the visible length of text, ignoring ANSI codes and special Unicode characters.
- getForHand(PokerHand.HandType) - Static method in class javatro.core.PlanetCard
-
Retrieves the predefined planet card for a specific hand type.
- getGameScreen() - Static method in class javatro.display.UI
- getHand() - Method in class javatro.core.HoldingHand
-
Retrieves the list of cards in the player's hand.
- getHand(PokerHand.HandType) - Method in class javatro.display.screens.PokerHandScreen
-
Gets a specific poker hand by type.
- getHandIndex() - Method in class javatro.display.formatter.runselect.RunDataFetcher
- getHandName() - Method in record class javatro.core.PokerHand
-
Gets the display name of the poker hand type.
- getHandName() - Method in enum class javatro.core.PokerHand.HandType
-
Gets the display name of the hand type.
- getHandType() - Method in class javatro.core.PlanetCard
- getHeight() - Method in enum class javatro.display.DeckArt
- getHelpScreen() - Static method in class javatro.display.UI
- getIdentifierName() - Method in class javatro.core.jokers.Joker
- getInstance() - Static method in class javatro.audioplayer.AudioPlayer
-
Returns the singleton instance of
AudioPlayer. - getInstance() - Static method in class javatro.storage.StorageManager
-
Returns the single instance of
StorageManager. - getJokers() - Method in class javatro.core.jokers.HeldJokers
-
Returns a soft copy of the ArrayList of HeldJokers.
- getJumpToRunScreen() - Static method in class javatro.display.UI
- getLevel(PokerHand.HandType) - Static method in class javatro.core.PlanetCard
-
Gets current enhancement level for a hand type.
- getLine(int) - Method in enum class javatro.display.DeckArt
- getLoseScreen() - Static method in class javatro.display.UI
- getLosses() - Method in class javatro.display.formatter.runselect.RunDataFetcher
- getMultiIncrement() - Method in class javatro.core.PlanetCard
- getMultiIncrement(PokerHand.HandType) - Static method in class javatro.core.PlanetCard
-
Calculates total multiplier increment for a hand type at its current level.
- getMultiplier() - Method in enum class javatro.core.Ante.Blind
-
Gets the multiplier associated with this blind.
- getMultiplier() - Method in record class javatro.core.PokerHand
-
Calculates the multiplier value adjusted by the hand's current progression level.
- getMultiplier() - Method in enum class javatro.core.PokerHand.HandType
-
Gets the base multiplier value before level adjustments.
- getName() - Method in enum class javatro.core.Ante.Blind
-
Gets the name of the blind.
- getName() - Method in enum class javatro.core.BossType
-
Returns the name of the BossType.
- getName() - Method in enum class javatro.core.Card.Suit
-
Returns the formal name of the suit.
- getName() - Method in enum class javatro.core.Deck.DeckType
-
Returns the symbol of the rank.
- getName() - Method in class javatro.core.jokers.Joker
- getName() - Method in class javatro.core.PlanetCard
- getNextBlind() - Method in class javatro.core.Ante
- getNumberOfRuns() - Method in class javatro.storage.Storage
-
Retrieves the total number of runs stored.
- getNumberOfRuns() - Method in class javatro.storage.StorageManager
-
Returns the number of runs stored in memory.
- getObservable() - Method in class javatro.core.round.Round
-
Gets the observable object for this round.
- getOptionInput() - Method in class javatro.display.Parser
-
Handles user input for menu navigation and notifies observers.
- getOptionsSize() - Method in class javatro.display.screens.Screen
-
Gets the current number of available options.
- getOutput() - Method in class javatro.display.screens.Screen
- getParser() - Static method in class javatro.display.UI
- getPath() - Method in class javatro.core.jokers.Joker
- getPath() - Method in class javatro.core.PlanetCard
- getPlayCount() - Method in record class javatro.core.PokerHand
-
Retrieves the number of times this hand type has been played.
- getPlayCount(PokerHand.HandType) - Static method in class javatro.core.JavatroCore
-
Gets the play count for a specific hand type
- getPlayedCards() - Method in class javatro.core.round.Round
-
Gets the played cards in this round.
- getPlayedHand() - Method in class javatro.core.round.Round
-
Gets the played hand of cards in this round.
- getPlayerHand() - Method in class javatro.core.round.Round
-
Gets the player's current hand of cards.
- getPlayerHandCards() - Method in class javatro.core.round.Round
-
Gets the player's current hand of cards as a list.
- getPlayerJokers() - Method in class javatro.core.round.Round
-
Gets the player's current held jokers.
- getPlayScreen() - Static method in class javatro.display.UI
- getPokerHandScreen() - Static method in class javatro.display.UI
- getPreviousScreen() - Static method in class javatro.display.UI
- getRandomBossType() - Static method in enum class javatro.core.BossType
-
Returns a random boss type (excluding NONE).
- getRemainingCards() - Method in class javatro.core.Deck
-
Returns an integer containing the cards left in the deck
- getRemainingDiscards() - Method in class javatro.core.round.Round
-
Gets the number of remaining discards available to the player.
- getRemainingPlays() - Method in class javatro.core.round.Round
-
Gets the number of remaining plays available to the player.
- getRoundCount() - Static method in class javatro.core.JavatroCore
-
Retrieves the current round count.
- getRoundDescription() - Method in class javatro.core.round.Round
-
Gets the description of this round.
- getRoundName() - Method in class javatro.core.round.Round
-
Gets the display name of this round.
- getRoundNumber() - Method in class javatro.display.formatter.runselect.RunDataFetcher
- getRoundScore() - Method in class javatro.core.Ante
-
Calculates the round score based on the ante level and blind multiplier.
- getRoundScore() - Method in class javatro.display.formatter.runselect.RunDataFetcher
- getRunChosen() - Method in class javatro.storage.Storage
-
Retrieves the currently selected run index.
- getRunData(int) - Method in class javatro.storage.StorageManager
-
Retrieves the run data for a given run number.
- getRunNumber() - Static method in class javatro.display.screens.RunSelectScreen
-
Retrieves the current run number being displayed.
- getRunNumber() - Method in class javatro.manager.options.ViewRunOption
- getRunSelectScreen() - Static method in class javatro.display.UI
- getScore(PokerHand, List<Card>, HeldJokers) - Method in class javatro.core.Score
-
Returns the score of the played hand by calculating the value of the hand.
- getSerializedRunData() - Method in class javatro.storage.Storage
-
Retrieves a deep copy of the serialized run data.
- getStartScreen() - Static method in class javatro.display.UI
- getState() - Method in class javatro.core.round.Round
-
Gets the state object for this round.
- getStorageInstance() - Static method in class javatro.storage.Storage
-
Retrieves the singleton instance of
Storage. - getSymbol() - Method in enum class javatro.core.Card.Rank
-
Returns the display symbol for this rank.
- getValue(int, int) - Method in class javatro.storage.Storage
-
Retrieves a specific value from a run.
- getWholeDeck() - Method in class javatro.core.Deck
-
Returns an ArrayList containing all the remaining cards in the deck
- getWinGameScreen() - Static method in class javatro.display.UI
- getWinRoundScreen() - Static method in class javatro.display.UI
- getWins() - Method in class javatro.display.formatter.runselect.RunDataFetcher
- GluttonousJoker - Class in javatro.core.jokers.addmult
-
Represents a GluttonousJoker Joker.
- GluttonousJoker() - Constructor for class javatro.core.jokers.addmult.GluttonousJoker
- GreedyJoker - Class in javatro.core.jokers.addmult
-
Represents a GreedyJoker Joker.
- GreedyJoker() - Constructor for class javatro.core.jokers.addmult.GreedyJoker
- GREEN - Static variable in class javatro.display.UI
H
- HalfJoker - Class in javatro.core.jokers.addmult
-
Represents a HalfJoker Joker.
- HalfJoker() - Constructor for class javatro.core.jokers.addmult.HalfJoker
- Hand - Variable in class javatro.core.HoldingHand
- HAND_INDEX - Static variable in class javatro.storage.DataParser
- HandResult - Class in javatro.core
-
The `HandResult` class evaluates a poker hand based on the given cards.
- HandResult() - Constructor for class javatro.core.HandResult
- handType() - Method in record class javatro.core.PokerHand
-
Returns the value of the
handTyperecord component. - hashCode() - Method in record class javatro.core.Card
-
Returns a hash code value for this object.
- hashCode() - Method in record class javatro.core.PokerHand
-
Returns a hash code value for this object.
- HashUtil - Class in javatro.storage.utils
-
The
HashUtilclass provides utility methods for generating SHA-256 hashes of game run data. - HashUtil() - Constructor for class javatro.storage.utils.HashUtil
- HEARTS - Enum constant in enum class javatro.core.Card.Suit
- heldJokers - Static variable in class javatro.core.JavatroCore
-
The held jokers used throughout the game.
- heldJokers - Variable in class javatro.core.jokers.HeldJokers
- HeldJokers - Class in javatro.core.jokers
-
Holds all the Jokers the player has in an ArrayList of type Joker.
- HeldJokers() - Constructor for class javatro.core.jokers.HeldJokers
-
Constructor for the HeldJokers Class.
- HelpHowOption - Class in javatro.manager.options
-
The HelpHowOption class explains how to play javatro.
- HelpHowOption() - Constructor for class javatro.manager.options.HelpHowOption
- HelpIntroOption - Class in javatro.manager.options
-
The HelpIntroOption class provides an introduction to javatro.
- HelpIntroOption() - Constructor for class javatro.manager.options.HelpIntroOption
- HelpMenuOption - Class in javatro.manager.options
-
The HelpMenuOption class handles displaying the help screen in javatro.
- HelpMenuOption() - Constructor for class javatro.manager.options.HelpMenuOption
- HelpRulesOption - Class in javatro.manager.options
-
The HelpRulesOption class provides the rules for playing javatro.
- HelpRulesOption() - Constructor for class javatro.manager.options.HelpRulesOption
- HelpScreen - Class in javatro.display.screens
-
The
HelpScreenclass represents a screen displaying the help menu in the javatro application. - HelpScreen() - Constructor for class javatro.display.screens.HelpScreen
-
Constructs a
HelpScreeninstance and initializes the available help options. - HelpTipsOption - Class in javatro.manager.options
-
The HelpTipsOption class provides gameplay tips for javatro.
- HelpTipsOption() - Constructor for class javatro.manager.options.HelpTipsOption
- HIGH_CARD - Enum constant in enum class javatro.core.PokerHand.HandType
- HIGH_CARD_INDEX - Static variable in class javatro.storage.DataParser
- HOLDING_HAND_START_INDEX - Static variable in class javatro.storage.DataParser
- HOLDING_LIMIT - Static variable in class javatro.core.jokers.HeldJokers
- HoldingHand - Class in javatro.core
- HoldingHand() - Constructor for class javatro.core.HoldingHand
-
Instantiate an empty List of Cards.
- HORIZONTAL - Static variable in class javatro.display.UI
I
- identifierName - Static variable in class javatro.core.jokers.Joker
- incrementPlayCount(PokerHand.HandType) - Static method in class javatro.core.JavatroCore
-
Increments the play count for a specific hand type
- incrementPlayed() - Method in record class javatro.core.PokerHand
-
Increments the play counter for this hand type in the external tracker.
- incrementPlayed(PokerHand.HandType) - Method in class javatro.display.screens.PokerHandScreen
-
Updates the played count for a specific hand type.
- indexOutOfBounds(int) - Static method in exception javatro.core.JavatroException
-
Creates exception for index out of bounds.
- initaliseSaveFile() - Method in class javatro.storage.StorageManager
-
Initializes the save file by loading existing data or creating a new file if none exists.
- initializePokerHandStats() - Static method in class javatro.core.JavatroCore
-
Initializes poker hand play counts at game start
- interact(Score, Card) - Method in class javatro.core.jokers.addchip.OddToddJoker
- interact(Score, Card) - Method in class javatro.core.jokers.addchip.ScaryFaceJoker
- interact(Score, Card) - Method in class javatro.core.jokers.addmult.AbstractJoker
- interact(Score, Card) - Method in class javatro.core.jokers.addmult.GluttonousJoker
- interact(Score, Card) - Method in class javatro.core.jokers.addmult.GreedyJoker
- interact(Score, Card) - Method in class javatro.core.jokers.addmult.HalfJoker
- interact(Score, Card) - Method in class javatro.core.jokers.addmult.LustyJoker
- interact(Score, Card) - Method in class javatro.core.jokers.addmult.WrathfulJoker
- interact(Score, Card) - Method in class javatro.core.jokers.Joker
-
Abstract method of Joker for scoring purposes.
- invalidBlindScore() - Static method in exception javatro.core.JavatroException
- invalidCardInput() - Static method in exception javatro.core.JavatroException
- invalidDeck() - Static method in exception javatro.core.JavatroException
- invalidInputType() - Static method in exception javatro.core.JavatroException
- invalidMenuInput(int) - Static method in exception javatro.core.JavatroException
-
Creates exception for invalid menu input range.
- invalidOptionsSize() - Static method in exception javatro.core.JavatroException
- invalidOptionsTitle() - Static method in exception javatro.core.JavatroException
- invalidPlayedHand(int, int) - Static method in exception javatro.core.JavatroException
-
Creates exception for invalid number of cards in a poker hand.
- invalidPlaysPerRound() - Static method in exception javatro.core.JavatroException
- invalidScreen() - Static method in exception javatro.core.JavatroException
- invalidSelectionLimit() - Static method in exception javatro.core.JavatroException
- isCSVDataValid(String) - Static method in class javatro.storage.DataParser
-
Validates the provided CSV data for structural integrity, hash consistency, and logical validity.
- isLost() - Method in class javatro.core.round.Round
-
Checks if the game is lost based on game rules.
- isNewDeck - Static variable in class javatro.storage.Storage
-
Indicates if a new deck is being used.
- isPlaying() - Method in class javatro.audioplayer.AudioPlayer
-
Checks if an audio file is currently playing.
- isRoundOver() - Method in class javatro.core.round.Round
-
Checks if the round is over based on game rules.
- isValidCardString(String) - Static method in class javatro.storage.utils.CardUtils
-
Validates if a given card string is in the correct format.
- isValidJokerString(String) - Static method in class javatro.storage.utils.CardUtils
-
Validates if a given joker name is valid.
- isWon() - Method in class javatro.core.round.Round
-
Checks if the round was won by the player.
- ITALICS - Static variable in class javatro.display.UI
-
ANSI escape code for italic text.
J
- JACK - Enum constant in enum class javatro.core.Card.Rank
- javatro - package javatro
- Javatro - Class in javatro
-
The
javatroclass serves as the main entry point for the application. - Javatro() - Constructor for class javatro.Javatro
- javatro.audioplayer - package javatro.audioplayer
-
Provides functionality for audio playback within the application.
- javatro.core - package javatro.core
-
The
corepackage contains the core game logic and data structures necessary for managing the game state, rounds, cards, and hands. - javatro.core.jokers - package javatro.core.jokers
-
The
jokerspackage contains the joker logic and data structures necessary for instantiating and creating Jokers. - javatro.core.jokers.addchip - package javatro.core.jokers.addchip
-
Provides classes for different types of Joker cards in the game.
- javatro.core.jokers.addmult - package javatro.core.jokers.addmult
-
Provides classes for different types of Joker cards in the game.
- javatro.core.round - package javatro.core.round
-
Contains classes that define the structure and actions of a game round in Javatro.
- javatro.display - package javatro.display
-
Provides the user interface layer for the Javatro application, handling all presentation logic and user interaction components.
- javatro.display.formatter.runselect - package javatro.display.formatter.runselect
-
Deck and Runs Art and Formatting
- javatro.display.screens - package javatro.display.screens
-
All Screens and its variants
- javatro.manager - package javatro.manager
-
The
managerpackage contains the core game management and command execution logic. - javatro.manager.options - package javatro.manager.options
-
All Options and its variants
- javatro.storage - package javatro.storage
-
Provides classes and utilities for managing game data persistence, retrieval, validation, and parsing.
- javatro.storage.utils - package javatro.storage.utils
-
Provides utility classes for handling common operations related to data manipulation, hashing, and card-related operations within the Javatro application.
- javatro.utilities.csvutils - package javatro.utilities.csvutils
- javatro.utilities.outpututils - package javatro.utilities.outpututils
- JavatroCore - Class in javatro.core
-
The core game logic class that manages the game state and rounds.
- JavatroCore() - Constructor for class javatro.core.JavatroCore
- JavatroException - Exception in javatro.core
-
Custom exception class for handling application-specific errors in the Javatro game.
- JavatroException(String) - Constructor for exception javatro.core.JavatroException
-
Constructs a JavatroException with a colored error message.
- JavatroException(String, Throwable) - Constructor for exception javatro.core.JavatroException
-
Constructs a JavatroException with colored message and cause.
- JavatroManager - Class in javatro.manager
-
The
JavatroManagerclass serves as the main controller (manager) of the game, coordinating interactions between the model (JavatroCore) and the view (display). - JavatroManager(UI, JavatroCore) - Constructor for class javatro.manager.JavatroManager
-
Constructs a
JavatroManagerand registers it as an observer to the view. - jc - Static variable in class javatro.manager.JavatroManager
- Joker - Class in javatro.core.jokers
-
Represents a Joker card.
- Joker() - Constructor for class javatro.core.jokers.Joker
- JOKER_HAND_START_INDEX - Static variable in class javatro.storage.DataParser
- Joker.ScoreType - Enum Class in javatro.core.jokers
-
Enum representing the type of Joker Card.
- JokerFactory - Class in javatro.core.jokers
-
Factory for creating and distributing Jokers.
- JokerFactory() - Constructor for class javatro.core.jokers.JokerFactory
- jokerList - Variable in class javatro.core.Score
- jokerToString(Joker) - Static method in class javatro.storage.utils.CardUtils
-
Converts a
Jokerobject to its string representation.
K
L
- LARGE_BLIND - Enum constant in enum class javatro.core.Ante.Blind
- LEVELS - Static variable in class javatro.core.PlanetCard
-
Maps each poker hand type to its current enhancement level.
- loadCSVData(String) - Static method in class javatro.storage.DataParser
-
Loads the CSV data into the
StorageManager. - LoseScreen - Class in javatro.display.screens
-
Screen displayed upon game loss, featuring humorous defeat messages.
- LoseScreen() - Constructor for class javatro.display.screens.LoseScreen
-
Constructs game over screen with post-loss options.
- LOSSES_INDEX - Static variable in class javatro.storage.DataParser
- LustyJoker - Class in javatro.core.jokers.addmult
-
Represents a LustyJoker Joker.
- LustyJoker() - Constructor for class javatro.core.jokers.addmult.LustyJoker
M
- main(String[]) - Static method in class javatro.Javatro
-
The main entry point of the application.
- MainMenuOption - Class in javatro.manager.options
-
The
MainMenuOptionclass represents a command that loads the start screen, allowing players to navigate to the main menu. - MainMenuOption() - Constructor for class javatro.manager.options.MainMenuOption
N
- name - Static variable in class javatro.core.jokers.Joker
- nextRound() - Method in class javatro.core.Ante
-
Moves to the next round of the ante system, adjusting the blind level and ante count.
- nextRound() - Method in class javatro.core.JavatroCore
-
Advances the game to the next round, updating the ante and incrementing the round count.
- NextRoundOption - Class in javatro.manager.options
- NextRoundOption() - Constructor for class javatro.manager.options.NextRoundOption
- NINE - Enum constant in enum class javatro.core.Card.Rank
- noCardsRemaining() - Static method in exception javatro.core.JavatroException
-
Creates an exception indicating the deck is empty.
- NONE - Enum constant in enum class javatro.core.BossType
- noPlaysRemaining() - Static method in exception javatro.core.JavatroException
-
Creates an exception indicating no plays remaining.
- noRemainingDiscards() - Static method in exception javatro.core.JavatroException
- noSavedRunsArt - Static variable in class javatro.display.formatter.runselect.ArtConstants
O
- OddToddJoker - Class in javatro.core.jokers.addchip
-
Represents a OddToddJoker Joker
- OddToddJoker() - Constructor for class javatro.core.jokers.addchip.OddToddJoker
- ONCARDPLAY - Enum constant in enum class javatro.core.jokers.Joker.ScoreType
- Option - Interface in javatro.manager.options
- ORANGE - Static variable in class javatro.display.UI
- ORANGE_B - Static variable in class javatro.display.UI
- ORIGINAL - Enum constant in enum class javatro.display.screens.CardSelectScreen.SortOrder
-
Original deal order
- OutputUtils - Class in javatro.utilities.outpututils
- OutputUtils() - Constructor for class javatro.utilities.outpututils.OutputUtils
P
- padToWidth(String, int) - Static method in class javatro.display.UI
-
Truncates or pads a string to exactly the specified display width.
- PAIR - Enum constant in enum class javatro.core.PokerHand.HandType
- PAIR_INDEX - Static variable in class javatro.storage.DataParser
- parseCardString(String) - Static method in class javatro.storage.utils.CardUtils
-
Parses a card string into a
Cardobject. - parseJokerString(String) - Static method in class javatro.storage.utils.CardUtils
-
Parses a joker name string into a
Jokerobject. - Parser - Class in javatro.display
-
Handles parsing and validation of user input for the Javatro application.
- Parser() - Constructor for class javatro.display.Parser
- path - Static variable in class javatro.core.jokers.Joker
- pipeOutputToFile(String, Screen) - Static method in class javatro.utilities.outpututils.OutputUtils
-
Pipes the output of the current screen to a file.
- PlanetCard - Class in javatro.core
-
Represents a planet card associated with a specific poker hand type.
- play(List<Integer>) - Method in class javatro.core.HoldingHand
-
Returns the specified cards as requested by the player Hand will then draw the same number of cards back from the deck
- playAudio(String) - Method in class javatro.audioplayer.AudioPlayer
-
Plays an audio file.
- PlayCardOption - Class in javatro.manager.options
-
Represents a command to play selected cards during gameplay.
- PlayCardOption() - Constructor for class javatro.manager.options.PlayCardOption
- playCards(List<Integer>) - Method in class javatro.core.round.Round
-
Plays a selection of cards from the player's hand.
- PlayCardScreen - Class in javatro.display.screens
-
The
PlayCardScreenclass represents a screen where the user selects cards to play. - PlayCardScreen() - Constructor for class javatro.display.screens.PlayCardScreen
-
Constructs a
PlayCardScreenand sets the selection limit. - playedCardsList - Static variable in class javatro.core.Score
- PokerHand - Record Class in javatro.core
-
Represents the evaluated result of a poker hand with tracking for progression levels and usage counts.
- PokerHand(PokerHand.HandType) - Constructor for record class javatro.core.PokerHand
-
Creates an instance of a
PokerHandrecord class. - PokerHand.HandType - Enum Class in javatro.core
-
Enumeration of poker hand types with associated base values and progression parameters.
- PokerHandOption - Class in javatro.manager.options
-
Represents a menu option to view current poker hand combinations.
- PokerHandOption() - Constructor for class javatro.manager.options.PokerHandOption
- PokerHandScreen - Class in javatro.display.screens
- PokerHandScreen() - Constructor for class javatro.display.screens.PokerHandScreen
- populateWithSavedDeck() - Method in class javatro.core.Deck
- printANSI(String) - Static method in class javatro.display.UI
-
Prints ANSI art from a resource file.
- printBlackB(String) - Static method in class javatro.display.UI
-
Prints text with a black background using ANSI escape codes.
- printBorderedContent(String, List<String>) - Static method in class javatro.display.UI
-
Prints a bordered message or menu with a title and dynamically generated content.
- printBorderedContent(String, List<String>, int, int) - Static method in class javatro.display.UI
-
Prints a bordered message or menu with customizable widths for title and content.
- propertyChange(PropertyChangeEvent) - Method in class javatro.display.screens.GameScreen
-
Handles property change events to update game screen information.
- propertyChange(PropertyChangeEvent) - Method in class javatro.manager.JavatroManager
-
Handles property change events from the view.
- PURPLE - Static variable in class javatro.display.UI
- PURPLE_B - Static variable in class javatro.display.UI
Q
- QUEEN - Enum constant in enum class javatro.core.Card.Rank
- QUOTES - Static variable in class javatro.display.screens.WinGameScreen
-
Collection of victory messages for random selection
R
- rank() - Method in record class javatro.core.Card
-
Returns the value of the
rankrecord component. - RED - Enum constant in enum class javatro.core.Deck.DeckType
- RED - Static variable in class javatro.display.UI
- RED_B - Static variable in class javatro.display.UI
- RED_DECK - Enum constant in enum class javatro.display.DeckArt
- RejectBlindOption - Class in javatro.manager.options
-
Represents an option to reject the current blind and move to the next available blind level.
- RejectBlindOption() - Constructor for class javatro.manager.options.RejectBlindOption
- reloadJumpToRunScreen() - Static method in class javatro.display.UI
- reloadRunSelectScreen() - Static method in class javatro.display.UI
- remove(int) - Method in class javatro.core.jokers.HeldJokers
-
Removes the Joker from the specified index.
- renderCard(Card) - Static method in class javatro.display.CardRenderer
-
Renders a card as an array of strings representing ASCII art lines.
- renderDeckArt(String) - Static method in class javatro.display.formatter.runselect.DeckRenderer
- renderDeckName(String) - Static method in class javatro.display.formatter.runselect.DeckRenderer
- resetAnte() - Method in class javatro.core.Ante
-
Resets the ante to the first round with the small blind.
- ResumeGameOption - Class in javatro.manager.options
-
The
ResumeGameOptionclass represents a command that allows the player to return to the main game screen after navigating away. - ResumeGameOption() - Constructor for class javatro.manager.options.ResumeGameOption
- ReturnOption - Class in javatro.manager.options
-
Enables navigation back to the previous screen in the view stack.
- ReturnOption() - Constructor for class javatro.manager.options.ReturnOption
- Round - Class in javatro.core.round
-
Represents a round in the Javatro game.
- Round(Ante, int, Deck, HeldJokers) - Constructor for class javatro.core.round.Round
-
Constructs a new round with the specified ante and blind settings without specifying round name and description.
- Round(Ante, int, Deck, HeldJokers, String, String) - Constructor for class javatro.core.round.Round
-
Constructs a new round with detailed configuration.
- Round(Ante, int, Deck, HeldJokers, BossType) - Constructor for class javatro.core.round.Round
-
Constructs a new round with specified boss type This constructor is not intended for use in normal gameplay.
- ROUND_NUMBER_INDEX - Static variable in class javatro.storage.DataParser
- ROUND_SCORE_INDEX - Static variable in class javatro.storage.DataParser
- roundCount - Static variable in class javatro.core.JavatroCore
-
The current round count of the game.
- roundCount - Static variable in class javatro.manager.JavatroManager
-
The main model responsible for handling game logic.
- ROYAL_FLUSH - Enum constant in enum class javatro.core.PokerHand.HandType
- ROYAL_FLUSH_INDEX - Static variable in class javatro.storage.DataParser
- RUN_NUMBER_INDEX - Static variable in class javatro.storage.DataParser
- RunDataFetcher - Class in javatro.display.formatter.runselect
- RunDataFetcher(int) - Constructor for class javatro.display.formatter.runselect.RunDataFetcher
- RunListScreen - Class in javatro.display.screens
-
Represents the screen that displays the list of saved game runs.
- RunListScreen() - Constructor for class javatro.display.screens.RunListScreen
-
Constructs the RunListScreen by retrieving the saved runs from storage and creating corresponding
ViewRunOptionobjects for each run. - runningTests - Static variable in class javatro.manager.JavatroManager
- RunSelectOption - Class in javatro.manager.options
-
A command that loads the run selection screen when executed.
- RunSelectOption() - Constructor for class javatro.manager.options.RunSelectOption
- RunSelectScreen - Class in javatro.display.screens
-
The
RunSelectScreenclass represents a screen used to select and load runs within the game. - RunSelectScreen() - Constructor for class javatro.display.screens.RunSelectScreen
-
Constructs a
RunSelectScreenwith a specified options menu title.
S
- saveActive - Static variable in class javatro.storage.Storage
-
Stores whether storage is active for the game or not
- saveRunData(int, ArrayList<String>) - Method in class javatro.storage.StorageManager
-
Saves a run's data in the storage map.
- ScaryFaceJoker - Class in javatro.core.jokers.addchip
-
Represents a AbstractJoker Joker, based off the Abstract Joker of Balatro.
- ScaryFaceJoker() - Constructor for class javatro.core.jokers.addchip.ScaryFaceJoker
- Score - Class in javatro.core
-
Contains the algorithm for calculating the final score and played hand.
- Score() - Constructor for class javatro.core.Score
-
Default constructor
- Score(BossType) - Constructor for class javatro.core.Score
-
Creates a new score calculator with the given boss type.
- scoreType - Variable in class javatro.core.jokers.Joker
- Screen - Class in javatro.display.screens
-
Abstract base class representing a display screen in the Javatro application.
- Screen(String) - Constructor for class javatro.display.screens.Screen
-
Constructs a screen with specified options menu title.
- setAnteCount(int) - Method in class javatro.core.Ante
-
Sets the ante count for the game.
- setBlind(Ante.Blind) - Method in class javatro.core.Ante
-
Sets the blind level manually.
- setCurrentScore(int) - Method in class javatro.core.round.Round
- setCurrentScreen(Screen) - Method in class javatro.display.UI
-
Transitions to a new screen and updates display.
- setDescription(String) - Method in interface javatro.manager.options.Option
-
Updates the description of the command.
- setDescription(String) - Method in class javatro.manager.options.StartGameOption
-
Updates the description of the command.
- setHand(List<Card>) - Method in class javatro.core.HoldingHand
- setHOLDINGLIMIT(int) - Method in class javatro.core.HoldingHand
-
Change the HOLDING_LIMIT of the HoldingHand Class.
- setPlayerHandCards(List<Card>) - Method in class javatro.core.round.Round
-
@warnThis method will be deprecated in future versions. - setRoundDescription(String) - Method in class javatro.core.round.Round
-
Sets the description of this round.
- setRoundName(String) - Method in class javatro.core.round.Round
-
Sets the display name of this round.
- setRunChosen(int) - Method in class javatro.storage.Storage
-
Sets the currently selected run index.
- setRunNumber(int) - Static method in class javatro.display.screens.RunSelectScreen
-
Sets the current run number to be displayed.
- setRunNumber(int) - Method in class javatro.manager.options.ViewRunOption
-
Sets the run number for this option.
- setScreen(Screen) - Static method in class javatro.manager.JavatroManager
-
Changes the currently displayed screen.
- setSerializedRunData(TreeMap<Integer, ArrayList<String>>) - Method in class javatro.storage.Storage
-
Sets the serialized run data by delegating to the
StorageManager. - setSerializedRunData(TreeMap<Integer, ArrayList<String>>) - Method in class javatro.storage.StorageManager
-
Sets the entire serialized run data map.
- setupNewGame(Deck.DeckType) - Method in class javatro.core.JavatroCore
-
Initializes a new game by resetting the ante, round count, jokers and decks.
- setValue(int, int, String) - Method in class javatro.storage.Storage
-
Sets a specific value for a given run and saves it.
- SEVEN - Enum constant in enum class javatro.core.Card.Rank
- shuffle() - Method in class javatro.core.Deck
-
Shuffle the deck you are using
- SIX - Enum constant in enum class javatro.core.Card.Rank
- SMALL_BLIND - Enum constant in enum class javatro.core.Ante.Blind
- sortByRank() - Method in class javatro.core.HoldingHand
-
Sorts the hand first by rank (Ace > King > Queen > ...
- SortByRankOption - Class in javatro.manager.options
-
Organizes card display using rank-based sorting (Ace high to Two low).
- SortByRankOption(CardSelectScreen) - Constructor for class javatro.manager.options.SortByRankOption
-
Creates a rank sorting option for specified card screen.
- sortBySuit() - Method in class javatro.core.HoldingHand
-
Sorts the hand first by suit (Spades > Hearts > Clubs > Diamonds), then by rank (Ace > King > Queen > ...
- SortBySuitOption - Class in javatro.manager.options
-
Organizes card display using suit-based sorting (Spades, Hearts, Clubs, Diamonds).
- SortBySuitOption(CardSelectScreen) - Constructor for class javatro.manager.options.SortBySuitOption
-
Creates a suit sorting option for specified card screen.
- SPADES - Enum constant in enum class javatro.core.Card.Suit
- START_OF_REST_OF_DECK - Static variable in class javatro.storage.DataParser
- StartGameOption - Class in javatro.manager.options
-
The
StartGameOptionclass represents a command that initializes and starts a new game session by setting the game screen. - StartGameOption() - Constructor for class javatro.manager.options.StartGameOption
- StartRunOption - Class in javatro.manager.options
-
A command that loads the run selection screen when executed.
- StartRunOption() - Constructor for class javatro.manager.options.StartRunOption
- StartScreen - Class in javatro.display.screens
-
Initial application screen displaying main menu options and game logo.
- StartScreen() - Constructor for class javatro.display.screens.StartScreen
-
Constructs the start screen with default main menu options.
- stopAudio() - Method in class javatro.audioplayer.AudioPlayer
-
Stops the currently playing audio, if any, and properly cleans up resources.
- Storage - Class in javatro.storage
-
The
Storageclass serves as a facade to interact with the underlying storage mechanism managed byStorageManager. - StorageManager - Class in javatro.storage
-
The
StorageManagerclass is responsible for managing the storage of game data, including reading from and writing to a save file. - STRAIGHT - Enum constant in enum class javatro.core.PokerHand.HandType
- STRAIGHT_FLUSH - Enum constant in enum class javatro.core.PokerHand.HandType
- STRAIGHT_FLUSH_INDEX - Static variable in class javatro.storage.DataParser
- STRAIGHT_INDEX - Static variable in class javatro.storage.DataParser
- suit() - Method in record class javatro.core.Card
-
Returns the value of the
suitrecord component. - switchAudio(String) - Method in class javatro.audioplayer.AudioPlayer
-
Switches to a new audio file, stopping any currently playing audio.
T
- T_DOWN - Static variable in class javatro.display.UI
- T_LEFT - Static variable in class javatro.display.UI
- T_RIGHT - Static variable in class javatro.display.UI
- T_UP - Static variable in class javatro.display.UI
- TEN - Enum constant in enum class javatro.core.Card.Rank
- THE_CLUB - Enum constant in enum class javatro.core.BossType
- THE_GOAD - Enum constant in enum class javatro.core.BossType
- THE_HEAD - Enum constant in enum class javatro.core.BossType
- THE_NEEDLE - Enum constant in enum class javatro.core.BossType
- THE_PLANT - Enum constant in enum class javatro.core.BossType
- THE_PSYCHIC - Enum constant in enum class javatro.core.BossType
- THE_WATER - Enum constant in enum class javatro.core.BossType
- THE_WINDOW - Enum constant in enum class javatro.core.BossType
- THREE - Enum constant in enum class javatro.core.Card.Rank
- THREE_OF_A_KIND - Enum constant in enum class javatro.core.PokerHand.HandType
- THREE_OF_A_KIND_INDEX - Static variable in class javatro.storage.DataParser
- tooManyDiscards() - Static method in exception javatro.core.JavatroException
- TOP_LEFT - Static variable in class javatro.display.UI
-
Custom border characters for UI elements
- TOP_RIGHT - Static variable in class javatro.display.UI
- toString() - Method in record class javatro.core.Card
-
Returns a human-readable string representation of the card.
- toString() - Method in class javatro.core.jokers.addchip.OddToddJoker
- toString() - Method in class javatro.core.jokers.addchip.ScaryFaceJoker
- toString() - Method in class javatro.core.jokers.addmult.AbstractJoker
- toString() - Method in class javatro.core.jokers.addmult.GluttonousJoker
- toString() - Method in class javatro.core.jokers.addmult.GreedyJoker
- toString() - Method in class javatro.core.jokers.addmult.HalfJoker
- toString() - Method in class javatro.core.jokers.addmult.LustyJoker
- toString() - Method in class javatro.core.jokers.addmult.WrathfulJoker
- toString() - Method in record class javatro.core.PokerHand
-
Returns a string representation of this record class.
- totalChips - Variable in class javatro.core.Score
- totalMultiplier - Variable in class javatro.core.Score
- totalPlays - Static variable in class javatro.core.JavatroCore
-
The number of plays given per round (Default value = 4).
- TWO - Enum constant in enum class javatro.core.Card.Rank
- TWO_PAIR - Enum constant in enum class javatro.core.PokerHand.HandType
- TWO_PAIR_INDEX - Static variable in class javatro.storage.DataParser
U
- ui - Static variable in class javatro.manager.JavatroManager
-
The main view responsible for rendering the user interface.
- UI - Class in javatro.display
-
The
UIclass is responsible for managing and displaying different screens in the application. - UI() - Constructor for class javatro.display.UI
- UNDERLINE - Static variable in class javatro.display.UI
-
ANSI escape code for underlined text.
- updateDiscards(int) - Method in class javatro.core.round.Round
- updateHoldingHand(CardSelectScreen.SortOrder) - Method in class javatro.display.screens.CardSelectScreen
-
Updates and sorts the displayed hand according to specified order.
- updateNewRoundData(int, List<String>) - Method in class javatro.storage.StorageManager
-
Updates round-specific data for a new round in the storage.
- updatePlays(int) - Method in class javatro.core.round.Round
- updateRoundData(int, List<String>) - Method in class javatro.storage.StorageManager
- updateRoundVariables() - Method in class javatro.core.round.Round
-
Notifies all registered observers of changes in the round state.
- updateSaveFile() - Method in class javatro.storage.Storage
-
Updates the save file by delegating to the
StorageManager. - updateSaveFile() - Method in class javatro.storage.StorageManager
-
Updates the save file by writing the serialized run data to disk.
V
- valueOf(String) - Static method in enum class javatro.core.Ante.Blind
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class javatro.core.BossType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class javatro.core.Card.Rank
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class javatro.core.Card.Suit
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class javatro.core.Deck.DeckType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class javatro.core.jokers.Joker.ScoreType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class javatro.core.PokerHand.HandType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class javatro.display.DeckArt
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class javatro.display.screens.CardSelectScreen.SortOrder
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class javatro.core.Ante.Blind
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class javatro.core.BossType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class javatro.core.Card.Rank
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class javatro.core.Card.Suit
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class javatro.core.Deck.DeckType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class javatro.core.jokers.Joker.ScoreType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class javatro.core.PokerHand.HandType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class javatro.display.DeckArt
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class javatro.display.screens.CardSelectScreen.SortOrder
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VERTICAL - Static variable in class javatro.display.UI
- ViewNextRunOption - Class in javatro.manager.options
-
A command that loads the run selection screen when executed.
- ViewNextRunOption() - Constructor for class javatro.manager.options.ViewNextRunOption
- ViewPrevRunOption - Class in javatro.manager.options
-
A command that loads the run selection screen when executed.
- ViewPrevRunOption() - Constructor for class javatro.manager.options.ViewPrevRunOption
- ViewRunListOption - Class in javatro.manager.options
-
A command that loads the run selection screen when executed.
- ViewRunListOption() - Constructor for class javatro.manager.options.ViewRunListOption
- ViewRunOption - Class in javatro.manager.options
-
A command that loads the run selection screen for a specific saved run.
- ViewRunOption() - Constructor for class javatro.manager.options.ViewRunOption
W
- WHITE - Static variable in class javatro.display.UI
- WHITE_B - Static variable in class javatro.display.UI
- WinGameScreen - Class in javatro.display.screens
-
Victory screen displayed upon completing the game successfully.
- WinGameScreen() - Constructor for class javatro.display.screens.WinGameScreen
-
Constructs victory screen with post-game options.
- WinRoundScreen - Class in javatro.display.screens
-
Screen displayed after winning a game round, showing earned rewards.
- WinRoundScreen() - Constructor for class javatro.display.screens.WinRoundScreen
-
Constructs round victory screen with progression options.
- WINS_INDEX - Static variable in class javatro.storage.DataParser
- WrathfulJoker - Class in javatro.core.jokers.addmult
-
Represents a WrathfulJoker Joker.
- WrathfulJoker() - Constructor for class javatro.core.jokers.addmult.WrathfulJoker
- writeSampleToCSV(String, String) - Static method in class javatro.utilities.csvutils.CSVUtils
-
Writes a sample string to a CSV file.
Y
A B C D E F G H I J K L M N O P Q R S T U V W YAll Classes and Interfaces|All Packages|Constant Field Values|Serialized Form