soc.client
Class SOCPlayerInterface.ClientBridge

java.lang.Object
  extended by soc.client.SOCPlayerInterface.ClientBridge
All Implemented Interfaces:
PlayerClientListener
Enclosing class:
SOCPlayerInterface

private static class SOCPlayerInterface.ClientBridge
extends java.lang.Object
implements PlayerClientListener

Client Bridge to translate interface to SOCPlayerInterface methods. For most methods here, PlayerClientListener will have their javadoc.

Since:
2.0.00
Author:
paulbilnoski

Nested Class Summary
 
Nested classes/interfaces inherited from interface soc.client.PlayerClientListener
PlayerClientListener.UpdateType
 
Field Summary
(package private)  SOCPlayerInterface pi
           
 
Constructor Summary
SOCPlayerInterface.ClientBridge(SOCPlayerInterface pi)
          Create a new ClientBridge for this playerinterface and its SOCGame.
 
Method Summary
 void boardLayoutUpdated()
           
 void boardPotentialsUpdated()
           
 void boardReset(SOCGame newGame, int newSeatNumber, int requestingPlayerNumber)
           
 void boardResetVoteCast(SOCPlayer voter, boolean vote)
           
 void boardResetVoteRejected()
           
 void boardResetVoteRequested(SOCPlayer requestor)
           
 void boardUpdated()
           
 void buildRequestCanceled(SOCPlayer player)
           
 void debugFreePlaceModeToggled(boolean isEnabled)
           
 void devCardDeckUpdated()
           
 void diceRolled(SOCPlayer player, int rollSum)
          Show a dice roll result.
 void diceRolledResources(java.util.List<java.lang.Integer> pnum, java.util.List<SOCResourceSet> rsrc)
          Receive a notification that the dice roll resulted in players gaining resources.
 void gameDisconnected(java.lang.String errorMessage)
           
 void gameEnded(java.util.Map<SOCPlayer,java.lang.Integer> scores)
           
 void gameStarted()
          Game play is starting (leaving state SOCGame.NEW).
 void gameStateChanged(int gameState)
          Update interface after game state has changed.
 void invItemPlayRejected(int type, int reasonCode)
          Client player's request to play a special SOCInventoryItem was rejected by the server.
 void largestArmyRefresh(SOCPlayer old, SOCPlayer potentialNew)
          The largest army might have changed, so update
 void longestRoadRefresh(SOCPlayer old, SOCPlayer potentialNew)
          The longest road might have changed, so update
 void membersListed(java.util.Collection<java.lang.String> names)
          The current game members (players and observers) are listed, and the game is about to start.
 void messageBroadcast(java.lang.String msg)
           
 void messageSent(java.lang.String nickname, java.lang.String message)
          A game text message was received from server, or a chat message from another player.
 void pieceValueUpdated(SOCPlayingPiece piece)
          A playing piece's value was updated: _SC_CLVI village cloth count, or _SC_PIRI pirate fortress strength.
 void playerCanCancelInvItemPlay(SOCPlayer player, boolean canCancel)
          A player is playing or placing a special SOCInventoryItem, such as a gift trade port in scenario _SC_FTRI.
 void playerDevCardUpdated(SOCPlayer player, boolean addedPlayable)
          A player is drawing or playing a development card, or a card or special SOCInventoryItem has been added or removed from their hand's inventory.
 void playerElementUpdated(SOCPlayer player, PlayerClientListener.UpdateType utype)
          Update one part of the player's status, such as their number of settlements remaining.
 void playerFaceChanged(SOCPlayer player, int faceId)
          A player has changed their face icon.
 void playerJoined(java.lang.String nickname)
          A client (us or someone else) has joined the game.
 void playerLeft(java.lang.String nickname, SOCPlayer player)
          A client player or observer is leaving the game.
 void playerPickSpecialItem(java.lang.String typeKey, SOCGame ga, SOCPlayer pl, int gi, int pi, boolean isPick, int coord, int level, java.lang.String sv)
          Show the results of a player's PICK of a known Special Item, or the server's DECLINE of the client player's pick request.
 void playerPieceMoved(SOCPlayer player, int sourceCoordinate, int targetCoordinate, int pieceType)
          A player has moved a piece on the board.
 void playerPiecePlaced(SOCPlayer player, int coordinate, int pieceType)
          A player has placed a piece on the board.
 void playerPieceRemoved(SOCPlayer player, int pieceCoordinate, int pieceType)
          A player's piece has been removed from the board.
 void playerResourcesUpdated(SOCPlayer player)
          A player's total resource count has been updated.
 void playerSetSpecialItem(java.lang.String typeKey, SOCGame ga, SOCPlayer pl, int gi, int pi, boolean isSet)
          Show the results of a player's SET or CLEAR of a known Special Item.
 void playerSitdown(int playerNumber, java.lang.String sitterNickname)
          A client has sat down to become an active player.
 void playerStats(java.util.EnumMap<PlayerClientListener.UpdateType,java.lang.Integer> stats)
          A player's game stats, such as resource totals received from dice rolls, should be displayed.
 void playerSVPAwarded(SOCPlayer player, int numSvp, java.lang.String awardDescription)
          A player has been awarded Special Victory Point(s).
 void playerTurnSet(int playerNumber)
          Game's current player has changed.
 void requestedChoosePlayer(java.util.List<SOCPlayer> choices, boolean isNoneAllowed)
          This player must choose a player for robbery.
 void requestedChooseRobResourceType(SOCPlayer player)
           
 void requestedDiceRoll()
           
 void requestedDiscard(int countToDiscard)
          The game requests that the client player discard a particular number of resource cards.
 void requestedGoldResourceCountUpdated(SOCPlayer player, int countToSelect)
          This player must pick this many gold-hex resources, or no longer needs to pick them.
 void requestedResourceSelect(int countToDiscard)
          The client player gets some free resources of their choice.
 void requestedSpecialBuild(SOCPlayer player)
           
 void requestedTrade(SOCPlayer offerer)
           
 void requestedTradeClear(SOCPlayer offerer)
           
 void requestedTradeRejection(SOCPlayer rejecter)
           
 void requestedTradeReset(SOCPlayer playerToReset)
           
 void robberMoved()
           
 void scen_SC_PIRI_pirateFortressAttackResult(boolean wasRejected, int defStrength, int resultShipsLost)
          In scenario _SC_PIRI, present the server's response to a Pirate Fortress Attack request from the current player (the client or another player), which may be: Rejected, Lost, Tied, or Won.
 void seatLockUpdated()
           
 void simpleAction(int pn, int acttype, int value1, int value2)
          A "simple action" has occurred in the game and should be displayed.
 void simpleRequest(int pn, int reqtype, int value1, int value2)
          A player's "simple request" has been sent to the entire game, or the server has replied to our own simple request, and this should be displayed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pi

