Index

B C D E F G H I J K L M N O P Q R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form

B

BackendApplication - Class in com.chess.backend
 
BackendApplication() - Constructor for class com.chess.backend.BackendApplication
 
backward(IBoard) - Method in class com.chess.backend.gamemodel.Position
Returns the position at the bottom of the current position.
backward(Chessboard, Piece, boolean, boolean, boolean, int) - Static method in class com.chess.backend.gamemodel.abstractmoves.MoveBackward
Generate concrete possible moves from a given piece and game context.
BACKWARD - Enum constant in enum class com.chess.backend.gamemodel.Position.Direction
 
BISHOP - Enum constant in enum class com.chess.backend.gamemodel.constants.PieceType
 
BLACK - Enum constant in enum class com.chess.backend.gamemodel.constants.Color
 
BLUE - Enum constant in enum class com.chess.backend.gamemodel.constants.Color
 

C

CANNON - Enum constant in enum class com.chess.backend.gamemodel.constants.PieceType
 
Castling - Enum Class in com.chess.backend.gamemodel.constants
Castling enum for different possible castling types in the game
CHECKMATED - Enum constant in enum class com.chess.backend.gamemodel.constants.Event
 
Chessboard - Class in com.chess.backend.gamemodel
Class to represent chessboard.
Chessboard() - Constructor for class com.chess.backend.gamemodel.Chessboard
 
ChessboardObject - Class in com.chess.backend.restController.objects
This class represents a simple version of the chessboard, which send as a response of the API-Call of GetChessboardController.
ChessboardObject(SquareObject[][]) - Constructor for class com.chess.backend.restController.objects.ChessboardObject
 
ChessboardService - Class in com.chess.backend.services
Stateless Chessboard Service to initialize new Chessboard and does operations on Chessboard object
ChessboardService() - Constructor for class com.chess.backend.services.ChessboardService
 
ChessGame - Class in com.chess.backend.gamemodel
Class responsible for the starts of new games, loading games, saving it, and for ending it.
ChessGame() - Constructor for class com.chess.backend.gamemodel.ChessGame
 
ChessGameService - Class in com.chess.backend.services
Game service to initialize new Game and do operations on it.
ChessGameService(IGameRepository) - Constructor for class com.chess.backend.services.ChessGameService
 
clone() - Method in class com.chess.backend.gamemodel.Chessboard
 
Color - Enum Class in com.chess.backend.gamemodel.constants
Represents a color of a piece or player.
com.chess.backend - package com.chess.backend
 
com.chess.backend.domain.controllers.objects - package com.chess.backend.domain.controllers.objects
 
com.chess.backend.domain.models - package com.chess.backend.domain.models
 
com.chess.backend.domain.repository - package com.chess.backend.domain.repository
 
com.chess.backend.domain.services - package com.chess.backend.domain.services
 
com.chess.backend.gamemodel - package com.chess.backend.gamemodel
 
com.chess.backend.gamemodel.abstractmoves - package com.chess.backend.gamemodel.abstractmoves
 
com.chess.backend.gamemodel.constants - package com.chess.backend.gamemodel.constants
 
com.chess.backend.repository - package com.chess.backend.repository
 
com.chess.backend.repository.metadata - package com.chess.backend.repository.metadata
 
com.chess.backend.restController.controller - package com.chess.backend.restController.controller
 
com.chess.backend.restController.objects - package com.chess.backend.restController.objects
 
com.chess.backend.restController.service - package com.chess.backend.restController.service
 
com.chess.backend.services - package com.chess.backend.services
 
