Class PlayerSend

java.lang.Object
it.polimi.ingsw.view.PlayerSend
All Implemented Interfaces:
Serializable

public class PlayerSend extends Object implements Serializable
class which represent the Player object sent with the network
See Also:
  • Field Details

    • name

      public String name
    • objective

      public PrivateObjective objective
    • librariesOfOtherPlayers

      public ArrayList<Library> librariesOfOtherPlayers
      list of the libraries of all the players in the game
    • board

      public Board board
      the board seen and used by this player
    • library

      public Library library
      the personal library of this player
    • isChairMan

      public boolean isChairMan
      true iff the player is the chairman of this game
    • inStream

      protected transient ObjectInputStream inStream
    • outStream

      protected transient ObjectOutputStream outStream
    • mySocket

      protected transient Socket mySocket
    • fullChat

      public String fullChat
      the full chat between the players of the game
    • chairmanName

      public String chairmanName
      the name of the chairman of the game
    • netMode

      public NetMode netMode
      the network mode chosen by the user
    • uiMode

      public UIMode uiMode
      the UI mode chosen by the user - not sure if necessary
    • numPlayers

      public int numPlayers
      number of players in this current game
    • CO_1_Done

      protected boolean CO_1_Done
    • CO_2_Done

      protected boolean CO_2_Done
    • activeName

      public String activeName
      the name of the player currently having his turn
    • pointsUntilNow

      public int pointsUntilNow
      points achieved until now with the common objectives
    • endGame

      protected boolean endGame
    • pointsMap

      public HashMap<String,Integer> pointsMap
      points achieved until now with the common objectives by all the other players: (name, points)
  • Constructor Details

    • PlayerSend

      public PlayerSend(Player p)
      copy constructor for the Player object
      Parameters:
      p - the Player object to copy
    • PlayerSend

      public PlayerSend(PlayerSend p)
      copy constructor for the PlayerSend object
      Parameters:
      p - the Player object to copy