final SOCPlayerInterface pi
Constructor Detail

SOCPlayerInterface.ClientBridge

public SOCPlayerInterface.ClientBridge(SOCPlayerInterface pi)
Create a new ClientBridge for this playerinterface and its SOCGame.

Parameters:
pi - A player interface, already linked to a game
Method Detail

diceRolled

public void diceRolled(SOCPlayer player,
                       int rollSum)
Show a dice roll result. Call this after updating game state with the roll result.

Specified by:
diceRolled in interface PlayerClientListener
Parameters:
player - May be null if the current player was null when the dice roll was received from the server.
rollSum - The sum of the dice rolled. May be -1 for some game events.

diceRolledResources

public void diceRolledResources(java.util.List<java.lang.Integer> pnum,
                                java.util.List<SOCResourceSet> rsrc)
Description copied from interface: PlayerClientListener
Receive a notification that the dice roll resulted in players gaining resources. Call this after updating player resources with the gains. Often follows a call to PlayerClientListener.diceRolled(SOCPlayer, int).

Specified by:
diceRolledResources in interface PlayerClientListener
Parameters:
pnum - Player numbers, same format as SOCDiceResultResources.playerNum
rsrc - Resources gained by each pn, same format as SOCDiceResultResources.playerRsrc

playerJoined

