Index

A B C D E F G H I L M P S T U V W X Y 
All Classes and Interfaces|All Packages|Serialized Form

A

addLoadGameListener(ActionListener) - Method in class dev.laszlomocsy.tzaar.gui.MenuPanel
Add ActionListener to Load Game button
addPassListener(ActionListener) - Method in class dev.laszlomocsy.tzaar.gui.ControlPanel
Add ActionListener to Pass button
addReturnToMenuListener(ActionListener) - Method in class dev.laszlomocsy.tzaar.gui.ControlPanel
Add ActionListener to Return to Menu button
addReturnToMenuListener(ActionListener) - Method in class dev.laszlomocsy.tzaar.gui.GamePanel
Adds a listener to the pass button.
addSaveGameListener(ActionListener) - Method in class dev.laszlomocsy.tzaar.gui.ControlPanel
Add ActionListener to Save Game button
addSaveGameListener(ActionListener) - Method in class dev.laszlomocsy.tzaar.gui.GamePanel
Adds a listener to the pass button.
addSpaceButtonListener(ActionListener) - Method in class dev.laszlomocsy.tzaar.gui.BoardPanel
Adds a space button listener.
addStartGameListener(ActionListener) - Method in class dev.laszlomocsy.tzaar.gui.MenuPanel
Add ActionListener to Start Game button

B

BLACK - Enum constant in enum class dev.laszlomocsy.tzaar.logic.figure.FigureColor
 
BLACK_WON - Enum constant in enum class dev.laszlomocsy.tzaar.logic.board.BoardStatus
 
Board - Class in dev.laszlomocsy.tzaar.logic.board
The board of the game.
BOARD_STATUS_INVALID - Enum constant in enum class dev.laszlomocsy.tzaar.logic.board.BoardActionResult
 
BoardActionResult - Enum Class in dev.laszlomocsy.tzaar.logic.board
The result of a board action.
BoardPanel - Class in dev.laszlomocsy.tzaar.gui
Represents the board panel of the game.
BoardPanel() - Constructor for class dev.laszlomocsy.tzaar.gui.BoardPanel
Creates a new board panel.
BoardStatus - Enum Class in dev.laszlomocsy.tzaar.logic.board
Enum representing the status of the board.

C

COLOR_INVALID - Enum constant in enum class dev.laszlomocsy.tzaar.logic.board.BoardActionResult
 
ControlPanel - Class in dev.laszlomocsy.tzaar.gui
ControlPanel class to manage the control buttons and status label
ControlPanel() - Constructor for class dev.laszlomocsy.tzaar.gui.ControlPanel
Constructor to initialize the ControlPanel

D

dev.laszlomocsy.tzaar - package dev.laszlomocsy.tzaar
 
dev.laszlomocsy.tzaar.gui - package dev.laszlomocsy.tzaar.gui
 
dev.laszlomocsy.tzaar.logic.board - package dev.laszlomocsy.tzaar.logic.board
 
dev.laszlomocsy.tzaar.logic.figure - package dev.laszlomocsy.tzaar.logic.figure
 
dev.laszlomocsy.tzaar.utils - package dev.laszlomocsy.tzaar.utils
 

E

equals(Object) - Method in record class dev.laszlomocsy.tzaar.logic.figure.FigureLocation
Indicates whether some other object is "equal to" this one.

F

Figure - Class in dev.laszlomocsy.tzaar.logic.figure
A single figure represented on the board.
Figure() - Constructor for class dev.laszlomocsy.tzaar.logic.figure.Figure
Initializes a new figure with no location, color, type, and height.
Figure(FigureLocation, FigureColor, FigureType) - Constructor for class dev.laszlomocsy.tzaar.logic.figure.Figure
Initializes a new figure with the height of 1.
Figure(FigureLocation, FigureColor, FigureType, int) - Constructor for class dev.laszlomocsy.tzaar.logic.figure.Figure
Initializes a new figure.
FIGURE_HEIGHT_SMALLER - Enum constant in enum class dev.laszlomocsy.tzaar.logic.board.BoardActionResult
 
FIGURE_LOCATION_OCCUPIED - Enum constant in enum class dev.laszlomocsy.tzaar.logic.board.BoardActionResult
 
FIGURE_NULL - Enum constant in enum class dev.laszlomocsy.tzaar.logic.board.BoardActionResult
 
FigureColor - Enum Class in dev.laszlomocsy.tzaar.logic.figure
Color of a figure.
FigureLocation - Record Class in dev.laszlomocsy.tzaar.logic.figure
The location of a Figure on the Board.
FigureLocation(int, int) - Constructor for record class dev.laszlomocsy.tzaar.logic.figure.FigureLocation
Creates a new FigureLocation with the given coordinates.
figures - Variable in class dev.laszlomocsy.tzaar.utils.GameState
 
FigureType - Enum Class in dev.laszlomocsy.tzaar.logic.figure
The figure's type.
fromString(String) - Static method in record class dev.laszlomocsy.tzaar.logic.figure.FigureLocation
Creates a new FigureLocation from the given string.