concretise(Chessboard, Piece, boolean, boolean, boolean) - Static method in class com.chess.backend.gamemodel.abstractmoves.MoveBackward
Generate concrete possible moves from a given piece and game context.
concretise(Chessboard, Piece, boolean, boolean, boolean) - Static method in class com.chess.backend.gamemodel.abstractmoves.MoveDiagonal
Generate concrete possible moves from a given piece and game context.
concretise(Chessboard, Piece, boolean, boolean, boolean) - Static method in class com.chess.backend.gamemodel.abstractmoves.MoveForward
Generate concrete possible moves from a given piece and game context.
concretise(Chessboard, Piece, boolean, boolean, boolean) - Static method in class com.chess.backend.gamemodel.abstractmoves.MoveKnight
Generate concrete possible moves from a given piece and game context.
concretise(Chessboard, Piece, boolean, boolean, boolean) - Static method in class com.chess.backend.gamemodel.abstractmoves.MoveLeft
Generate concrete possible moves from a given piece and game context.
concretise(Chessboard, Piece, boolean, boolean, boolean) - Static method in class com.chess.backend.gamemodel.abstractmoves.MoveOneBackward
Generate concrete possible moves from a given piece and game context.
concretise(Chessboard, Piece, boolean, boolean, boolean) - Static method in class com.chess.backend.gamemodel.abstractmoves.MoveOneDiagonal
Generate concrete possible moves from a given piece and game context.
concretise(Chessboard, Piece, boolean, boolean, boolean) - Static method in class com.chess.backend.gamemodel.abstractmoves.MoveOneForward
Generate concrete possible moves from a given piece and game context.
concretise(Chessboard, Piece, boolean, boolean, boolean) - Static method in class com.chess.backend.gamemodel.abstractmoves.MoveOneLeft
Generate concrete possible moves from a given piece and game context.
concretise(Chessboard, Piece, boolean, boolean, boolean) - Static method in class com.chess.backend.gamemodel.abstractmoves.MoveOneRight
Generate concrete possible moves from a given piece and game context.
concretise(Chessboard, Piece, boolean, boolean, boolean) - Static method in class com.chess.backend.gamemodel.abstractmoves.MovePawnCaptureBackward
Generate concrete possible moves from a given piece and game context.
concretise(Chessboard, Piece, boolean, boolean, boolean) - Static method in class com.chess.backend.gamemodel.abstractmoves.MovePawnCaptureForward
Generate concrete possible moves from a given piece and game context.
concretise(Chessboard, Piece, boolean, boolean, boolean) - Static method in class com.chess.backend.gamemodel.abstractmoves.MoveRight
Generate concrete possible moves from a given piece and game context.
concretise(Chessboard, Piece, boolean, boolean, boolean) - Static method in class com.chess.backend.gamemodel.abstractmoves.MoveTwoBackward
Generate concrete possible moves from a given piece and game context.
concretise(Chessboard, Piece, boolean, boolean, boolean) - Static method in class com.chess.backend.gamemodel.abstractmoves.MoveTwoForward
Generate concrete possible moves from a given piece and game context.
concretise(Chessboard, Piece, boolean, boolean, boolean) - Static method in class com.chess.backend.gamemodel.abstractmoves.Shoot
Generate concrete possible shoots from a given piece and game context.
createNewGame(NewGameObject) - Method in class com.chess.backend.restController.controller.NewGameController
Method that is called on a post request.
createNewGame(Integer, ChessGame) - Method in interface com.chess.backend.domain.repository.IGameRepository
 
createNewGame(Integer, ChessGame) - Method in class com.chess.backend.repository.GameRepository
 
createNewGame(Integer, ChessGame) - Method in class com.chess.backend.repository.GameRepositoryMock
 
createNewGame(Integer, ChessGame, List<EventObject>) - Method in interface com.chess.backend.domain.repository.IGameRepository
 
createNewGame(Integer, ChessGame, List<EventObject>) - Method in class com.chess.backend.repository.GameRepository
 
createNewGame(Integer, ChessGame, List<EventObject>) - Method in class com.chess.backend.repository.GameRepositoryMock
 
createNewGame(String[]) - Static method in class com.chess.backend.services.ChessGameService
create new Game

D

diagBL(IBoard) - Method in class com.chess.backend.gamemodel.Position
Returns the position diagonally at the bottom left of the current position.
diagBR(IBoard) - Method in class com.chess.backend.gamemodel.Position
Returns the position diagonally at the bottom right of the current position.
diagFL(IBoard) - Method in class com.chess.backend.gamemodel.Position
Returns the position diagonally at the front left of the current position.
diagFR(IBoard) - Method in class com.chess.backend.gamemodel.Position
Returns the position diagonally at the front right of the current position.
diagonal(Chessboard, Piece, boolean, boolean, boolean, int) - Static method in class com.chess.backend.gamemodel.abstractmoves.MoveDiagonal
Generate concrete possible moves from a given piece and game context.
diagonal(Chessboard, Piece, boolean, boolean, boolean, int, Position.Direction) - Static method in class com.chess.backend.gamemodel.abstractmoves.MoveDiagonal
Generate concrete possible moves from a given piece and game context.
DIAGONAL_BL - Enum constant in enum class com.chess.backend.gamemodel.Position.Direction
 
DIAGONAL_BR - Enum constant in enum class com.chess.backend.gamemodel.Position.Direction
 
DIAGONAL_FL - Enum constant in enum class com.chess.backend.gamemodel.Position.Direction
 
DIAGONAL_FR - Enum constant in enum class com.chess.backend.gamemodel.Position.Direction
 
DRAW - Enum constant in enum class com.chess.backend.gamemodel.constants.Event
 

E

endGame(int) - Method in class com.chess.backend.restController.controller.EndGameController
Method that is called on a post request.
endGame(int) - Method in class com.chess.backend.restController.service.EndGameService
This method tells the ChessGameService to end the game with the responding game ID and returns a boolean value indicating the success.
EndGameController - Class in com.chess.backend.restController.controller
This class handles the API-call to end a game.
EndGameController(EndGameService) - Constructor for class com.chess.backend.restController.controller.EndGameController
 
EndGameService - Class in com.chess.backend.restController.service
This class handles the call to end a game.
EndGameService(ChessGameService) - Constructor for class com.chess.backend.restController.service.EndGameService
 
equals(Object) - Method in interface com.chess.backend.domain.models.IBoard
 
equals(Object) - Method in class com.chess.backend.gamemodel.Move
 
