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 TypeMethodDescriptionvoidIGameRepository.createNewGame(Integer gameId, ChessGame game) voidIGameRepository.createNewGame(Integer gameId, ChessGame game, List<EventObject> events) voidIGameRepository.updateGame(Integer gameId, ChessGame game) voidIGameRepository.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 TypeMethodDescriptionvoidGameRepository.createNewGame(Integer gameId, ChessGame game) voidGameRepository.createNewGame(Integer gameId, ChessGame game, List<EventObject> events) voidGameRepositoryMock.createNewGame(Integer gameId, ChessGame game) voidGameRepositoryMock.createNewGame(Integer gameId, ChessGame game, List<EventObject> events) voidGameRepository.updateGame(Integer gameId, ChessGame game) voidGameRepository.updateGame(Integer gameId, ChessGame game, List<EventObject> events) voidGameRepositoryMock.updateGame(Integer gameId, ChessGame game) voidGameRepositoryMock.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 ChessGameChessGameService.createNewGame(String[] playerNames) create new GameReturns a game object by gameIDMethods in com.chess.backend.services with parameters of type ChessGameModifier and TypeMethodDescriptionstatic StringChessGameService.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 voidChessGameService.setActivePlayer(ChessGame chessGame, Player activePlayer) Helper method to set the active player and update all cannon pieces.static voidChessGameService.switchActive(ChessGame game) Method to switch active players after move