public void playerJoined(java.lang.String nickname)
Description copied from interface: PlayerClientListener
A client (us or someone else) has joined the game. They will be an observer until PlayerClientListener.playerSitdown(int, String) is called, then they will be an active player.

Specified by:
playerJoined in interface PlayerClientListener
Parameters:
nickname - New client's player/observer name

playerLeft

public void playerLeft(java.lang.String nickname,
                       SOCPlayer player)
Description copied from interface: PlayerClientListener
A client player or observer is leaving the game.

Specified by:
playerLeft in interface PlayerClientListener
Parameters:
nickname - The player name. Will not be null
player - May be null if the current player is an observer.

playerSitdown

public void playerSitdown(int playerNumber,
                          java.lang.String sitterNickname)
Description copied from interface: PlayerClientListener
A client has sat down to become an active player. PlayerClientListener.playerJoined(String) was called earlier on this client. SOCGame.addPlayer(String, int) has just been called.

Specified by:
playerSitdown in interface PlayerClientListener
Parameters:
playerNumber - New player's playerNumber in the game; the seat number they've sat down at
sitterNickname - New player's name

playerTurnSet

public void playerTurnSet(int playerNumber)
Game's current player has changed. Update displays. Repaint board panel, update buttons' status, etc.

Specified by:
playerTurnSet in interface PlayerClientListener
Parameters:
playerNumber - New current player number whose turn it is.

playerPiecePlaced

public void playerPiecePlaced(SOCPlayer player,
                              int coordinate,
                              int pieceType)
Description copied from interface: PlayerClientListener
A player has placed a piece on the board.

Specified by:
playerPiecePlaced in interface PlayerClientListener
pieceType - A piece type identifier, such as SOCPlayingPiece.CITY

playerPieceMoved

public void playerPieceMoved(SOCPlayer player,
                             int sourceCoordinate,
                             int targetCoordinate,
                             int pieceType)
Description copied from interface: PlayerClientListener
A player has moved a piece on the board. Most pieces are not movable. SOCShip pieces can sometimes be moved. Not used when the robber or pirate is moved; see PlayerClientListener.robberMoved().

Specified by:
playerPieceMoved in interface PlayerClientListener
pieceType - A piece type identifier, such as SOCPlayingPiece.CITY

playerPieceRemoved

public void playerPieceRemoved(SOCPlayer player,
                               int pieceCoordinate,
                               int pieceType)
Description copied from interface: PlayerClientListener
A player's piece has been removed from the board. Updates game state and refreshes the game board display. Currently, only ships can be removed, in game scenario _SC_PIRI.

Specified by:
playerPieceRemoved in interface PlayerClientListener
Parameters:
player - Player who owns the ship
pieceCoordinate - Ship's node coordinate
pieceType - The piece type identifier SOCPlayingPiece.SHIP

playerSVPAwarded

public void playerSVPAwarded(SOCPlayer player,
                             int numSvp,
                             java.lang.String awardDescription)
Description copied from interface: PlayerClientListener
A player has been awarded Special Victory Point(s).

Specified by:
playerSVPAwarded in interface PlayerClientListener
Parameters:
player - The player awarded special victory points. Will not be null
numSvp - The count of how many new special victory points were awarded
awardDescription - A user-display message describing the reason for the award

playerResourcesUpdated

public void playerResourcesUpdated(SOCPlayer player)
Description copied from interface: PlayerClientListener
A player's total resource count has been updated.

Specified by:
playerResourcesUpdated in interface PlayerClientListener
Parameters:
player - The player

