public interface InteractableGame
| Modifier and Type | Method and Description | 
|---|---|
| ProgrammingCardDeck | getExtraCards()Gets extra cards necessary when the player has no program to lock | 
| GameState | getGameState()Gets the current state of the game | 
| ProgrammingCardDeck | getPlayerHand()Gets the hand of this player | 
| java.util.List<ProgrammingCard> | getProgram()Gets the program of this player | 
| int | getProgramSize()Gets the amount of cards the player can choose for their program | 
| boolean | getRobotPowerDown()Gets the power down status of the client playing this instance of the game | 
| java.lang.String | getWinningPlayerName()Gets the name of the player who won | 
| void | receiveAllPrograms(ProgramsContainerResponse programs)Continues turn when programs for all players are received from the server | 
| void | receiveStayInPowerDown(PowerDownContainerResponse powerDowns)Continues turn when stay in power down is received from all players | 
| void | runTurn()Starts a turn in the game | 
| void | setExtraCards(ProgrammingCardDeck extraCards)Sets extra cards necessary when the player has no program to lock | 
| void | setGameState(GameState gameState)Sets the state of the game | 
| void | setPlayerHand(ProgrammingCardDeck playerHand)Sets the hand of this player | 
| void | setProgram(java.util.List<ProgrammingCard> program)Sets the program of this player | 
| void | setWinningPlayerName(java.lang.String winningPlayerName)Sets the name of the player that won the game | 
GameState getGameState()
void setGameState(GameState gameState)
gameState - The new state of the gamejava.lang.String getWinningPlayerName()
void setWinningPlayerName(java.lang.String winningPlayerName)
winningPlayerName - The player winning the gamevoid receiveAllPrograms(ProgramsContainerResponse programs) throws java.lang.InterruptedException
programs - The programs container received from the serverjava.lang.InterruptedException - If interrupted during sleepvoid receiveStayInPowerDown(PowerDownContainerResponse powerDowns)
powerDowns - The power down container received from the serverProgrammingCardDeck getPlayerHand()
void setPlayerHand(ProgrammingCardDeck playerHand)
playerHand - The new hand of this playerProgrammingCardDeck getExtraCards()
void setExtraCards(ProgrammingCardDeck extraCards)
extraCards - The extra cards to useint getProgramSize()
java.util.List<ProgrammingCard> getProgram()
void setProgram(java.util.List<ProgrammingCard> program)
program - The program of this playervoid runTurn()
boolean getRobotPowerDown()