equals(Object) - Method in class com.chess.backend.gamemodel.Position
 
Event - Enum Class in com.chess.backend.gamemodel.constants
Represents different event types for the firebase database.
EventMetadata - Class in com.chess.backend.repository.metadata
 
EventMetadata(int[], int[], int, String) - Constructor for class com.chess.backend.repository.metadata.EventMetadata
 
EventMetadata(int[], int[], int, String, boolean) - Constructor for class com.chess.backend.repository.metadata.EventMetadata
 
EventMetadata(int, String) - Constructor for class com.chess.backend.repository.metadata.EventMetadata
 
EventObject - Class in com.chess.backend.repository.metadata
 
EventObject() - Constructor for class com.chess.backend.repository.metadata.EventObject
 
EventObject(Event) - Constructor for class com.chess.backend.repository.metadata.EventObject
 
EventObject(Event, EventMetadata) - Constructor for class com.chess.backend.repository.metadata.EventObject
 
executedMove(int, int[], int[]) - Method in class com.chess.backend.services.ChessGameService
move piece from one position to another
executedMove(ExecutedMoveObject) - Method in class com.chess.backend.restController.controller.ExecutedMoveController
Method that is called on a post request.
executedMove(ExecutedMoveObject) - Method in class com.chess.backend.restController.service.ExecutedMoveService
This method calls the ChessGameService to say which move was executed.
ExecutedMoveController - Class in com.chess.backend.restController.controller
This class handles the API-call regarding the executed move for a piece.
ExecutedMoveController(ExecutedMoveService) - Constructor for class com.chess.backend.restController.controller.ExecutedMoveController
 
ExecutedMoveObject - Class in com.chess.backend.restController.objects
This class is received from the API-Call of the ExecutedMoveController.
ExecutedMoveObject(int, int[], int[]) - Constructor for class com.chess.backend.restController.objects.ExecutedMoveObject
 
ExecutedMoveService - Class in com.chess.backend.restController.service
This class handles the call to say which move was executed.
ExecutedMoveService(ChessGameService) - Constructor for class com.chess.backend.restController.service.ExecutedMoveService
 

F

FERZ - Enum constant in enum class com.chess.backend.gamemodel.constants.PieceType
 
Firebase - Class in com.chess.backend.repository
 
Firebase(FirebaseConnector) - Constructor for class com.chess.backend.repository.Firebase
 
FirebaseConnector - Class in com.chess.backend.repository
 
FirebaseConnector() - Constructor for class com.chess.backend.repository.FirebaseConnector
 
forward(IBoard) - Method in class com.chess.backend.gamemodel.Position
Returns the position at the top of the current position.
forward(Chessboard, Piece, boolean, boolean, boolean, int) - Static method in class com.chess.backend.gamemodel.abstractmoves.MoveForward
Generate concrete possible moves from a given piece and game context.
FORWARD - Enum constant in enum class com.chess.backend.gamemodel.Position.Direction
 

G

GAME_STARTED - Enum constant in enum class com.chess.backend.gamemodel.constants.Event
 
GameMode - Enum Class in com.chess.backend.gamemodel.constants
 
GameRepository - Class in com.chess.backend.repository
 
GameRepository() - Constructor for class com.chess.backend.repository.GameRepository
 
GameRepositoryMock - Class in com.chess.backend.repository
A GameRepository mocking class for testing.
GameRepositoryMock() - Constructor for class com.chess.backend.repository.GameRepositoryMock
 
getActivePlayer() - Method in interface com.chess.backend.domain.models.IGame
 
getActivePlayerName(ChessGame) - Static method in class com.chess.backend.services.ChessGameService
Get the name of the active player.
getAllowedFullMoves(Chessboard) - Method in class com.chess.backend.gamemodel.Piece
Returns all allowed moves of the piece.
getAllowedMoves(Chessboard) - Method in class com.chess.backend.gamemodel.Piece
Converts AllowedFullMoves to an array of Squares representing only the destination of the move.
getAllPlayerNames() - Method in interface com.chess.backend.domain.controllers.objects.INewPlayersObject
 
getAllPlayerNames() - Method in class com.chess.backend.restController.objects.NewPlayersObject
Iterates through all the players and gets the name of them.
getAllSquaresFromChessboard(ChessGame) - Static method in class com.chess.backend.services.ChessGameService
Returns the ChessBoard of a game object
getBaseY(Player) - Static method in class com.chess.backend.services.PlayerService
get first position of a Player in the Board
getBoard(int) - Method in class com.chess.backend.services.ChessGameService
Returns the ChessBoard by gameID
getBottom(ArrayList<ArrayList<Square>>) - Static method in class com.chess.backend.services.ChessboardService
 
getCaptureKingPlayers(Chessboard, Player) - Static method in class com.chess.backend.services.ChessboardService
Get all players whose kings can be captured by a given player.
getChessboard() - Method in interface com.chess.backend.domain.models.IGame
 