playerElementUpdated

public void playerElementUpdated(SOCPlayer player,
                                 PlayerClientListener.UpdateType utype)
Description copied from interface: PlayerClientListener
Update one part of the player's status, such as their number of settlements remaining.

Specified by:
playerElementUpdated in interface PlayerClientListener
Parameters:
player - May be null
utype - The type of element to update

requestedSpecialBuild

public void requestedSpecialBuild(SOCPlayer player)
Specified by:
requestedSpecialBuild in interface PlayerClientListener

requestedGoldResourceCountUpdated

public void requestedGoldResourceCountUpdated(SOCPlayer player,
                                              int countToSelect)
Description copied from interface: PlayerClientListener
This player must pick this many gold-hex resources, or no longer needs to pick them. Informational only: do not ask the client player to pick resources, PlayerClientListener.requestedResourceSelect(int) is used for that.

Specified by:
requestedGoldResourceCountUpdated in interface PlayerClientListener
Parameters:
player - The player
countToSelect - Number of free resources they must pick, or 0 if they've just picked them

playerDevCardUpdated

public void playerDevCardUpdated(SOCPlayer player,
                                 boolean addedPlayable)
Description copied from interface: PlayerClientListener
A player is drawing or playing a development card, or a card or special SOCInventoryItem has been added or removed from their hand's inventory.

If this inventory update comes from playing a special SOCInventoryItem, call PlayerClientListener.playerCanCancelInvItemPlay(SOCPlayer, boolean) after calling this method.

Specified by:
playerDevCardUpdated in interface PlayerClientListener
Parameters:
player - The player
addedPlayable - True if the update added a dev card or item that's playable now

playerCanCancelInvItemPlay

public void playerCanCancelInvItemPlay(SOCPlayer player,
                                       boolean canCancel)
