Uses of Class
soc.game.SOCPlayer

Packages that use SOCPlayer
soc.client   
soc.game   
soc.robot   
soc.server   
 

Uses of SOCPlayer in soc.client
 

Fields in soc.client declared as SOCPlayer
protected  SOCPlayer SOCHandPanel.player
           
(package private)  SOCPlayer SOCBuildingPanel.player
          Client's player data.
private  SOCPlayer SOCBoardPanel.player
          The player that is using this interface
private  SOCPlayer SOCBoardPanel.otherPlayer
          When in "consider" mode, this is the player we're talking to
 

Methods in soc.client that return SOCPlayer
 SOCPlayer SOCHandPanel.getPlayer()
           
 

Methods in soc.client with parameters of type SOCPlayer
 void SOCPlayerInterface.updateLongestLargest(boolean isRoadNotArmy, SOCPlayer oldp, SOCPlayer newp)
          The game's longest road or largest army may have changed.
 void SOCPlayerClient.moveRobber(SOCGame ga, SOCPlayer pl, int coord)
          the player wants to move the robber
protected  void SOCHandPanel.creation(SOCPlayerInterface pi, SOCPlayer pl, boolean in)
          Stuff to do when a SOCHandPanel is created.
static void SOCDisplaylessPlayerClient.handlePLAYERELEMENT_numPieces(SOCPlayerElement mes, SOCPlayer pl, int pieceType)
          Update a player's amount of a playing piece, for SOCDisplaylessPlayerClient.handlePLAYERELEMENT(SOCPlayerElement).
static void SOCDisplaylessPlayerClient.handlePLAYERELEMENT_numKnights(SOCPlayerElement mes, SOCPlayer pl, SOCGame ga)
          Update a player's amount of knights, and game's largest army, for SOCDisplaylessPlayerClient.handlePLAYERELEMENT(SOCPlayerElement).
static void SOCDisplaylessPlayerClient.handlePLAYERELEMENT_numRsrc(SOCPlayerElement mes, SOCPlayer pl, int rtype)
          Update a player's amount of a resource, for SOCDisplaylessPlayerClient.handlePLAYERELEMENT(SOCPlayerElement).
 void SOCDisplaylessPlayerClient.moveRobber(SOCGame ga, SOCPlayer pl, int coord)
          the player wants to move the robber
 void SOCBoardPanel.setOtherPlayer(SOCPlayer op)
          set the other player
 

Constructors in soc.client with parameters of type SOCPlayer
SOCHandPanel(SOCPlayerInterface pi, SOCPlayer pl, boolean in)
          make a new hand panel
SOCHandPanel(SOCPlayerInterface pi, SOCPlayer pl)
          make a new hand panel
 

Uses of SOCPlayer in soc.game
 

Fields in soc.game declared as SOCPlayer
protected  SOCPlayer SOCPlayingPiece.player
          The player who owns this piece
(package private)  SOCPlayer SOCOldLRStats.playerWithLR
           
private  SOCPlayer[] SOCGame.players
          the players; never contains a null element, use SOCGame.isSeatVacant(int) to see if a position is occupied.
 

Methods in soc.game that return SOCPlayer
 SOCPlayer SOCPlayingPiece.getPlayer()
           
 SOCPlayer SOCPlayer.copy()
           
 SOCPlayer SOCGame.getPlayer(int pn)
           
 SOCPlayer SOCGame.getPlayer(java.lang.String nn)
           
 SOCPlayer[] SOCGame.getPlayers()
           
 SOCPlayer SOCGame.getPlayerWithLargestArmy()
           
 SOCPlayer SOCGame.getPlayerWithLongestRoad()
           
 SOCPlayer SOCGame.getPlayerWithWin()
          Find the player who was declared winner at end of game.
 

Methods in soc.game with parameters of type SOCPlayer
protected  void SOCGame.setPlayer(int pn, SOCPlayer pl)
          set the data for a player
 void SOCGame.setPlayerWithLargestArmy(SOCPlayer pl)
          set the player with the largest army
 void SOCGame.setPlayerWithLongestRoad(SOCPlayer pl)
          set the player with the longest road
 java.lang.String SOCGame.gameOverMessageToPlayer(SOCPlayer pl)
          If game is over, formulate a message to tell a player.
 SOCResourceSet SOCGame.getResourcesGainedFromRoll(SOCPlayer player, int roll)
          figure out what resources a player would get on a given roll
 