getChessboard(int) - Method in class com.chess.backend.restController.controller.GetChessboardController
Method that is called on a get request.
getChessboard(int) - Method in class com.chess.backend.restController.service.GetChessboardService
This methods calls the ChessGameService to get the chessboard.
GetChessboardController - Class in com.chess.backend.restController.controller
This class handles the API-call to get the current chessboard.
GetChessboardController(GetChessboardService) - Constructor for class com.chess.backend.restController.controller.GetChessboardController
 
GetChessboardService - Class in com.chess.backend.restController.service
This class handles the call to get the chessboard.
GetChessboardService(ChessGameService) - Constructor for class com.chess.backend.restController.service.GetChessboardService
 
getColor() - Method in class com.chess.backend.gamemodel.Piece
 
getFromPos() - Method in class com.chess.backend.gamemodel.Move
 
getGame(Integer) - Method in interface com.chess.backend.domain.repository.IGameRepository
 
getGame(Integer) - Method in class com.chess.backend.repository.GameRepository
 
getGame(Integer) - Method in class com.chess.backend.repository.GameRepositoryMock
 
getGame(Integer) - Method in class com.chess.backend.services.ChessGameService
Returns a game object by gameID
getGameID() - Method in class com.chess.backend.restController.objects.ExecutedMoveObject
 
getGameID() - Method in class com.chess.backend.restController.objects.MoveRequestInputObject
 
getId() - Method in interface com.chess.backend.domain.models.IGame
 
getLabel() - Method in enum class com.chess.backend.gamemodel.constants.Color
 
getLabel() - Method in enum class com.chess.backend.gamemodel.constants.Event
 
getLabel() - Method in enum class com.chess.backend.gamemodel.constants.PieceType
 
getMaxX(ArrayList<ArrayList<Square>>) - Static method in class com.chess.backend.services.ChessboardService
 
getMaxY(ArrayList<ArrayList<Square>>) - Static method in class com.chess.backend.services.ChessboardService
 
getMoves() - Method in interface com.chess.backend.domain.models.IGame
 
getMoves_history() - Method in interface com.chess.backend.domain.models.IBoard
 
getNeighborPos(Chessboard, Position, Player) - Static method in class com.chess.backend.gamemodel.abstractmoves.Shoot
 
getNewGameID() - Static method in class com.chess.backend.services.ChessGameService
Generate new ID for a game object
getNewGameID(NewGameObject) - Method in interface com.chess.backend.domain.services.INewGameService
 
getNewGameID(NewGameObject) - Method in class com.chess.backend.restController.service.NewChessGameService
This method tells the ChessGameService to create a new game and gets the id of the new game.
getNewGameID(NewGameObject) - Method in class com.chess.backend.restController.service.NewOnlineGameService
 
getNewPiecePosition() - Method in class com.chess.backend.restController.objects.ExecutedMoveObject
 
getNumberOfPlayers() - Method in interface com.chess.backend.domain.models.IBoard
 
getOccupiedSquares(ArrayList<ArrayList<Square>>) - Static method in class com.chess.backend.services.ChessboardService
return list of Squares with pieces on it
getPieceByPosition(Chessboard, int, int) - Static method in class com.chess.backend.services.ChessboardService
 
getPieceByPosition(Chessboard, Position) - Static method in class com.chess.backend.services.ChessboardService
 
getPiecePosition() - Method in class com.chess.backend.restController.objects.MoveRequestInputObject
 
getPieceTypeOfPiece() - Method in class com.chess.backend.gamemodel.Square
 
getPlayerName() - Method in interface com.chess.backend.domain.controllers.objects.INewPlayerObject
 
getPlayers() - Method in interface com.chess.backend.domain.controllers.objects.INewPlayersObject
 
getPlayers() - Method in interface com.chess.backend.domain.models.IGame
 
getPlayerTurn(int) - Method in class com.chess.backend.restController.controller.GetPlayerTurnController
Method that is called on a get request.
getPlayerTurn(int) - Method in class com.chess.backend.restController.service.GetPlayerTurnService
This methods gets the player who is currently on turn from the ChessGameService.
getPlayerTurn(int) - Method in class com.chess.backend.services.ChessGameService
returns activate player
GetPlayerTurnController - Class in com.chess.backend.restController.controller
This class handles the API-call to get the player who is currently on the turn.
GetPlayerTurnController(GetPlayerTurnService) - Constructor for class com.chess.backend.restController.controller.GetPlayerTurnController
 
GetPlayerTurnObject - Class in com.chess.backend.restController.objects
This class is send as a response from the GetPlayerTurnController.
GetPlayerTurnObject(int, String) - Constructor for class com.chess.backend.restController.objects.GetPlayerTurnObject
 
GetPlayerTurnService - Class in com.chess.backend.restController.service
This class handles the call to get the player who is currently on turn.
GetPlayerTurnService(ChessGameService) - Constructor for class com.chess.backend.restController.service.GetPlayerTurnService
 
getPos() - Method in class com.chess.backend.gamemodel.Square
 