Description copied from interface: PlayerClientListener
A player is playing or placing a special SOCInventoryItem, such as a gift trade port in scenario _SC_FTRI. Set a flag that indicates if this play or placement can be canceled (returned to player's inventory).

It makes sense to call this for only the client player, since we don't cancel other players' item plays.

Specified by:
playerCanCancelInvItemPlay in interface PlayerClientListener
Parameters:
player - The player
canCancel - True if SOCInventoryItem.canCancelPlay

playerFaceChanged

public void playerFaceChanged(SOCPlayer player,
                              int faceId)
Description copied from interface: PlayerClientListener
A player has changed their face icon.

Specified by:
playerFaceChanged in interface PlayerClientListener
Parameters:
player - The player
faceId - New face icon number; 1 and higher are human face images, 0 is the default robot, -1 is the smarter robot.

playerStats

public void playerStats(java.util.EnumMap<PlayerClientListener.UpdateType,java.lang.Integer> stats)
Description copied from interface: PlayerClientListener
A player's game stats, such as resource totals received from dice rolls, should be displayed. Called at end of game, or when the player uses the *STATS* command.

Specified by:
playerStats in interface PlayerClientListener
Parameters:
stats - Player statistic details

largestArmyRefresh

public void largestArmyRefresh(SOCPlayer old,
                               SOCPlayer potentialNew)
Description copied from interface: PlayerClientListener
The largest army might have changed, so update

Specified by:
largestArmyRefresh in interface PlayerClientListener

longestRoadRefresh

public void longestRoadRefresh(SOCPlayer old,
                               SOCPlayer potentialNew)
Description copied from interface: PlayerClientListener
The longest road might have changed, so update

Specified by:
longestRoadRefresh in interface PlayerClientListener

membersListed

public void membersListed(java.util.Collection<java.lang.String> names)
The current game members (players and observers) are listed, and the game is about to start. Calls SOCPlayerInterface.began(Vector).

Specified by:
membersListed in interface PlayerClientListener
Parameters:
names - Game member names; to see if each is a player, call SOCGame.getPlayer(String).

boardLayoutUpdated

public void boardLayoutUpdated()
Specified by:
boardLayoutUpdated in interface PlayerClientListener

boardUpdated

public void boardUpdated()
Specified by:
boardUpdated in interface PlayerClientListener

pieceValueUpdated

public void pieceValueUpdated(SOCPlayingPiece piece)
Description copied from interface: PlayerClientListener
A playing piece's value was updated: _SC_CLVI village cloth count, or _SC_PIRI pirate fortress strength. Repaint that piece (if needed) on the board.

Specified by:
pieceValueUpdated in interface PlayerClientListener
Parameters:
piece - Piece that was updated, includes its new value

boardPotentialsUpdated

public void boardPotentialsUpdated()
Specified by:
boardPotentialsUpdated in interface PlayerClientListener

boardReset

public void boardReset(SOCGame newGame,
                       int newSeatNumber,
                       int requestingPlayerNumber)
Specified by:
boardReset in interface PlayerClientListener

boardResetVoteRequested

public void boardResetVoteRequested(SOCPlayer requestor)
Specified by:
boardResetVoteRequested in interface PlayerClientListener

boardResetVoteCast

public void boardResetVoteCast(SOCPlayer voter,
                               boolean vote)
Specified by:
boardResetVoteCast in interface PlayerClientListener

boardResetVoteRejected

public void boardResetVoteRejected()
Specified by:
boardResetVoteRejected in interface PlayerClientListener

seatLockUpdated

public void seatLockUpdated()
Specified by:
seatLockUpdated in interface PlayerClientListener

gameStarted

public void gameStarted()
Description copied from interface: PlayerClientListener
Game play is starting (leaving state SOCGame.NEW). Next move is for players to make their starting placements.

Call SOCGame.setGameState(int) before calling this method. Call this method before calling PlayerClientListener.gameStateChanged(int).

Specified by:
gameStarted in interface PlayerClientListener

gameStateChanged

public void gameStateChanged(int gameState)
Description copied from interface: PlayerClientListener
Update interface after game state has changed. Please call SOCGame.setGameState(int) first.

If the game is now starting, please call in this order:

   game.setGameState(newState);
   PlayerClientListener.gameStarted();
   PlayerClientListener.gameStateChanged(int);

Specified by:
gameStateChanged in interface PlayerClientListener
Parameters:
gameState - One of the codes from SOCGame, such as SOCGame.NEW

gameEnded

public void gameEnded(java.util.Map<SOCPlayer,java.lang.Integer> scores)
Specified by:
gameEnded in interface PlayerClientListener

gameDisconnected

public void gameDisconnected(java.lang.String errorMessage)
Specified by:
gameDisconnected in interface PlayerClientListener

messageBroadcast

public void messageBroadcast(java.lang.String msg)
Specified by:
messageBroadcast in interface PlayerClientListener

messageSent

public void messageSent(java.lang.String nickname,
                        java.lang.String message)
Description copied from interface: PlayerClientListener
A game text message was received from server, or a chat message from another player.

Specified by:
messageSent in interface PlayerClientListener
Parameters:
nickname - Player's nickname, or null for messages from the server itself
message - Message text

simpleRequest

public final void simpleRequest(int pn,
                                int reqtype,
                                int value1,
                                int value2)
Description copied from interface: PlayerClientListener
A player's "simple request" has been sent to the entire game, or the server has replied to our own simple request, and this should be displayed. This method lets us display simple things from the server without defining a lot of small similar methods.

If other game data messages are sent (resource gains/loss, etc), or other client code must update that data based on info in the SOCSimpleRequest, this method will be called only after other game data is updated. Some SimpleRequest reqtypes update the game data: Client must call SOCDisplaylessPlayerClient.handleSIMPLEREQUEST(Map, soc.message.SOCSimpleRequest) to update game before calling this method.

Specified by:
simpleRequest in interface PlayerClientListener
Parameters:
pn - The player number requesting or acting, or -1 if our own request was declined
reqtype - The request type, from SOCSimpleRequest constants for simplicity
value1 - First optional detail value, or 0
value2 - Second optional detail value, or 0
See Also:
PlayerClientListener.simpleAction(int, int, int, int)

simpleAction

public final void simpleAction(int pn,
                               int acttype,
                               int value1,
                               int value2)
Description copied from interface: PlayerClientListener
A "simple action" has occurred in the game and should be displayed. This method lets us show simple things from the server without defining a lot of small similar methods.

This will be called only after other game data is updated (number of dev cards, resource gains/loss, etc).

Specified by:
simpleAction in interface PlayerClientListener
Parameters:
pn - The player number acting or acted on
acttype - The action type, from SOCSimpleAction constants for simplicity
value1 - First optional detail value, or 0
value2 - Second optional detail value, or 0
See Also:
PlayerClientListener.simpleRequest(int, int, int, int)

buildRequestCanceled

public void buildRequestCanceled(SOCPlayer player)
Specified by:
buildRequestCanceled in interface PlayerClientListener

invItemPlayRejected

public void invItemPlayRejected(int type,
                                int reasonCode)
Description copied from interface: PlayerClientListener
Client player's request to play a special SOCInventoryItem was rejected by the server.

Specified by:
invItemPlayRejected in interface PlayerClientListener
Parameters:
type - Item type from SOCInventoryItem.itype
reasonCode - Optional reason code for the SOCInventoryItemAction.CANNOT_PLAY action, corresponding to SOCGame.canPlayInventoryItem(int, int) return codes, or 0

playerPickSpecialItem

public void playerPickSpecialItem(java.lang.String typeKey,
                                  SOCGame ga,
                                  SOCPlayer pl,
                                  int gi,
                                  int pi,
                                  boolean isPick,
                                  int coord,
                                  int level,
                                  java.lang.String sv)
Description copied from interface: PlayerClientListener
Show the results of a player's PICK of a known Special Item, or the server's DECLINE of the client player's pick request.

To see which scenario and option typeKeys pick Special Items, and scenario-specific usage details, see the SOCSpecialItem class javadoc.

coord and level are sent for convenience, and sometimes may not be from the Special Item you need; see SOCSetSpecialItem.OP_PICK for details.

Specified by:
playerPickSpecialItem in interface PlayerClientListener
Parameters:
typeKey - Item's typeKey, as described in the SOCSpecialItem class javadoc
ga - Game containing pl and special items
pl - Player who picked: Never null when isPick, is null if server declined our player's request
gi - Picked this index within game's Special Item list, or -1
pi - Picked this index within pl's Special Item list, or -1
isPick - True if calling for PICK, false if server has DECLINEd the client player's request
coord - Optional coordinates on the board for this item, or -1. An edge or a node, depending on item type
level - Optional level of construction or strength, or 0
sv - Optional string value from SOCSpecialItem.getStringValue(), or null
See Also:
PlayerClientListener.playerSetSpecialItem(String, SOCGame, SOCPlayer, int, int, boolean), SOCSpecialItem.playerPickItem(String, SOCGame, SOCPlayer, int, int)

playerSetSpecialItem

public void playerSetSpecialItem(java.lang.String typeKey,
                                 SOCGame ga,
                                 SOCPlayer pl,
                                 int gi,
                                 int pi,
                                 boolean isSet)
Description copied from interface: PlayerClientListener
Show the results of a player's SET or CLEAR of a known Special Item.

To see which scenario and option typeKeys set or clear Special Items, and scenario-specific usage details, see the SOCSpecialItem class javadoc.

Specified by:
playerSetSpecialItem in interface PlayerClientListener
Parameters:
typeKey - Item's typeKey, as described in the SOCSpecialItem class javadoc
ga - Game containing pl and special items
pl - Requesting player; never null
gi - Set or clear this index within game's Special Item list, or -1
pi - Set or clear this index within pl's Special Item list, or -1
isSet - True if player has set, false if player has cleared, this item index
See Also:
PlayerClientListener.playerPickSpecialItem(String, SOCGame, SOCPlayer, int, int, boolean, int, int, String), SOCSpecialItem.playerSetItem(String, SOCGame, SOCPlayer, int, int, boolean)

scen_SC_PIRI_pirateFortressAttackResult

public void scen_SC_PIRI_pirateFortressAttackResult(boolean wasRejected,
                                                    int defStrength,
                                                    int resultShipsLost)
Description copied from interface: PlayerClientListener
In scenario _SC_PIRI, present the server's response to a Pirate Fortress Attack request from the current player (the client or another player), which may be: Rejected, Lost, Tied, or Won.

This will be called only after other game pieces are updated (fortress strength, player's ships lost).

Specified by:
scen_SC_PIRI_pirateFortressAttackResult in interface PlayerClientListener
Parameters:
wasRejected - True if the server rejected our player's request to attack
defStrength - Pirate defense strength, unless wasRejected
resultShipsLost - Result and number of ships lost by the player: 0 if player won (or if rejected); 1 if tied; 2 if player lost to the pirates.

robberMoved

public void robberMoved()
Specified by:
robberMoved in interface PlayerClientListener

devCardDeckUpdated

public void devCardDeckUpdated()
Specified by:
devCardDeckUpdated in interface PlayerClientListener

requestedDiscard

public void requestedDiscard(int countToDiscard)
Description copied from interface: PlayerClientListener
The game requests that the client player discard a particular number of resource cards.

Specified by:
requestedDiscard in interface PlayerClientListener
Parameters:
countToDiscard - Must choose and discard this many cards

requestedResourceSelect

public void requestedResourceSelect(int countToDiscard)
Description copied from interface: PlayerClientListener
The client player gets some free resources of their choice. Used with "Year of Plenty"/"Discovery" cards, and the Gold Hex.

Specified by:
requestedResourceSelect in interface PlayerClientListener
Parameters:
countToDiscard - Must choose this many resources
See Also:
PlayerClientListener.requestedGoldResourceCountUpdated(SOCPlayer, int)

requestedChoosePlayer

public void requestedChoosePlayer(java.util.List<SOCPlayer> choices,
                                  boolean isNoneAllowed)
Description copied from interface: PlayerClientListener
This player must choose a player for robbery.

Specified by:
requestedChoosePlayer in interface PlayerClientListener
Parameters:
choices - The potential victim players to choose from
isNoneAllowed - If true, player can choose to rob no one (game scenario SC_PIRI)
See Also:
SOCPlayerClient.GameManager.choosePlayer(SOCGame, int)

requestedChooseRobResourceType

public void requestedChooseRobResourceType(SOCPlayer player)
Specified by:
requestedChooseRobResourceType in interface PlayerClientListener

requestedTrade

public void requestedTrade(SOCPlayer offerer)
Specified by:
requestedTrade in interface PlayerClientListener

requestedTradeClear

public void requestedTradeClear(SOCPlayer offerer)
Specified by:
requestedTradeClear in interface PlayerClientListener
Parameters:
offerer - May be null

requestedTradeRejection

public void requestedTradeRejection(SOCPlayer rejecter)
Specified by:
requestedTradeRejection in interface PlayerClientListener

requestedTradeReset

public void requestedTradeReset(SOCPlayer playerToReset)
Specified by:
requestedTradeReset in interface PlayerClientListener
Parameters:
playerToReset - May be null to clear all seats

requestedDiceRoll

public void requestedDiceRoll()
Specified by:
requestedDiceRoll in interface PlayerClientListener

debugFreePlaceModeToggled

public void debugFreePlaceModeToggled(boolean isEnabled)
Specified by:
debugFreePlaceModeToggled in interface PlayerClientListener