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 Game
GameController. 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.Game
GameController. 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.Game
GameController. 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.Game
GameController. endPhase(org.springframework.security.core.Authentication authentication, int gameId)
This is used if the player prematurely ends a phase or turn.Game
GameController. get(long id, org.springframework.security.core.Authentication authentication)
The client pulls this on a timer automatically to refresh information about the game.Game
GameController. 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 Game
Card. getGame()
Game
GamePlayer. getGame()
Game
Play. getGame()
Game
Turn. getGame()
Methods in edu.cnm.deepdive.dominionendpointtestspring.model.entity with parameters of type Game Modifier and Type Method Description void
Card. setGame(Game game)
void
GamePlayer. setGame(Game game)
void
Play. setGame(Game game)
void
Turn. 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 Game
GameLogic. buyCard(java.lang.String cardType, Game game, Player player)
This method performs actions to buy a card.Game
GameLogic. discardForMilitia(Game game, Player player, java.util.List<java.lang.String> cardStrings)
This card performs the discarding functions when a player is attacked.Game
GameLogic. endPhase(Game game, Player player)
This method ends the current phase, called from GameController.Game
GameLogic. initializeGame(Game game, Player player1, Player player2)
This method sets up the initial conditions for a game.Game
GameLogic. 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.Game
GameLogic. 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 Game
GameLogic. buyCard(java.lang.String cardType, Game game, Player player)
This method performs actions to buy a card.Game
GameLogic. discardForMilitia(Game game, Player player, java.util.List<java.lang.String> cardStrings)
This card performs the discarding functions when a player is attacked.Game
GameLogic. endPhase(Game game, Player player)
This method ends the current phase, called from GameController.Turn
GameLogic. 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.Turn
GameLogic. getPreviousTurn(Game game)
This method gets the previous turn.Game
GameLogic. initializeGame(Game game, Player player1, Player player2)
This method sets up the initial conditions for a game.Game
GameLogic. 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.Game
GameLogic. 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 Game
GameStateInfo. getGame()
Methods in edu.cnm.deepdive.dominionendpointtestspring.state with parameters of type Game Modifier and Type Method Description void
GameStateInfo. 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 Game
FlatPlayerGamePlayer. getGame()
-