getPosFromDir(IBoard, Position.Direction) - Method in class com.chess.backend.gamemodel.Position
 
getPosition() - Method in enum class com.chess.backend.gamemodel.constants.Color
 
getPosition() - Method in class com.chess.backend.gamemodel.Piece
 
getPossibleMoves() - Method in class com.chess.backend.restController.objects.MoveRequestOutputObject
 
getPossibleMoves(ChessGame, int[]) - Method in class com.chess.backend.services.ChessGameService
returns possible moves for a piece position return value looks like that [[x,y], [2,2], [2,3], [3,3]]
getPossibleMoves(MoveRequestInputObject) - Method in class com.chess.backend.restController.controller.MoveRequestController
Method that is called on a post request.
getPossibleMoves(MoveRequestInputObject) - Method in class com.chess.backend.restController.service.MoveRequestService
This method gets the possible moves from the ChessGameService.
getPosX() - Method in class com.chess.backend.gamemodel.Square
 
getPosY() - Method in class com.chess.backend.gamemodel.Square
 
getPreviousPiecePosition() - Method in class com.chess.backend.restController.objects.ExecutedMoveObject
 
getSquare(Chessboard, Position) - Static method in class com.chess.backend.services.ChessboardService
gets Position object and Chessboard and returns the matched Square object to this position.
getSquares() - Method in interface com.chess.backend.domain.models.IBoard
 
getSymbol() - Method in enum class com.chess.backend.gamemodel.constants.PieceType
 
getSymbol() - Method in class com.chess.backend.gamemodel.Piece
 
getTakenPos() - Method in class com.chess.backend.gamemodel.Move
 
getTop(ArrayList<ArrayList<Square>>) - Static method in class com.chess.backend.services.ChessboardService
Replaces Chessboard.top field
getToPos() - Method in class com.chess.backend.gamemodel.Move
 
getValidMovesForPiece(Chessboard, Piece, Player) - Static method in class com.chess.backend.services.ChessboardService
Gets all valid moves for a piece.

H

hashCode() - Method in interface com.chess.backend.domain.models.IBoard
 
hashCode() - Method in class com.chess.backend.gamemodel.Move
 
hashCode() - Method in class com.chess.backend.gamemodel.Position
 
hasPiece() - Method in class com.chess.backend.gamemodel.Square
 
hasPlayerValidMoves(Chessboard, Player) - Static method in class com.chess.backend.services.ChessboardService
Check if a player can perform minimum one valid move.

I

IBoard - Interface in com.chess.backend.domain.models
Interface of Board class
IGame - Interface in com.chess.backend.domain.models
Interface of Game class
IGameRepository - Interface in com.chess.backend.domain.repository
Interface of GameRepository class
INewGameService - Interface in com.chess.backend.domain.services
 
INewPlayerObject - Interface in com.chess.backend.domain.controllers.objects
Interface of a NewPlayerObject
INewPlayersObject - Interface in com.chess.backend.domain.controllers.objects
Interface of a NewPlayersObject
initClean(Chessboard) - Static method in class com.chess.backend.services.ChessboardService
 
initClean(ArrayList<ArrayList<Square>>) - Static method in class com.chess.backend.services.ChessboardService
 
initNewGameBoard(List<Player>) - Static method in class com.chess.backend.services.ChessboardService
create new Chessboard from Players object
initPlayers(String[]) - Static method in class com.chess.backend.services.PlayerService
initialize Players objects using their names
isBreakCastling() - Method in interface com.chess.backend.domain.models.IBoard
 
isCheck(Chessboard, Player) - Static method in class com.chess.backend.services.ChessboardService
Checks if a king of a given player can be captured be an enemy piece.

J

joinOnlineGame(JoinOnlineGameObject) - Method in class com.chess.backend.restController.controller.JoinOnlineGameController
Method that is called on a post request.
JoinOnlineGameController - Class in com.chess.backend.restController.controller
This class handles the API-call to create a new game.
JoinOnlineGameController(ChessGameService, GameRepository) - Constructor for class com.chess.backend.restController.controller.JoinOnlineGameController
 
JoinOnlineGameObject - Class in com.chess.backend.restController.objects
 
JoinOnlineGameObject() - Constructor for class com.chess.backend.restController.objects.JoinOnlineGameObject
 

K

KING - Enum constant in enum class com.chess.backend.gamemodel.constants.PieceType
 
knight(Chessboard, Piece, boolean, boolean, boolean, int, Position.Direction, Position.Direction) - Static method in class com.chess.backend.gamemodel.abstractmoves.MoveKnight
Generate concrete possible moves from a given piece and game context.
KNIGHT - Enum constant in enum class com.chess.backend.gamemodel.constants.PieceType
 

L

left(IBoard) - Method in class com.chess.backend.gamemodel.Position
Returns the position left to the current position.
left(Chessboard, Piece, boolean, boolean, boolean, int) - Static method in class com.chess.backend.gamemodel.abstractmoves.MoveLeft
Generate concrete possible moves from a given piece and game context.
LEFT - Enum constant in enum class com.chess.backend.gamemodel.Position.Direction
 
