Class Game
- java.lang.Object
-
- edu.cnm.deepdive.dominionendpointtestspring.model.entity.Game
-
-
Constructor Summary
Constructors Constructor Description Game()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Date
getCreated()
GamePlayer
getCurrentPlayer()
GameState
getCurrentState()
java.util.List<GamePlayer>
getGamePlayers()
java.lang.Long
getId()
Turn
getLastTurn()
java.util.List<Turn>
getTurns()
java.util.Date
getUpdated()
java.lang.String
getWhoWins()
boolean
isLastPlayAccepted()
void
setCreated(java.util.Date created)
void
setCurrentGamePlayer(GamePlayer currentPlayer)
void
setCurrentState(GameState currentState)
void
setGamePlayers(java.util.List<GamePlayer> gamePlayers)
void
setId(java.lang.Long id)
void
setLastPlayAccepted(boolean lastPlayAccepted)
void
setTurns(java.util.List<Turn> turns)
void
setUpdated(java.util.Date updated)
void
setWhoWins(java.lang.String whoWins)
-
-
-
Method Detail
-
getCurrentState
public GameState getCurrentState()
- Specified by:
getCurrentState
in interfaceFlatGame
-
setCurrentState
public void setCurrentState(GameState currentState)
-
getCreated
public java.util.Date getCreated()
- Specified by:
getCreated
in interfaceFlatGame
-
getUpdated
@NonNull public java.util.Date getUpdated()
- Specified by:
getUpdated
in interfaceFlatGame
-
getCurrentPlayer
public GamePlayer getCurrentPlayer()
-
setCurrentGamePlayer
public void setCurrentGamePlayer(GamePlayer currentPlayer)
-
getGamePlayers
public java.util.List<GamePlayer> getGamePlayers()
-
getTurns
public java.util.List<Turn> getTurns()
-
getLastTurn
public Turn getLastTurn()
-
setId
public void setId(java.lang.Long id)
-
setCreated
public void setCreated(@NonNull java.util.Date created)
-
setUpdated
public void setUpdated(@NonNull java.util.Date updated)
-
setGamePlayers
public void setGamePlayers(java.util.List<GamePlayer> gamePlayers)
-
setTurns
public void setTurns(java.util.List<Turn> turns)
-
isLastPlayAccepted
public boolean isLastPlayAccepted()
-
setLastPlayAccepted
public void setLastPlayAccepted(boolean lastPlayAccepted)
-
getWhoWins
public java.lang.String getWhoWins()
-
setWhoWins
public void setWhoWins(java.lang.String whoWins)
-
-