Uses of Class
com.chess.backend.gamemodel.ChessGame
Packages that use ChessGame
Package
Description
-
Uses of ChessGame in com.chess.backend.domain.repository
Methods in com.chess.backend.domain.repository that return ChessGameMethods in com.chess.backend.domain.repository with parameters of type ChessGameModifier and TypeMethodDescriptionvoid
IGameRepository.createNewGame
(Integer gameId, ChessGame game) void
IGameRepository.createNewGame
(Integer gameId, ChessGame game, List<EventObject> events) void
IGameRepository.updateGame
(Integer gameId, ChessGame game) void
IGameRepository.updateGame
(Integer gameId, ChessGame game, List<EventObject> events) -
Uses of ChessGame in com.chess.backend.repository
Methods in com.chess.backend.repository that return ChessGameModifier and TypeMethodDescriptionMethods in com.chess.backend.repository with parameters of type ChessGameModifier and TypeMethodDescriptionvoid
GameRepository.createNewGame
(Integer gameId, ChessGame game) void
GameRepository.createNewGame
(Integer gameId, ChessGame game, List<EventObject> events) void
GameRepositoryMock.createNewGame
(Integer gameId, ChessGame game) void
GameRepositoryMock.createNewGame
(Integer gameId, ChessGame game, List<EventObject> events) void
GameRepository.updateGame
(Integer gameId, ChessGame game) void
GameRepository.updateGame
(Integer gameId, ChessGame game, List<EventObject> events) void
GameRepositoryMock.updateGame
(Integer gameId, ChessGame game) void
GameRepositoryMock.updateGame
(Integer gameId, ChessGame game, List<EventObject> events) -
Uses of ChessGame in com.chess.backend.services
Methods in com.chess.backend.services that return ChessGameModifier and TypeMethodDescriptionstatic ChessGame
ChessGameService.createNewGame
(String[] playerNames) create new GameReturns a game object by gameIDMethods in com.chess.backend.services with parameters of type ChessGameModifier and TypeMethodDescriptionstatic String
ChessGameService.getActivePlayerName
(ChessGame game) Get the name of the active player.ChessGameService.getAllSquaresFromChessboard
(ChessGame game) Returns the ChessBoard of a game objectint[][]
ChessGameService.getPossibleMoves
(ChessGame game, int[] piecePosition) returns possible moves for a piece position return value looks like that [[x,y], [2,2], [2,3], [3,3]]static void
ChessGameService.setActivePlayer
(ChessGame chessGame, Player activePlayer) Helper method to set the active player and update all cannon pieces.static void
ChessGameService.switchActive
(ChessGame game) Method to switch active players after move