LONG_CASTLING - Enum constant in enum class com.chess.backend.gamemodel.constants.Castling
 

M

main(String[]) - Static method in class com.chess.backend.BackendApplication
 
move(Chessboard, int, int, int, int) - Static method in class com.chess.backend.services.ChessboardService
Apply move to chessboard.
Move - Class in com.chess.backend.gamemodel
Represents a concrete move of a piece with getters and setters for its fields.
Move(Square, Square, Square, Piece, Piece, Castling, boolean, Piece) - Constructor for class com.chess.backend.gamemodel.Move
 
MoveBackward - Class in com.chess.backend.gamemodel.abstractmoves
Represents the implementation of a move backward.
MoveBackward() - Constructor for class com.chess.backend.gamemodel.abstractmoves.MoveBackward
 
MoveDiagonal - Class in com.chess.backend.gamemodel.abstractmoves
Represents the implementation of a diagonal move.
MoveDiagonal() - Constructor for class com.chess.backend.gamemodel.abstractmoves.MoveDiagonal
 
MoveForward - Class in com.chess.backend.gamemodel.abstractmoves
Represents the implementation of a move forward.
MoveForward() - Constructor for class com.chess.backend.gamemodel.abstractmoves.MoveForward
 
MoveKnight - Class in com.chess.backend.gamemodel.abstractmoves
Represents the implementation of a knight move (every direction).
MoveKnight() - Constructor for class com.chess.backend.gamemodel.abstractmoves.MoveKnight
 
MoveLeft - Class in com.chess.backend.gamemodel.abstractmoves
Represents the implementation of a move to the left.
MoveLeft() - Constructor for class com.chess.backend.gamemodel.abstractmoves.MoveLeft
 
MoveOneBackward - Class in com.chess.backend.gamemodel.abstractmoves
Represents the implementation of a one-step move backward.
MoveOneBackward() - Constructor for class com.chess.backend.gamemodel.abstractmoves.MoveOneBackward
 
MoveOneDiagonal - Class in com.chess.backend.gamemodel.abstractmoves
Represents the implementation of a one-step move diagonal (every direction).
MoveOneDiagonal() - Constructor for class com.chess.backend.gamemodel.abstractmoves.MoveOneDiagonal
 
MoveOneForward - Class in com.chess.backend.gamemodel.abstractmoves
Represents the implementation of a one-step move forward.
MoveOneForward() - Constructor for class com.chess.backend.gamemodel.abstractmoves.MoveOneForward
 
MoveOneLeft - Class in com.chess.backend.gamemodel.abstractmoves
Represents the implementation of a one-step move to the left.
MoveOneLeft() - Constructor for class com.chess.backend.gamemodel.abstractmoves.MoveOneLeft
 
MoveOneRight - Class in com.chess.backend.gamemodel.abstractmoves
Represents the implementation of a one-step move to the right.
MoveOneRight() - Constructor for class com.chess.backend.gamemodel.abstractmoves.MoveOneRight
 
MovePawnCaptureBackward - Class in com.chess.backend.gamemodel.abstractmoves
Represents the implementation of a pawn capture move backward.
MovePawnCaptureBackward() - Constructor for class com.chess.backend.gamemodel.abstractmoves.MovePawnCaptureBackward
 
MovePawnCaptureForward - Class in com.chess.backend.gamemodel.abstractmoves
Represents the implementation of a pawn capture move forward.
MovePawnCaptureForward() - Constructor for class com.chess.backend.gamemodel.abstractmoves.MovePawnCaptureForward
 
MoveRequestController - Class in com.chess.backend.restController.controller
This class handles the API-call to get all possible moves for a piece.
MoveRequestController(MoveRequestService) - Constructor for class com.chess.backend.restController.controller.MoveRequestController
 
MoveRequestInputObject - Class in com.chess.backend.restController.objects
This class is created via API-Call of the MoveRequestController.
MoveRequestInputObject(int, int[]) - Constructor for class com.chess.backend.restController.objects.MoveRequestInputObject
 
MoveRequestOutputObject - Class in com.chess.backend.restController.objects
This class is send as a response from the API-Call of the MoveRequestController.
MoveRequestOutputObject(int[][]) - Constructor for class com.chess.backend.restController.objects.MoveRequestOutputObject
 
MoveRequestService - Class in com.chess.backend.restController.service
This class handles the call to get all possible moves for a chess piece.
MoveRequestService(ChessGameService) - Constructor for class com.chess.backend.restController.service.MoveRequestService
 
MoveRight - Class in com.chess.backend.gamemodel.abstractmoves
Represents the implementation of a move to the right.
MoveRight() - Constructor for class com.chess.backend.gamemodel.abstractmoves.MoveRight
 
Moves - Class in com.chess.backend.gamemodel
Class representing the players moves history.
MoveTwoBackward - Class in com.chess.backend.gamemodel.abstractmoves
Represents the implementation of a initial pawn two-step move backwards.
MoveTwoBackward() - Constructor for class com.chess.backend.gamemodel.abstractmoves.MoveTwoBackward
 