G

GamePanel - Class in dev.laszlomocsy.tzaar.gui
The main panel of the game, containing the board and the control panel.
GamePanel() - Constructor for class dev.laszlomocsy.tzaar.gui.GamePanel
Creates a new GamePanel.
GameState - Class in dev.laszlomocsy.tzaar.utils
GameState class is used to store the current state of the game.
GameState() - Constructor for class dev.laszlomocsy.tzaar.utils.GameState
 
GameStateManager - Class in dev.laszlomocsy.tzaar.utils
This class is responsible for saving and loading the game state.
GameWindow - Class in dev.laszlomocsy.tzaar.gui
The main window of the game.
GameWindow() - Constructor for class dev.laszlomocsy.tzaar.gui.GameWindow
Creates a new game window.
generateBoard(GameState) - Static method in class dev.laszlomocsy.tzaar.utils.GameStateManager
Converts a game state to a board.
generateGameState(Board, String, String) - Static method in class dev.laszlomocsy.tzaar.utils.GameStateManager
Converts a board to a game state.
getAllLocation() - Static method in record class dev.laszlomocsy.tzaar.logic.figure.FigureLocation
Returns all the valid locations on the board.
getBlackPlayerName() - Method in class dev.laszlomocsy.tzaar.gui.MenuPanel
Get the black player's name
getBoard() - Method in class dev.laszlomocsy.tzaar.gui.GamePanel
Returns the board of the game.
getColor() - Method in class dev.laszlomocsy.tzaar.logic.figure.Figure
Gets the color of the figure.
getFigures() - Method in class dev.laszlomocsy.tzaar.logic.board.Board
Retrieves the list of figures currently placed on the board.
getHeight() - Method in class dev.laszlomocsy.tzaar.logic.figure.Figure
Gets the height of the figure.
getLocation() - Method in class dev.laszlomocsy.tzaar.logic.figure.Figure
Gets the location of the figure on the board.
getMoveCounter() - Method in class dev.laszlomocsy.tzaar.logic.board.Board
Retrieves the current move counter.
getNextColor() - Method in class dev.laszlomocsy.tzaar.logic.board.Board
Retrieves the next color that can move.
getSelectedFigureLocation() - Method in class dev.laszlomocsy.tzaar.gui.BoardPanel
Gets the board.
getStatus() - Method in class dev.laszlomocsy.tzaar.logic.board.Board
Retrieves the current status of the board.
getType() - Method in class dev.laszlomocsy.tzaar.logic.figure.Figure
Gets the type of the figure.
getWhitePlayerName() - Method in class dev.laszlomocsy.tzaar.gui.MenuPanel
Get the white player's name

H

hashCode() - Method in record class dev.laszlomocsy.tzaar.logic.figure.FigureLocation
Returns a hash code value for this object.
hasSameAxis(FigureLocation, FigureLocation) - Static method in record class dev.laszlomocsy.tzaar.logic.figure.FigureLocation
Checks if the given locations are on the same axis.

I

IN_GAME - Enum constant in enum class dev.laszlomocsy.tzaar.logic.board.BoardStatus
 
initDefault() - Static method in class dev.laszlomocsy.tzaar.logic.board.Board
Initializes a new board with default placing.
initEmpty() - Static method in class dev.laszlomocsy.tzaar.logic.board.Board
Initializes a new empty board.
INVALID_MOVE - Enum constant in enum class dev.laszlomocsy.tzaar.logic.board.BoardActionResult
 
isValid(int, int) - Static method in record class dev.laszlomocsy.tzaar.logic.figure.FigureLocation
Checks if the given location coordinates are valid.

L

loadFromFile(File) - Static method in class dev.laszlomocsy.tzaar.utils.GameStateManager
Loads a game state from a file.
loadGame(Component) - Static method in class dev.laszlomocsy.tzaar.utils.GameStateManager
Loads a game state from a file.
LOCATION_A_EMPTY - Enum constant in enum class dev.laszlomocsy.tzaar.logic.board.BoardActionResult
 
LOCATION_B_EMPTY - Enum constant in enum class dev.laszlomocsy.tzaar.logic.board.BoardActionResult
 
LOCATIONS_ARE_EQUAL - Enum constant in enum class dev.laszlomocsy.tzaar.logic.board.BoardActionResult
 
LOCATIONS_HAS_NO_SAME_AXIS - Enum constant in enum class dev.laszlomocsy.tzaar.logic.board.BoardActionResult
 

M

main(String[]) - Static method in class dev.laszlomocsy.tzaar.TzaarGame
 
MenuPanel - Class in dev.laszlomocsy.tzaar.gui
 
MenuPanel() - Constructor for class dev.laszlomocsy.tzaar.gui.MenuPanel
Constructor to initialize the MenuPanel
moveFigure(FigureLocation, FigureLocation) - Method in class dev.laszlomocsy.tzaar.logic.board.Board
Moves a figure from one location to another on the board.

P

