Package it.polimi.ingsw.view
Class PlayerSend
java.lang.Object
it.polimi.ingsw.view.PlayerSend
- All Implemented Interfaces:
Serializable
class which represent the Player object sent with the network
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionthe name of the player currently having his turnthe board seen and used by this playerthe name of the chairman of the gameprotected boolean
protected boolean
protected boolean
the full chat between the players of the gameprotected ObjectInputStream
boolean
true iff the player is the chairman of this gamelist of the libraries of all the players in the gamethe personal library of this playerprotected Socket
the network mode chosen by the userint
number of players in this current gameprotected ObjectOutputStream
points achieved until now with the common objectives by all the other players: (name, points)int
points achieved until now with the common objectivesthe UI mode chosen by the user - not sure if necessary -
Constructor Summary
ConstructorsConstructorDescriptionPlayerSend
(Player p) copy constructor for the Player objectcopy constructor for the PlayerSend object -
Method Summary
-
Field Details
-
name
-
objective
-
librariesOfOtherPlayers
list of the libraries of all the players in the game -
board
the board seen and used by this player -
library
the personal library of this player -
isChairMan
public boolean isChairMantrue iff the player is the chairman of this game -
inStream
-
outStream
-
mySocket
-
fullChat
the full chat between the players of the game -
chairmanName
the name of the chairman of the game -
netMode
the network mode chosen by the user -
uiMode
the UI mode chosen by the user - not sure if necessary -
numPlayers
public int numPlayersnumber of players in this current game -
CO_1_Done
protected boolean CO_1_Done -
CO_2_Done
protected boolean CO_2_Done -
activeName
the name of the player currently having his turn -
pointsUntilNow
public int pointsUntilNowpoints achieved until now with the common objectives -
endGame
protected boolean endGame -
pointsMap
points achieved until now with the common objectives by all the other players: (name, points)
-
-
Constructor Details
-
PlayerSend
copy constructor for the Player object- Parameters:
p
- the Player object to copy
-
PlayerSend
copy constructor for the PlayerSend object- Parameters:
p
- the Player object to copy
-