MoveTwoForward - Class in com.chess.backend.gamemodel.abstractmoves
Represents the implementation of a initial pawn two-step move backwards.
MoveTwoForward() - Constructor for class com.chess.backend.gamemodel.abstractmoves.MoveTwoForward
 

N

NEW_MOVE - Enum constant in enum class com.chess.backend.gamemodel.constants.Event
 
NEW_PLAYER_JOIN - Enum constant in enum class com.chess.backend.gamemodel.constants.Event
 
NewChessGameService - Class in com.chess.backend.restController.service
This class handles the call to create a new game.
NewChessGameService(ChessGameService, IGameRepository) - Constructor for class com.chess.backend.restController.service.NewChessGameService
 
NewGameController - Class in com.chess.backend.restController.controller
This class handles the API-call to create a new game.
NewGameController(NewOnlineGameService, INewGameService) - Constructor for class com.chess.backend.restController.controller.NewGameController
 
NewGameObject - Class in com.chess.backend.restController.objects
 
NewGameObject() - Constructor for class com.chess.backend.restController.objects.NewGameObject
 
NewOnlineGameService - Class in com.chess.backend.restController.service
This class handles the call to create a new game.
NewOnlineGameService(ChessGameService, GameRepository) - Constructor for class com.chess.backend.restController.service.NewOnlineGameService
 
NewPlayerObject - Class in com.chess.backend.restController.objects
This class is a simple player object for handling an API-Call.
NewPlayerObject() - Constructor for class com.chess.backend.restController.objects.NewPlayerObject
 
NewPlayersObject - Class in com.chess.backend.restController.objects
This class is created via the API-Call of NewGameController.
NewPlayersObject() - Constructor for class com.chess.backend.restController.objects.NewPlayersObject
 
NONE - Enum constant in enum class com.chess.backend.gamemodel.constants.Castling
 

O

OFFLINE - Enum constant in enum class com.chess.backend.gamemodel.constants.GameMode
 
ONLINE - Enum constant in enum class com.chess.backend.gamemodel.constants.GameMode
 

P

PAWN - Enum constant in enum class com.chess.backend.gamemodel.constants.PieceType
 
Piece - Class in com.chess.backend.gamemodel
Represents a piece.
Piece(PieceType, Player, boolean) - Constructor for class com.chess.backend.gamemodel.Piece
 
PieceType - Enum Class in com.chess.backend.gamemodel.constants
Represents all possible piece types and their respective symbols.
Player - Class in com.chess.backend.gamemodel
Class representing a player with name, color and id.
Player() - Constructor for class com.chess.backend.gamemodel.Player
 
Player(String, int) - Constructor for class com.chess.backend.gamemodel.Player
 
Player(String, Color) - Constructor for class com.chess.backend.gamemodel.Player
 
Player(String, Color, Integer) - Constructor for class com.chess.backend.gamemodel.Player
 
PLAYER_CHANGE - Enum constant in enum class com.chess.backend.gamemodel.constants.Event
 
PlayerService - Class in com.chess.backend.services
Servie to initalize the players object and
PlayerService() - Constructor for class com.chess.backend.services.PlayerService
 
Position - Class in com.chess.backend.gamemodel
Represents a position (x and y coordinates).
Position(int, int) - Constructor for class com.chess.backend.gamemodel.Position
 
Position.Direction - Enum Class in com.chess.backend.gamemodel
 
PROMOTE - Enum constant in enum class com.chess.backend.gamemodel.constants.Event
 

Q

QUEEN - Enum constant in enum class com.chess.backend.gamemodel.constants.PieceType
 

R

RED - Enum constant in enum class com.chess.backend.gamemodel.constants.Color
 
removeOtherPieceTypes(Chessboard, PieceType) - Static method in class com.chess.backend.services.ChessboardService
 
removePiece() - Method in class com.chess.backend.gamemodel.Square
Removes the piece from the square.
removePiece(int, int, ArrayList<ArrayList<Square>>) - Static method in class com.chess.backend.services.ChessboardService
private function that takes two positions, ie x,y and set piece in Square[x][y]
right(IBoard) - Method in class com.chess.backend.gamemodel.Position
Returns the position right to the current position.
right(Chessboard, Piece, boolean, boolean, boolean, int) - Static method in class com.chess.backend.gamemodel.abstractmoves.MoveRight
Generate concrete possible moves from a given piece and game context.
RIGHT - Enum constant in enum class com.chess.backend.gamemodel.Position.Direction
 
ROOK - Enum constant in enum class com.chess.backend.gamemodel.constants.PieceType
 

S

searchSquaresByPiece(ArrayList<ArrayList<Square>>, PieceType, Color, Player) - Static method in class com.chess.backend.services.ChessboardService
filter squares according to piece type, color or player
setActivePlayer(ChessGame, Player) - Static method in class com.chess.backend.services.ChessGameService
Helper method to set the active player and update all cannon pieces.
setActivePlayer(Player) - Method in interface com.chess.backend.domain.models.IGame
 
