Serialized Form
-
Package it.polimi.ingsw.am13.client.chat
-
Exception Class it.polimi.ingsw.am13.client.chat.InvalidReceiversException
class InvalidReceiversException extends Exception implements Serializable
-
-
Package it.polimi.ingsw.am13.client.gamestate
-
Class it.polimi.ingsw.am13.client.gamestate.FieldState
class FieldState extends Object implements Serializable-
Serialized Fields
-
availableCoords
List<Coordinates> availableCoords
List of available coordinates where to place other cards during the game -
field
Map<Coordinates,
CardSidePlayableIF> field Map between coordinates and cards placed on them Once placed, a card cannot be removed
-
-
-
Class it.polimi.ingsw.am13.client.gamestate.GameState
class GameState extends Object implements Serializable-
Serialized Fields
-
commonObjectives
List<CardObjectiveIF> commonObjectives
The list of objectives that are common to all players Following game's rules, this should be always of size 2 -
currentPlayer
PlayerLobby currentPlayer
The current player in a turn-based phase (the one who must play or pick a card). Null if the game phase is different from IN_GAME or FINAL_PHASE -
firstPlayer
PlayerLobby firstPlayer
The first player (from which the rounds start) -
gameId
int gameId
Game ID for this game -
gameStatus
GameStatus gameStatus
The current game status -
pickables
List<CardPlayableIF> pickables
The list of cards that are visible to the player (the two tops aof the decks and the four cards that are drawable). Following game's rules, this should be always of size 6 -
players
Map<PlayerLobby,
PlayerState> players The players in the game, mapped via their player lobby -
turnsToEnd
int turnsToEnd
Number of turns to reach the end of the turn-based phase. -1 if FINAL_PHASE has not been reached yet -
winner
List<PlayerLobby> winner
Winner of the game, initially null
-
-
-
Class it.polimi.ingsw.am13.client.gamestate.PlayerState
class PlayerState extends Object implements Serializable-
Serialized Fields
-
field
FieldState field
Field of the player. It could be an empty field if the player has not played yet -
handObjective
CardObjectiveIF handObjective
Personal objective card of the player. Null if it has not been chosen yet. -
handPlayable
List<CardPlayableIF> handPlayable
List of (3 or 2) hand card of the player. Empty if the player has no card -
isConnected
boolean isConnected
Flag indicating if the player is currently connecting or not. It is set to true by default -
points
int points
Points of the players, initially 0 -
possibleHandObjectives
List<CardObjectiveIF> possibleHandObjectives
List of (2) possible objective card, from with the player must choose for their personal objective card to hold for the game. Null if they have not been set yet. -
starterCard
CardStarterIF starterCard
Starter card of the player. Null if it has not been set yet.
-
-
-
-
Package it.polimi.ingsw.am13.client.network.rmi
-
Class it.polimi.ingsw.am13.client.network.rmi.GameListenerClientRMI
class GameListenerClientRMI extends UnicastRemoteObject implements Serializable-
Serialized Fields
-
chat
Chat chat
-
networkHandler
NetworkHandlerRMI networkHandler
Handler of the network, which creates this listener -
player
PlayerLobby player
Player associated to this listener -
stateHandler
GameStateHandler stateHandler
Handler of the game's state -
view
View view
View the listener refers to
-
-
-
-
Package it.polimi.ingsw.am13.client.view.tui.menu
-
Package it.polimi.ingsw.am13.controller
-
Class it.polimi.ingsw.am13.controller.ListenerHandler
class ListenerHandler extends Object implements Serializable-
Serialized Fields
-
listeners
List<GameListener> listeners
Listeners handled by the class
-
-
-
Exception Class it.polimi.ingsw.am13.controller.LobbyException
class LobbyException extends Exception implements Serializable -
Class it.polimi.ingsw.am13.controller.Room
class Room extends ListenerHandler implements Serializable-
Serialized Fields
-
gameId
int gameId
GameId for the room, denoting a game yet not started or already started -
gameStarted
boolean gameStarted
Flag indicating if the game for this is started or not. It can change only once, when the room gets full for the first time -
nPlayersTarget
int nPlayersTarget
Target number of players to reach in order to start the game -
playersInGame
List<PlayerLobby> playersInGame
List of players that are in the game, null if the game has not started yet
-
-
-
-
Package it.polimi.ingsw.am13.model.card
-
Class it.polimi.ingsw.am13.model.card.Card
class Card extends Object implements Serializable -
Class it.polimi.ingsw.am13.model.card.CardGold
class CardGold extends CardPlayable implements Serializable -
Class it.polimi.ingsw.am13.model.card.CardObjective
class CardObjective extends Card implements Serializable-
Serialized Fields
-
front
CardSideObjectiveActive front
Active/front side of the card, where information about the points is stored.
-
-
-
Class it.polimi.ingsw.am13.model.card.CardPlayable
class CardPlayable extends Card implements Serializable-
Serialized Fields
-
back
CardSidePlayable back
Back (playable) side of this playable card -
front
CardSidePlayable front
Front (playable) side of this playable card
-
-
-
Class it.polimi.ingsw.am13.model.card.CardResource
class CardResource extends CardPlayable implements Serializable -
Class it.polimi.ingsw.am13.model.card.CardSideObjectiveActive
class CardSideObjectiveActive extends Object implements Serializable-
Serialized Fields
-
points
PointsObjective points
Information about the points guaranteed by the card this side is part of.
-
-
-
Class it.polimi.ingsw.am13.model.card.CardSidePlayable
class CardSidePlayable extends Object implements Serializable-
Serialized Fields
-
centerResources
List<Resource> centerResources
This possibly empty list contains the resources at the center of the card side -
color
Color color
It stores the color of this card -
corners
List<Corner> corners
It stores the 4 corners of the card side In order, they are: upper left, upper right, lower right, lower left -
id
String id
Unique id of the card: (r, g, s, o for type), number or 3 digits (in order of pdf). -
points
PointsPlayable points
It stores the information needed to calculate the points the player gets when playing this card side -
requirements
Map<Resource,
Integer> requirements It stores the resources needed to play this card side(it's empty if no resource is required) -
side
Side side
The side of the card this CardSide corresponds to
-
-
-
Class it.polimi.ingsw.am13.model.card.CardStarter
class CardStarter extends CardPlayable implements Serializable -
Class it.polimi.ingsw.am13.model.card.Coordinates
class Coordinates extends Object implements Serializable-
Serialized Fields
-
posX
int posX
Coordinate x of point/vector (horizontal axis) -
posY
int posY
Coordinate y of point/vector (vertical axis)
-
-
-
Class it.polimi.ingsw.am13.model.card.Corner
class Corner extends Object implements Serializable-
Serialized Fields
-
covered
boolean covered
This attribute represents whether the corner has been covered by another corner or not -
link
CardSidePlayable link
This attribute represents the card side that is played on or under this corner -
resource
Resource resource
This attribute represents the resource contained in this corner -
visibility
boolean visibility
This attribute represents whether the corner is visible or not
-
-
-
-
Package it.polimi.ingsw.am13.model.card.points
-
Class it.polimi.ingsw.am13.model.card.points.PointsCorner
class PointsCorner extends Object implements Serializable-
Serialized Fields
-
points
int points
Represents how many points the card gives for each corner it covers
-
-
-
Class it.polimi.ingsw.am13.model.card.points.PointsInstant
class PointsInstant extends Object implements Serializable-
Serialized Fields
-
points
int points
This variable represents how many points the card gives
-
-
-
Class it.polimi.ingsw.am13.model.card.points.PointsPattern
class PointsPattern extends Object implements Serializable-
Serialized Fields
-
color1
Color color1
Color of the upper card -
color2
Color color2
Color of the middle card -
color3
Color color3
Color of the bottom card -
points
int points
Represetns how many points the card gives for each complete non-intersecting pattern is present in field -
vec12
Coordinates vec12
Vector representing position of middle card with respect to upper card Mathmatically vec12 = (coordinates of middle card) - (coordinates of upper card) It can be only one among (-1,-1), (0,-1), (1,-1) -
vec13
Coordinates vec13
Vector representing position of bottom card with respect to upper card Mathematically vec13 = (coordinates of bottom card) - (coordinates of upper card) It can be only one among (-2,-2), (-1,-2), (1,-2), (2,-2)
-
-
-
Class it.polimi.ingsw.am13.model.card.points.PointsResource
class PointsResource extends Object implements Serializable-
Serialized Fields
-
points
int points
This variable represents the number of points this card gives for each resource -
resource
Resource resource
This variable represents the resource required to get points by playing this card
-
-
-
Class it.polimi.ingsw.am13.model.card.points.PointsSet
class PointsSet extends Object implements Serializable
-
-
Package it.polimi.ingsw.am13.model.exceptions
-
Exception Class it.polimi.ingsw.am13.model.exceptions.ConnectionException
class ConnectionException extends Exception implements Serializable -
Exception Class it.polimi.ingsw.am13.model.exceptions.GameStatusException
class GameStatusException extends ModelException implements Serializable -
Exception Class it.polimi.ingsw.am13.model.exceptions.InvalidCardCreationException
class InvalidCardCreationException extends ModelException implements Serializable -
Exception Class it.polimi.ingsw.am13.model.exceptions.InvalidChoiceException
class InvalidChoiceException extends ModelException implements Serializable -
Exception Class it.polimi.ingsw.am13.model.exceptions.InvalidCoordinatesException
class InvalidCoordinatesException extends ModelException implements Serializable -
Exception Class it.polimi.ingsw.am13.model.exceptions.InvalidDrawCardException
class InvalidDrawCardException extends ModelException implements Serializable -
Exception Class it.polimi.ingsw.am13.model.exceptions.InvalidPlayCardException
class InvalidPlayCardException extends ModelException implements Serializable -
Exception Class it.polimi.ingsw.am13.model.exceptions.InvalidPlayerException
class InvalidPlayerException extends ModelException implements Serializable -
Exception Class it.polimi.ingsw.am13.model.exceptions.InvalidPlayersNumberException
class InvalidPlayersNumberException extends Exception implements Serializable -
Exception Class it.polimi.ingsw.am13.model.exceptions.ModelException
class ModelException extends Exception implements Serializable -
Exception Class it.polimi.ingsw.am13.model.exceptions.PlayerHandException
class PlayerHandException extends ModelException implements Serializable -
Exception Class it.polimi.ingsw.am13.model.exceptions.RequirementsNotMetException
class RequirementsNotMetException extends ModelException implements Serializable -
Exception Class it.polimi.ingsw.am13.model.exceptions.VariableAlreadySetException
class VariableAlreadySetException extends ModelException implements Serializable
-
-
Package it.polimi.ingsw.am13.model.player
-
Class it.polimi.ingsw.am13.model.player.Field
class Field extends Object implements Serializable-
Serialized Fields
-
field
Map<Coordinates,
CardSidePlayable> field Description of the player's card positions using a sparse matrix representation. They are stored in a Map in the form of (Coordinates, CardSidePlayable) key-value pair. -
resources
Map<Resource,
Integer> resources Resource counters stored in a Map in the form of (Resource, count) key-value pair. Please note that 'NO_RESOURCE' resources are tracked too.
-
-
-
Class it.polimi.ingsw.am13.model.player.Player
class Player extends Object implements Serializable-
Serialized Fields
-
field
Field field
Player's field which represents the positioning of his played cards. -
handCards
List<CardPlayable> handCards
Player's hand of cards, which could be Gold cards or Resource cards. -
isConnected
boolean isConnected
Whether a player is currently connected or not (for the corresponding Advanced Function) -
objectivePoints
int objectivePoints
The points of the player that are given by objective cards. They are calculated at the end and are only used to determine the winner when they both have the same total points. -
personalObjective
CardObjective personalObjective
Player's personal objective. It affects only player's points when the game ends. -
playerLobby
PlayerLobby playerLobby
Player decontextualized from game. It stores nickname and token chosen by the player -
points
int points
Player's points counter. Initialized with 0 -
possiblePersonalObjectives
List<CardObjective> possiblePersonalObjectives
The two objective cards among which the player can choose his personal objective. They can't change once they have been set. -
startCard
CardStarter startCard
Player's starter card which has been drawn to him. It can't change once it has been set.
-
-
-
Class it.polimi.ingsw.am13.model.player.PlayerLobby
class PlayerLobby extends Object implements Serializable -
Class it.polimi.ingsw.am13.model.player.Token
class Token extends Object implements Serializable-
Serialized Fields
-
color
ColorToken color
Color of the token
-
-
-
-
Package it.polimi.ingsw.am13.network.rmi
-
Class it.polimi.ingsw.am13.network.rmi.GameControllerRMI
class GameControllerRMI extends UnicastRemoteObject implements Serializable-
Serialized Fields
-
gameController
GameController gameController
Wrapped gameController -
player
PlayerLobby player
-
-
-
Class it.polimi.ingsw.am13.network.rmi.GameListenerServerRMI
class GameListenerServerRMI extends Object implements Serializable-
Serialized Fields
-
ping
long ping
Long representing the last time the ping was updated -
player
PlayerLobby player
Players associated to this game listener
-
-
-
Class it.polimi.ingsw.am13.network.rmi.LobbyRMI
class LobbyRMI extends UnicastRemoteObject implements Serializable-
Serialized Fields
-
lobby
Lobby lobby
Stored instance of lobby (only for not to keep callingLobby.getInstance()
) -
mapLis
Map<PlayerLobby,
GameListenerServerRMI> mapLis Map between players and their corresponding listeners. The listeners are specific for the RMI connection. Hence note that these are only part of the clients, in particular those who chose to communicate via RMI
-
-
-
-
Package it.polimi.ingsw.am13.network.socket
-
Class it.polimi.ingsw.am13.network.socket.GameListenerServerSocket
class GameListenerServerSocket extends Object implements Serializable-
Serialized Fields
-
ping
Long ping
The ping time of the client. -
player
PlayerLobby player
The player associated with this listener
-
-
-
-
Package it.polimi.ingsw.am13.network.socket.message
-
Class it.polimi.ingsw.am13.network.socket.message.Message
class Message extends Object implements Serializable
-
-
Package it.polimi.ingsw.am13.network.socket.message.command
-
Class it.polimi.ingsw.am13.network.socket.message.command.MsgCommand
class MsgCommand extends Message implements Serializable -
Class it.polimi.ingsw.am13.network.socket.message.command.MsgCommandChat
class MsgCommandChat extends MsgCommand implements Serializable-
Serialized Fields
-
receivers
List<PlayerLobby> receivers
The receivers of the message -
text
String text
The text of the message
-
-
-
Class it.polimi.ingsw.am13.network.socket.message.command.MsgCommandChoosePersonalObjective
class MsgCommandChoosePersonalObjective extends MsgCommand implements Serializable-
Serialized Fields
-
card
CardObjectiveIF card
The chosen personal objective
-
-
-
Class it.polimi.ingsw.am13.network.socket.message.command.MsgCommandCreateRoom
class MsgCommandCreateRoom extends MsgCommand implements Serializable -
Class it.polimi.ingsw.am13.network.socket.message.command.MsgCommandGetRooms
class MsgCommandGetRooms extends MsgCommand implements Serializable -
Class it.polimi.ingsw.am13.network.socket.message.command.MsgCommandJoinRoom
class MsgCommandJoinRoom extends MsgCommand implements Serializable -
Class it.polimi.ingsw.am13.network.socket.message.command.MsgCommandLeaveRoom
class MsgCommandLeaveRoom extends MsgCommand implements Serializable -
Class it.polimi.ingsw.am13.network.socket.message.command.MsgCommandPickCard
class MsgCommandPickCard extends MsgCommand implements Serializable-
Serialized Fields
-
card
CardPlayableIF card
The card that the player wants to pick
-
-
-
Class it.polimi.ingsw.am13.network.socket.message.command.MsgCommandPing
class MsgCommandPing extends MsgCommand implements Serializable -
Class it.polimi.ingsw.am13.network.socket.message.command.MsgCommandPlayCard
class MsgCommandPlayCard extends MsgCommand implements Serializable-
Serialized Fields
-
card
CardPlayableIF card
The card the player wants to play -
coords
Coordinates coords
The coordinates in the field where the card should be played -
side
Side side
The side on which the card should be played
-
-
-
Class it.polimi.ingsw.am13.network.socket.message.command.MsgCommandPlayStarter
class MsgCommandPlayStarter extends MsgCommand implements Serializable-
Serialized Fields
-
side
Side side
The side on which the starter card should be played
-
-
-
Class it.polimi.ingsw.am13.network.socket.message.command.MsgCommandReconnectGame
class MsgCommandReconnectGame extends MsgCommand implements Serializable
-
-
Package it.polimi.ingsw.am13.network.socket.message.response
-
Class it.polimi.ingsw.am13.network.socket.message.response.MsgResponse
class MsgResponse extends Message implements Serializable-
Serialized Fields
-
type
String type
The type of the response, which is useful to associate it to the corresponding request
-
-
-
Class it.polimi.ingsw.am13.network.socket.message.response.MsgResponseChat
class MsgResponseChat extends MsgResponse implements Serializable-
Serialized Fields
-
receivers
List<PlayerLobby> receivers
The receivers of the message -
sender
PlayerLobby sender
The sender of the message -
text
String text
The content of the message that should be sent
-
-
-
Class it.polimi.ingsw.am13.network.socket.message.response.MsgResponseChosenPersonalObjective
class MsgResponseChosenPersonalObjective extends MsgResponse implements Serializable-
Serialized Fields
-
chosenObjective
CardObjectiveIF chosenObjective
The chosen personal objective -
player
PlayerLobby player
The player that has chosen the personal objective
-
-
-
Class it.polimi.ingsw.am13.network.socket.message.response.MsgResponseEndGame
class MsgResponseEndGame extends MsgResponse implements Serializable -
Class it.polimi.ingsw.am13.network.socket.message.response.MsgResponseError
class MsgResponseError extends MsgResponse implements Serializable-
Serialized Fields
-
exception
Exception exception
The exception that has been thrown
-
-
-
Class it.polimi.ingsw.am13.network.socket.message.response.MsgResponseFinalPhase
class MsgResponseFinalPhase extends MsgResponse implements Serializable-
Serialized Fields
-
turnsToEnd
int turnsToEnd
The number of turns left before the end of the game
-
-
-
Class it.polimi.ingsw.am13.network.socket.message.response.MsgResponseGetRooms
class MsgResponseGetRooms extends MsgResponse implements Serializable -
Class it.polimi.ingsw.am13.network.socket.message.response.MsgResponseInGame
class MsgResponseInGame extends MsgResponse implements Serializable -
Class it.polimi.ingsw.am13.network.socket.message.response.MsgResponseNextTurn
class MsgResponseNextTurn extends MsgResponse implements Serializable-
Serialized Fields
-
player
PlayerLobby player
The player that has to play in the next turn
-
-
-
Class it.polimi.ingsw.am13.network.socket.message.response.MsgResponsePickedCard
class MsgResponsePickedCard extends MsgResponse implements Serializable-
Serialized Fields
-
pickedCard
CardPlayableIF pickedCard
The card that has been picked. -
player
PlayerLobby player
The player that has picked a card -
updatedVisibleCards
List<? extends CardPlayableIF> updatedVisibleCards
The list of cards that are visible to the player (the two tops of the decks and the four cards that are drawable)
-
-
-
Class it.polimi.ingsw.am13.network.socket.message.response.MsgResponsePing
class MsgResponsePing extends MsgResponse implements Serializable -
Class it.polimi.ingsw.am13.network.socket.message.response.MsgResponsePlayedCard
class MsgResponsePlayedCard extends MsgResponse implements Serializable-
Serialized Fields
-
availableCoordinates
List<Coordinates> availableCoordinates
The list of coordinates that are available after playing the card -
cardPlayer
CardPlayableIF cardPlayer
The card that has been played -
coordinates
Coordinates coordinates
The coordinates at which the card that has been played -
player
PlayerLobby player
The player that has played a card -
points
Integer points
The points that the player has earned by playing the card
-
-
-
Class it.polimi.ingsw.am13.network.socket.message.response.MsgResponsePlayedStarter
class MsgResponsePlayedStarter extends MsgResponse implements Serializable-
Serialized Fields
-
availableCoords
List<Coordinates> availableCoords
The list of coordinates that are available after playing the starter -
player
PlayerLobby player
The player that has played a starter -
starter
CardStarterIF starter
The starter that has been played
-
-
-
Class it.polimi.ingsw.am13.network.socket.message.response.MsgResponsePlayerDisconnected
class MsgResponsePlayerDisconnected extends MsgResponse implements Serializable-
Serialized Fields
-
player
PlayerLobby player
The player that has disconnected
-
-
-
Class it.polimi.ingsw.am13.network.socket.message.response.MsgResponsePlayerJoinedRoom
class MsgResponsePlayerJoinedRoom extends MsgResponse implements Serializable-
Serialized Fields
-
player
PlayerLobby player
Player who joined the room
-
-
-
Class it.polimi.ingsw.am13.network.socket.message.response.MsgResponsePlayerLeftRoom
class MsgResponsePlayerLeftRoom extends MsgResponse implements Serializable-
Serialized Fields
-
player
PlayerLobby player
Player who left the room
-
-
-
Class it.polimi.ingsw.am13.network.socket.message.response.MsgResponsePlayerReconnected
class MsgResponsePlayerReconnected extends MsgResponse implements Serializable-
Serialized Fields
-
player
PlayerLobby player
The player that has reconnected
-
-
-
Class it.polimi.ingsw.am13.network.socket.message.response.MsgResponsePointsCalculated
class MsgResponsePointsCalculated extends MsgResponse implements Serializable-
Serialized Fields
-
pointsMap
Map<PlayerLobby,
Integer> pointsMap The points calculated
-
-
-
Class it.polimi.ingsw.am13.network.socket.message.response.MsgResponseStartGame
class MsgResponseStartGame extends MsgResponse implements Serializable-
Serialized Fields
-
gameState
GameState gameState
The game initial game state
-
-
-
Class it.polimi.ingsw.am13.network.socket.message.response.MsgResponseUpdateGameState
class MsgResponseUpdateGameState extends MsgResponse implements Serializable-
Serialized Fields
-
gameState
GameState gameState
The updated game state -
player
PlayerLobby player
Player who wants to reconnect to an already started match
-
-
-
Class it.polimi.ingsw.am13.network.socket.message.response.MsgResponseWinner
class MsgResponseWinner extends MsgResponse implements Serializable-
Serialized Fields
-
players
List<PlayerLobby> players
The list of players of the game, one of which has won the game
-
-
-