paintComponent(Graphics) - Method in class dev.laszlomocsy.tzaar.gui.BoardPanel
 
passMove() - Method in class dev.laszlomocsy.tzaar.logic.board.Board
Passes the move to the next color.
placeFigure(Figure) - Method in class dev.laszlomocsy.tzaar.logic.board.Board
Places a new figure on the board.
player1 - Variable in class dev.laszlomocsy.tzaar.utils.GameState
 
player2 - Variable in class dev.laszlomocsy.tzaar.utils.GameState
 

S

saveGame(GameState, Component) - Static method in class dev.laszlomocsy.tzaar.utils.GameStateManager
Saves the given game state to a file.
saveToFile(GameState, File) - Static method in class dev.laszlomocsy.tzaar.utils.GameStateManager
Saves the given game state to a file.
setBlackPlayerName(String) - Method in class dev.laszlomocsy.tzaar.gui.MenuPanel
Set the black player's name
setBoard(Board) - Method in class dev.laszlomocsy.tzaar.gui.BoardPanel
Sets the board.
setHeight(int) - Method in class dev.laszlomocsy.tzaar.logic.figure.Figure
Sets the height of the figure.
setLocation(FigureLocation) - Method in class dev.laszlomocsy.tzaar.logic.figure.Figure
Sets the location of the figure on the board.
setMenuPanel(MenuPanel) - Method in class dev.laszlomocsy.tzaar.gui.ControlPanel
Set the MenuPanel
setMenuPanel(MenuPanel) - Method in class dev.laszlomocsy.tzaar.gui.GamePanel
Sets the menu panel.
setSelectedFigureLocation(FigureLocation) - Method in class dev.laszlomocsy.tzaar.gui.BoardPanel
Sets the selected figure location.
setType(FigureType) - Method in class dev.laszlomocsy.tzaar.logic.figure.Figure
Sets the type of the figure.
SETUP - Enum constant in enum class dev.laszlomocsy.tzaar.logic.board.BoardStatus
 
setWhitePlayerName(String) - Method in class dev.laszlomocsy.tzaar.gui.MenuPanel
Set the white player's name
SpaceButton - Class in dev.laszlomocsy.tzaar.gui
Custom JButton class for the game board.
SpaceButton() - Constructor for class dev.laszlomocsy.tzaar.gui.SpaceButton
Constructor for the SpaceButton class.
startGame() - Method in class dev.laszlomocsy.tzaar.logic.board.Board
Starts the game.
startNewGame(Board) - Method in class dev.laszlomocsy.tzaar.gui.GamePanel
Starts a new game.
SUCCESS - Enum constant in enum class dev.laszlomocsy.tzaar.logic.board.BoardActionResult
 

T

toString() - Method in record class dev.laszlomocsy.tzaar.logic.figure.FigureLocation
Returns a string representation of this record class.
TOTT - Enum constant in enum class dev.laszlomocsy.tzaar.logic.figure.FigureType
 
TZAAR - Enum constant in enum class dev.laszlomocsy.tzaar.logic.figure.FigureType
 
TzaarGame - Class in dev.laszlomocsy.tzaar
Main class of the game.
TzaarGame() - Constructor for class dev.laszlomocsy.tzaar.TzaarGame
 
TZARRA - Enum constant in enum class dev.laszlomocsy.tzaar.logic.figure.FigureType
 

U

updateInfo(BoardActionResult) - Method in class dev.laszlomocsy.tzaar.gui.ControlPanel
Update the info label based on the BoardActionResult
updateStatus(Board) - Method in class dev.laszlomocsy.tzaar.gui.ControlPanel
Update the status label based on the current board status

V

valueOf(String) - Static method in enum class dev.laszlomocsy.tzaar.logic.board.BoardActionResult
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class dev.laszlomocsy.tzaar.logic.board.BoardStatus
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class dev.laszlomocsy.tzaar.logic.figure.FigureColor
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class dev.laszlomocsy.tzaar.logic.figure.FigureType
Returns the enum constant of this class with the specified name.
values() - Static method in enum class dev.laszlomocsy.tzaar.logic.board.BoardActionResult
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class dev.laszlomocsy.tzaar.logic.board.BoardStatus
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class dev.laszlomocsy.tzaar.logic.figure.FigureColor
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class dev.laszlomocsy.tzaar.logic.figure.FigureType
Returns an array containing the constants of this enum class, in the order they are declared.

W

WHITE - Enum constant in enum class dev.laszlomocsy.tzaar.logic.figure.FigureColor
 
WHITE_WON - Enum constant in enum class dev.laszlomocsy.tzaar.logic.board.BoardStatus
 

X

x() - Method in record class dev.laszlomocsy.tzaar.logic.figure.FigureLocation
Returns the value of the x record component.

Y

y() - Method in record class dev.laszlomocsy.tzaar.logic.figure.FigureLocation
Returns the value of the y record component.
A B C D E F G H I L M P S T U V W X Y 
All Classes and Interfaces|All Packages|Serialized Form