setBreakCastling(boolean) - Method in interface com.chess.backend.domain.models.IBoard
 
setChessboard(Chessboard) - Method in interface com.chess.backend.domain.models.IGame
 
setCommonPiecePlayer(Chessboard, PieceType, Player) - Static method in class com.chess.backend.services.ChessboardService
Sets one common player for all pieces of a given pieceType (e.g.
setGameID(int) - Method in class com.chess.backend.restController.objects.ExecutedMoveObject
 
setId(int) - Method in interface com.chess.backend.domain.models.IGame
 
setMoves(Moves) - Method in interface com.chess.backend.domain.models.IGame
 
setMoves_history(Moves) - Method in interface com.chess.backend.domain.models.IBoard
 
setNewPiecePosition(int[]) - Method in class com.chess.backend.restController.objects.ExecutedMoveObject
 
setNumberOfPlayers(int) - Method in interface com.chess.backend.domain.models.IBoard
 
setPiece(int, int, ArrayList<ArrayList<Square>>, Piece) - Static method in class com.chess.backend.services.ChessboardService
private function that takes two positions, ie x,y and set piece in Square[x][y]
setPiece(Piece) - Method in class com.chess.backend.gamemodel.Square
 
setPlayers(NewPlayerObject[]) - Method in interface com.chess.backend.domain.controllers.objects.INewPlayersObject
 
setPlayers(List<Player>) - Method in interface com.chess.backend.domain.models.IGame
 
setPreviousPiecePosition(int[]) - Method in class com.chess.backend.restController.objects.ExecutedMoveObject
 
setSquares(ArrayList<ArrayList<Square>>) - Method in interface com.chess.backend.domain.models.IBoard
 
shoot(Chessboard, Piece, boolean, boolean, boolean, int) - Static method in class com.chess.backend.gamemodel.abstractmoves.Shoot
Generate concrete possible moves from a given piece and game context.
Shoot - Class in com.chess.backend.gamemodel.abstractmoves
Represents the implementation of a cannon shoot.
SHORT_CASTLING - Enum constant in enum class com.chess.backend.gamemodel.constants.Castling
 
Square - Class in com.chess.backend.gamemodel
Represents a chessboard square.
Square(int, int, Piece) - Constructor for class com.chess.backend.gamemodel.Square
 
SquareObject - Class in com.chess.backend.restController.objects
This class represents one simple square of the chessboard (ChessboardObject).
SquareObject(String, int, String) - Constructor for class com.chess.backend.restController.objects.SquareObject
 
switchActive(ChessGame) - Static method in class com.chess.backend.services.ChessGameService
Method to switch active players after move

T

toString() - Method in interface com.chess.backend.domain.models.IBoard
 
toString() - Method in enum class com.chess.backend.gamemodel.constants.GameMode
 
toString() - Method in class com.chess.backend.gamemodel.Move
 
toString() - Method in class com.chess.backend.gamemodel.Piece
 
toString() - Method in class com.chess.backend.gamemodel.Position
 
toString() - Method in class com.chess.backend.gamemodel.Square
 

U

updateGame(Integer, ChessGame) - Method in interface com.chess.backend.domain.repository.IGameRepository
 
updateGame(Integer, ChessGame) - Method in class com.chess.backend.repository.GameRepository
 
updateGame(Integer, ChessGame) - Method in class com.chess.backend.repository.GameRepositoryMock
 
updateGame(Integer, ChessGame, List<EventObject>) - Method in interface com.chess.backend.domain.repository.IGameRepository
 
updateGame(Integer, ChessGame, List<EventObject>) - Method in class com.chess.backend.repository.GameRepository
 
updateGame(Integer, ChessGame, List<EventObject>) - Method in class com.chess.backend.repository.GameRepositoryMock
 

V

validateMove(int, int[], int[]) - Method in class com.chess.backend.services.ChessGameService
check if piece can move to the target position
valueOf(String) - Static method in enum class com.chess.backend.gamemodel.constants.Castling
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.chess.backend.gamemodel.constants.Color
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.chess.backend.gamemodel.constants.Event
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.chess.backend.gamemodel.constants.GameMode
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.chess.backend.gamemodel.constants.PieceType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.chess.backend.gamemodel.Position.Direction
Returns the enum constant of this class with the specified name.
values() - Static method in enum class com.chess.backend.gamemodel.constants.Castling
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.chess.backend.gamemodel.constants.Color
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.chess.backend.gamemodel.constants.Event
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.chess.backend.gamemodel.constants.GameMode
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.chess.backend.gamemodel.constants.PieceType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.chess.backend.gamemodel.Position.Direction
Returns an array containing the constants of this enum class, in the order they are declared.

W

WAZIR - Enum constant in enum class com.chess.backend.gamemodel.constants.PieceType
 
WHITE - Enum constant in enum class com.chess.backend.gamemodel.constants.Color
 
B C D E F G H I J K L M N O P Q R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form