Package it.polimi.ingsw.Common
Interface ClientStatusInterface
- All Superinterfaces:
Remote
- All Known Implementing Classes:
ClientStatus
ClientStatus Interface
-
Method Summary
Modifier and TypeMethodDescriptiongetBoard()
Getter method for Game's boardGetter method for Game's Common Goal CardsGetter method for the current playerGetter method for Game's identifierGetter for Player's Move IntermediateGetter method for Player's nicknameGetter method for Player's Personal Goal Cardgetter method for Game's ScoreboardgetShelf()
Getter method for Player's shelfGetter method for Client Statusvoid
lifeline()
Naive KeepAlive implementation, used for disconnections managementvoid
setCards
(PersonalGoalCardInterface pgCard, List<CommonGoalCardInterface> cgCard) Aggregate setter for Game's and Player's cardsvoid
setCurrentPlayer
(String currentPlayer) Setter method for the current playervoid
setGameParameters
(BoardInterface board, ShelfInterface shelf, MoveIntermediateInterface mi) Aggregate setter for Game initial parametersvoid
setIdentifier
(String identifier) Setter method for Game's identifiervoid
void
setNickname
(String nickname) Setter method for Player's nicknamevoid
setter method for Game's Scoreboardvoid
boolean
Setter method for Client Status It makes the client evolve
-
Method Details
-
getStatus
Getter method for Client Status- Returns:
- Client's status
- Throws:
RemoteException
- related to RMI
-
setStatus
Setter method for Client Status It makes the client evolve- Parameters:
status
- Client's status- Returns:
- client-side validation
- Throws:
RemoteException
- related to RMI
-
getIdentifier
Getter method for Game's identifier- Returns:
- Game's identifier
- Throws:
RemoteException
- related to RMI
-
setIdentifier
Setter method for Game's identifier- Parameters:
identifier
- Game's identifier- Throws:
RemoteException
- related to RMI
-
getNickname
Getter method for Player's nickname- Returns:
- Player's nickname
- Throws:
RemoteException
- related to RMI
-
setNickname
Setter method for Player's nickname- Parameters:
nickname
- Player's nickname- Throws:
RemoteException
- related to RMI
-
setGameParameters
void setGameParameters(BoardInterface board, ShelfInterface shelf, MoveIntermediateInterface mi) throws RemoteException Aggregate setter for Game initial parameters- Parameters:
board
- Game's boardshelf
- Player's shelfmi
- Move Intermediate for the client- Throws:
RemoteException
- related to RMI
-
getBoard
Getter method for Game's board- Returns:
- Game's board
- Throws:
RemoteException
- related to RMI
-
getShelf
Getter method for Player's shelf- Returns:
- Player's shelf
- Throws:
RemoteException
- related to RMI
-
getPersonalGoalCard
Getter method for Player's Personal Goal Card- Returns:
- Player's Personal Goal Card
- Throws:
RemoteException
- related to RMI
-
getCommonGoalCard
Getter method for Game's Common Goal Cards- Returns:
- List of Game's Common Goal Cards
- Throws:
RemoteException
- related to RMI
-
setCards
void setCards(PersonalGoalCardInterface pgCard, List<CommonGoalCardInterface> cgCard) throws RemoteException Aggregate setter for Game's and Player's cards- Parameters:
pgCard
- Player's Personal Goal CardcgCard
- Game's Common Goal Card- Throws:
RemoteException
- related to RMI
-
getMoveIntermediate
Getter for Player's Move Intermediate- Returns:
- Player's Move Intermediate
- Throws:
RemoteException
- related to RMI
-
getCurrentPlayer
Getter method for the current player- Returns:
- used for View purposes
- Throws:
RemoteException
- related to RMI
-
setCurrentPlayer
Setter method for the current player- Parameters:
currentPlayer
- set by the Server for View purposes- Throws:
RemoteException
- related to RMI
-
getScoreBoard
getter method for Game's Scoreboard- Returns:
- used for View purposes
- Throws:
RemoteException
- related to RMI
-
setScoreBoard
setter method for Game's Scoreboard- Parameters:
sci
- Score Board Interface- Throws:
RemoteException
- related to RMI
-
getLastTurnScores
- Returns:
- Common Goal Cards achievement made in the last turn
- Throws:
RemoteException
- related to RMI
-
setLastTurnScores
- Parameters:
lts
- Common Goal Cards achievement made in the last turn- Throws:
RemoteException
- related to RMI
-
getScoreCards
- Returns:
- Player's ScoreCards
- Throws:
RemoteException
- related to RMI
-
setScoreCards
- Parameters:
sc
- Player's ScoreCards- Throws:
RemoteException
- related to RMI
-
lifeline
Naive KeepAlive implementation, used for disconnections management- Throws:
InterruptedException
- related to RMI ConnectionRemoteException
- related to RMI
-