Uses of Class
edu.cnm.deepdive.dominionendpointtestspring.model.entity.Game
-
-
Uses of Game in edu.cnm.deepdive.dominionendpointtestspring.controller
Methods in edu.cnm.deepdive.dominionendpointtestspring.controller that return Game Modifier and Type Method Description GameGameController. buyCard(org.springframework.security.core.Authentication authentication, int gameId, java.lang.String cardName)Similar to the doaction method, players can post the card they want to buy.GameGameController. discardCard(org.springframework.security.core.Authentication authentication, int gameId, java.util.List<java.lang.String> cardNames)When a player is attacked, they have to discard a few cards before they can proceed.GameGameController. doAction(org.springframework.security.core.Authentication authentication, int gameId, java.lang.String cardName, java.util.List<java.lang.String> cards)This is a method that the user calls to do an action, with or without cards.GameGameController. endPhase(org.springframework.security.core.Authentication authentication, int gameId)This is used if the player prematurely ends a phase or turn.GameGameController. get(long id, org.springframework.security.core.Authentication authentication)The client pulls this on a timer automatically to refresh information about the game.GameGameController. joinGame(org.springframework.security.core.Authentication authentication)Starts new game. -
Uses of Game in edu.cnm.deepdive.dominionendpointtestspring.model.dao
Methods in edu.cnm.deepdive.dominionendpointtestspring.model.dao that return types with arguments of type Game Modifier and Type Method Description java.util.Optional<Game>GameRepository. findByIdAndPlayer(long gameId, long playerId)java.util.Optional<Game>GameRepository. findFirstByCurrentState(GameState state)Methods in edu.cnm.deepdive.dominionendpointtestspring.model.dao with parameters of type Game Modifier and Type Method Description java.util.Optional<java.util.List<Play>>PlayRepository. getAllByGameAndPlayerAndTurn(Game game, Player player, Turn turn)java.util.Optional<java.util.List<Play>>PlayRepository. getAllByGameAndTurn(Game game, Turn previousTurn)java.util.Optional<java.util.List<Turn>>TurnRepository. getAllByGameOrderByIdDesc(Game game) -
Uses of Game in edu.cnm.deepdive.dominionendpointtestspring.model.entity
Methods in edu.cnm.deepdive.dominionendpointtestspring.model.entity that return Game Modifier and Type Method Description GameCard. getGame()GameGamePlayer. getGame()GamePlay. getGame()GameTurn. getGame()Methods in edu.cnm.deepdive.dominionendpointtestspring.model.entity with parameters of type Game Modifier and Type Method Description voidCard. setGame(Game game)voidGamePlayer. setGame(Game game)voidPlay. setGame(Game game)voidTurn. setGame(Game game)Constructors in edu.cnm.deepdive.dominionendpointtestspring.model.entity with parameters of type Game Constructor Description Turn(Game game, Player player) -
Uses of Game in edu.cnm.deepdive.dominionendpointtestspring.service
Methods in edu.cnm.deepdive.dominionendpointtestspring.service that return Game Modifier and Type Method Description GameGameLogic. buyCard(java.lang.String cardType, Game game, Player player)This method performs actions to buy a card.GameGameLogic. discardForMilitia(Game game, Player player, java.util.List<java.lang.String> cardStrings)This card performs the discarding functions when a player is attacked.GameGameLogic. endPhase(Game game, Player player)This method ends the current phase, called from GameController.GameGameLogic. initializeGame(Game game, Player player1, Player player2)This method sets up the initial conditions for a game.GameGameLogic. playCard(java.lang.String cardType, Game game, Player player)This is an overload of the other playCard method which functions if no additional cards have been passed in as arguments.GameGameLogic. playCard(java.lang.String cardType, Game game, Player player, java.util.ArrayList<java.lang.String> cardStrings)This method plays a card.Methods in edu.cnm.deepdive.dominionendpointtestspring.service with parameters of type Game Modifier and Type Method Description GameGameLogic. buyCard(java.lang.String cardType, Game game, Player player)This method performs actions to buy a card.GameGameLogic. discardForMilitia(Game game, Player player, java.util.List<java.lang.String> cardStrings)This card performs the discarding functions when a player is attacked.GameGameLogic. endPhase(Game game, Player player)This method ends the current phase, called from GameController.TurnGameLogic. getCurrentTurn(Game game)This method gets the current turn.java.util.List<java.lang.String>GameLogic. getListOfPlaysStrings(Game game)This returns a list of Strings describing the plays from last turn.TurnGameLogic. getPreviousTurn(Game game)This method gets the previous turn.GameGameLogic. initializeGame(Game game, Player player1, Player player2)This method sets up the initial conditions for a game.GameGameLogic. playCard(java.lang.String cardType, Game game, Player player)This is an overload of the other playCard method which functions if no additional cards have been passed in as arguments.GameGameLogic. playCard(java.lang.String cardType, Game game, Player player, java.util.ArrayList<java.lang.String> cardStrings)This method plays a card. -
Uses of Game in edu.cnm.deepdive.dominionendpointtestspring.state
Methods in edu.cnm.deepdive.dominionendpointtestspring.state that return Game Modifier and Type Method Description GameGameStateInfo. getGame()Methods in edu.cnm.deepdive.dominionendpointtestspring.state with parameters of type Game Modifier and Type Method Description voidGameStateInfo. setGame(Game game)Constructors in edu.cnm.deepdive.dominionendpointtestspring.state with parameters of type Game Constructor Description GameStateInfo(Game game, Turn turn, Player requestingPlayer, Player activePlayer, GameState gameState)GameStateInfo(Game game, Turn turn, Player player, GameState gameState) -
Uses of Game in edu.cnm.deepdive.dominionendpointtestspring.view
Methods in edu.cnm.deepdive.dominionendpointtestspring.view that return Game Modifier and Type Method Description GameFlatPlayerGamePlayer. getGame()
-