Constructors in soc.game with parameters of type SOCPlayer
SOCSettlement(SOCPlayer pl, int co)
          Make a new settlement
SOCRoad(SOCPlayer pl, int co)
          Make a new road
SOCPlayer(SOCPlayer player)
          create a copy of the player
SOCCity(SOCPlayer pl, int co)
          Make a new city
 

Uses of SOCPlayer in soc.robot
 

Fields in soc.robot declared as SOCPlayer
protected  SOCPlayer SOCRobotNegotiator.ourPlayerData
           
protected  SOCPlayer SOCRobotDM.ourPlayerData
           
protected  SOCPlayer SOCRobotBrain.ourPlayerData
          Our player data
protected  SOCPlayer SOCRobotBrain.dummyCancelPlayerData
          Dummy player for cancelling bad placements
protected  SOCPlayer SOCPossiblePiece.player
          The player who owns this piece
protected  SOCPlayer SOCPlayerTracker.player
           
protected  SOCPlayer SOCPlayerAction.player
          The player who owns this piece
(package private)  SOCPlayer SOCBuildPossibility.player
           
 

Methods in soc.robot that return SOCPlayer
 SOCPlayer SOCRobotBrain.getOurPlayerData()
           
 SOCPlayer SOCPossiblePiece.getPlayer()
           
 SOCPlayer SOCPlayerTracker.getPlayer()
           
 SOCPlayer SOCPlayerAction.getPlayer()
           
 SOCPlayer SOCBuildPossibility.getPlayer()
           
 

Methods in soc.robot with parameters of type SOCPlayer
protected  int SOCRobotNegotiator.getETAToTargetResources(SOCPlayer player, SOCResourceSet targetResources, SOCResourceSet giveSet, SOCResourceSet getSet, SOCBuildingSpeedEstimate estimate)
          another aux function this one returns the number of rolls until we reach the target given a possible offer
protected  void SOCRobotBrain.handlePLAYERELEMENT_numRsrc(SOCPlayerElement mes, SOCPlayer pl, int rtype, java.lang.String rtypeStr)
          /** Update a player's amount of a resource.
protected  void SOCRobotBrain.bestSpotForNumbers(java.util.Hashtable nodes, SOCPlayer player, int weight)
          Takes a table of nodes and adds a weighted score to each node score in the table.
 void SOCPlayerTracker.expandRoad(SOCPossibleRoad targetRoad, SOCPlayer player, SOCPlayer dummy, java.util.HashMap trackers, int level)
          Expand a possible road to see what this road makes possible
 void SOCPlayerTracker.updateLRPotential(SOCPossibleRoad posRoad, SOCPlayer dummy, SOCRoad dummyRoad, int lrLength, int level)
          update the potential LR value of a possible road by placing dummy roads and calculating LR
 

Constructors in soc.robot with parameters of type SOCPlayer
SOCRobotDM(SOCRobotParameters params, java.util.HashMap pt, SOCPlayerTracker opt, SOCPlayer opd, java.util.Stack bp)
          constructor this is if you don't want to use a brain
SOCPossibleSettlement(SOCPlayer pl, int co, java.util.Vector nr)
          constructor
SOCPossibleRoad(SOCPlayer pl, int co, java.util.Vector nr)
          constructor
SOCPossibleCity(SOCPlayer pl, int co)
          constructor
SOCPossibleCard(SOCPlayer pl, int et)
          constructor
SOCPlayerTracker(SOCPlayer pl, SOCRobotBrain br)
          constructor
SOCPlayerAction(int type, SOCPlayer pl, int co)
          constructor
SOCBuildPossibility(SOCPlayingPiece pi, int sc, int[] bs, int et, int pr, SOCPlayer pl)
          this is a constructor
SOCBuildPossibility(SOCPlayingPiece pi, int sc, int[] bs, int et, int pr, SOCPlayer pl, int fr)
          this is a constructor for when you are using a road building card
SOCBuildPossibility(int sc, int[] bs, int et, int pr, SOCPlayer pl)
          this is a constructor for buying a dev card
SOCBuildPossibility(int dt, int sc, int[] bs, int et, int pr, SOCPlayer pl)
          this is a constructor for PLAYING a dev card
 

Uses of SOCPlayer in soc.server
 

Methods in soc.server with parameters of type SOCPlayer
protected  void SOCServer.reportRobbery(SOCGame ga, SOCPlayer pe, SOCPlayer vi, int rsrc)
          The current player is stealing from another player.