soc.client
Class SOCPlayerClient.MessageTreater

java.lang.Object
  extended by soc.client.SOCPlayerClient.MessageTreater
Enclosing class:
SOCPlayerClient

private class SOCPlayerClient.MessageTreater
extends java.lang.Object

Nested class for processing incoming messages (treating).

Before v2.0.00, most of these fields and methods were part of the main SOCPlayerClient class.

Since:
2.0.00
Author:
paulbilnoski

Field Summary
private  SOCPlayerClient client
           
private  SOCPlayerClient.GameManager gmgr
           
 
Constructor Summary
SOCPlayerClient.MessageTreater(SOCPlayerClient client)
           
 
Method Summary
protected  void handleBCASTTEXTMSG(SOCBCastTextMsg mes)
          handle a broadcast text message
protected  void handleBOARDLAYOUT(SOCBoardLayout mes)
          Handle the old "board layout" message (original 4-player board, no options).
protected  void handleBOARDLAYOUT2(SOCBoardLayout2 mes)
          Handle the "board layout" message, in its usual format.
private  void handleBOARDSPECIALEDGE(SOCBoardSpecialEdge mes)
          Set or clear a special edge on the board.
protected  void handleCANCELBUILDREQUEST(SOCCancelBuildRequest mes)
          handle the rare "cancel build request" message; usually not sent from server to client.
protected  void handleCHANGEFACE(SOCChangeFace mes)
          handle the "change face" message
protected  void handleCHANNELS(SOCChannels mes, boolean isPractice)
          handle the "list of channels" message; this message indicates that we're newly connected to the server, and is sent even if the server isn't using SOCServerFeatures.FEAT_CHANNELS: Server connection is complete.
protected  void handleCHOOSEPLAYER(SOCChoosePlayer mes)
          The server wants this player to choose to rob cloth or rob resources, after moving the pirate ship.
protected  void handleCHOOSEPLAYERREQUEST(SOCChoosePlayerRequest mes)
          handle the "choose player request" message
protected  void handleCLEAROFFER(SOCClearOffer mes)
          handle the "clear offer" message
protected  void handleCLEARTRADEMSG(SOCClearTradeMsg mes)
          handle the "clear trade message" message
private  void handleDEBUGFREEPLACE(SOCDebugFreePlace mes)
          Handle the server's debug piece placement on/off message.
protected  void handleDELETECHANNEL(SOCDeleteChannel mes)
          handle the "delete channel" message
protected  void handleDELETEGAME(SOCDeleteGame mes, boolean isPractice)
          handle the "delete game" message
protected  void handleDEVCARDACTION(boolean isPractice, SOCDevCardAction mes)
          handle the "development card action" message
protected  void handleDEVCARDCOUNT(SOCDevCardCount mes)
          handle the "number of development cards" message
protected  void handleDICERESULT(SOCDiceResult mes)
          handle the "dice result" message
protected  void handleDICERESULTRESOURCES(SOCDiceResultResources mes)
          Handle all players' dice roll result resources.
protected  void handleDISCARDREQUEST(SOCDiscardRequest mes)
          handle the "discard request" message
protected  void handleFIRSTPLAYER(SOCFirstPlayer mes)
          handle the "first player" message
protected  void handleGAMEMEMBERS(SOCGameMembers mes)
          handle the "game members" message, the server's hint that it's almost done sending us the complete game state in response to JOINGAME.
private  void handleGAMEOPTIONGETDEFAULTS(SOCGameOptionGetDefaults mes, boolean isPractice)
          process the "game option get defaults" message.
private  void handleGAMEOPTIONINFO(SOCGameOptionInfo mes, boolean isPractice)
          process the "game option info" message by calling ServerGametypeInfo.receiveInfo(SOCGameOptionInfo).
protected  void handleGAMES(SOCGames mes, boolean isPractice)
          handle the "list of games" message
protected  void handleGAMESERVERTEXT(SOCGameServerText mes)
          Handle game server text and announcements.
protected  void handleGAMESTATE(SOCGameState mes)
          handle the "game state" message
protected  void handleGAMESTATS(SOCGameStats mes)
          handle the "game stats" message
private  void handleGAMESWITHOPTIONS(SOCGamesWithOptions mes, boolean isPractice)
          handle the "list of games with options" message
protected  void handleGAMETEXTMSG(SOCGameTextMsg mes)
          handle the "game text message" message.
private  void handleINVENTORYITEMACTION(SOCInventoryItemAction mes)
          Update player inventory.
protected  void handleJOIN(SOCJoin mes)
          handle the "join channel" message
protected  void handleJOINAUTH(SOCJoinAuth mes)
          handle the "join channel authorization" message
protected  void handleJOINGAME(SOCJoinGame mes)
          handle the "join game" message
protected  void handleJOINGAMEAUTH(SOCJoinGameAuth mes, boolean isPractice)
          handle the "join game authorization" message: create new SOCGame and SOCPlayerInterface so user can join the game
protected  void handleLARGESTARMY(SOCLargestArmy mes)
          handle the "largest army" message
protected  void handleLEAVE(SOCLeave mes)
          handle the "leave channel" message
protected  void handleLEAVEGAME(SOCLeaveGame mes)
          handle the "leave game" message
private  void handleLOCALIZEDSTRINGS(SOCLocalizedStrings mes, boolean isPractice)
          Localized i18n strings for game items.
protected  void handleLONGESTROAD(SOCLongestRoad mes)
          handle the "longest road" message
protected  void handleMAKEOFFER(SOCMakeOffer mes)
          handle the "make offer" message
protected  void handleMEMBERS(SOCMembers mes)
          handle the "channel members" message
private  void handleMOVEPIECE(SOCMovePiece mes)
          Handle moving a piece (a ship) around on the board.
protected  void handleMOVEROBBER(SOCMoveRobber mes)
          handle the "robber moved" or "pirate moved" message.
protected  void handleNEWCHANNEL(SOCNewChannel mes)
          handle the "new channel" message
protected  void handleNEWGAME(SOCNewGame mes, boolean isPractice)
          handle the "new game" message
private  void handleNEWGAMEWITHOPTIONS(SOCNewGameWithOptions mes, boolean isPractice)
          process the "new game with options" message
protected  void handlePICKRESOURCESREQUEST(SOCPickResourcesRequest mes)
          handle the "pick resources request" message
protected  void handlePIECEVALUE(SOCPieceValue mes)
          Update a village piece's value on the board (cloth remaining) in _SC_CLVI, or a pirate fortress's strength in _SC_PIRI.
protected  void handlePLAYERELEMENT(SOCPlayerElement mes)
          handle the "player information" message
private  void handlePLAYERSTATS(SOCPlayerStats mes)
          handle the "player stats" message
protected  void handlePOTENTIALSETTLEMENTS(SOCPotentialSettlements mes)
          handle the "list of potential settlements" message
protected  void handlePUTPIECE(SOCPutPiece mes)
          handle the "put piece" message
protected  void handleREJECTCONNECTION(SOCRejectConnection mes)
          handle the "reject connection" message
protected  void handleREJECTOFFER(SOCRejectOffer mes)
          handle the "reject offer" message
private  void handleREMOVEPIECE(SOCRemovePiece mes)
          Handle removing a piece (a ship) from the board in certain scenarios.
protected  void handleRESETBOARDAUTH(SOCResetBoardAuth mes)
          handle board reset (new game with same players, same game name, new layout).
protected  void handleRESETBOARDREJECT(SOCResetBoardReject mes)
          voting complete, board reset request rejected
protected  void handleRESETBOARDVOTE(SOCResetBoardVote mes)
          another player has voted on a board reset request: display the vote.
protected  void handleRESETBOARDVOTEREQUEST(SOCResetBoardVoteRequest mes)
          a player is requesting a board reset: we must update local game state, and vote unless we are the requester.
protected  void handleRESOURCECOUNT(SOCResourceCount mes)
          handle "resource count" message
protected  void handleREVEALFOGHEX(SOCRevealFogHex mes)
          Reveal a hidden hex on the board.
protected  void handleROLLDICEPROMPT(SOCRollDicePrompt mes)
          handle the "roll dice prompt" message; if we're in a game and we're the dice roller, either set the auto-roll timer, or prompt to roll or choose card.
private  void handleSCENARIOINFO(SOCScenarioInfo mes, boolean isPractice)
          Updated scenario info.
private  void handleSERVERPING(SOCServerPing mes, boolean isPractice)
          echo the server ping, to ensure we're still connected.
protected  void handleSETPLAYEDDEVCARD(SOCSetPlayedDevCard mes)
          handle the "set played dev card flag" message
protected  void handleSETSEATLOCK(SOCSetSeatLock mes)
          handle the "set seat lock" message
private  void handleSETSPECIALITEM(java.util.Map<java.lang.String,SOCGame> games, SOCSetSpecialItem mes)
          Handle the "set special item" message.
protected  void handleSETTURN(SOCSetTurn mes)
          handle the "set turn" message
private  void handleSIMPLEACTION(SOCSimpleAction mes)
          Handle "simple action" announcements from the server.
private  void handleSIMPLEREQUEST(SOCSimpleRequest mes)
          Handle server responses from the "simple request" handler.
protected  void handleSITDOWN(SOCSitDown mes)
          handle the "player sitting down" message
protected  void handleSTARTGAME(SOCStartGame mes)
          handle the "start game" message
protected  void handleSTATUSMESSAGE(SOCStatusMessage mes, boolean isPractice)
          handle the "status" message.
protected  void handleSVPTEXTMSG(SOCSVPTextMessage mes)
          Text that a player has been awarded Special Victory Point(s).
protected  void handleTEXTMSG(SOCTextMsg mes)
          handle a text message
protected  void handleTURN(SOCTurn mes)
          handle the "turn" message
private  void handleVERSION(boolean isPractice, SOCVersion mes)
          Handle the "version" message, server's version report.
 void treat(SOCMessage mes, boolean isPractice)
          Treat the incoming messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

private final SOCPlayerClient client

gmgr

private final SOCPlayerClient.GameManager gmgr
Constructor Detail

SOCPlayerClient.MessageTreater

public SOCPlayerClient.MessageTreater(SOCPlayerClient client)
Method Detail

treat

public void treat(SOCMessage mes,
                  boolean isPractice)
Treat the incoming messages. Messages of unknown type are ignored (mes will be null from SOCMessage.toMsg(String)).

Parameters:
mes - the message
isPractice - Server is SOCPlayerClient.ClientNetwork.practiceServer, not tcp network

handleVERSION

private void handleVERSION(boolean isPractice,
                           SOCVersion mes)
Handle the "version" message, server's version report. Ask server for game-option info if client's version differs. If remote, store the server's version for SOCPlayerClient.getServerVersion(SOCGame) and display the version on the main panel. (Local server's version is always Version.versionNumber().)

Parameters:
isPractice - Is the server SOCPlayerClient.ClientNetwork.practiceServer, not remote? Client can be connected only to one at a time.
mes - the message

handleSTATUSMESSAGE

protected void handleSTATUSMESSAGE(SOCStatusMessage mes,
                                   boolean isPractice)
handle the "status" message. Used for server events, also used if player tries to join a game but their nickname is not OK.

Also used (v1.1.19 and newer) as a reply to SOCAuthRequest sent before showing NewGameOptionsFrame, so check whether the isNGOFWaitingForAuthStatus client.isNGOFWaitingForAuthStatus flag is set.

Parameters:
mes - the message
isPractice - from practice server, not remote server?

handleJOINAUTH

protected void handleJOINAUTH(SOCJoinAuth mes)
handle the "join channel authorization" message

Parameters:
mes - the message

handleJOIN

protected void handleJOIN(SOCJoin mes)
handle the "join channel" message

Parameters:
mes - the message

handleMEMBERS

protected void handleMEMBERS(SOCMembers mes)
handle the "channel members" message

Parameters:
mes - the message

handleNEWCHANNEL

protected void handleNEWCHANNEL(SOCNewChannel mes)
handle the "new channel" message

Parameters:
mes - the message

handleCHANNELS

protected void handleCHANNELS(SOCChannels mes,
                              boolean isPractice)
handle the "list of channels" message; this message indicates that we're newly connected to the server, and is sent even if the server isn't using SOCServerFeatures.FEAT_CHANNELS: Server connection is complete. Unless isPractice, show #MAIN_PANEL.

Parameters:
mes - the message
isPractice - is the server actually SOCPlayerClient.ClientNetwork.practiceServer (practice game)?

handleBCASTTEXTMSG

protected void handleBCASTTEXTMSG(SOCBCastTextMsg mes)
handle a broadcast text message

Parameters:
mes - the message

handleTEXTMSG

protected void handleTEXTMSG(SOCTextMsg mes)
handle a text message

Parameters:
mes - the message

handleLEAVE

protected void handleLEAVE(SOCLeave mes)
handle the "leave channel" message

Parameters:
mes - the message

handleDELETECHANNEL

protected void handleDELETECHANNEL(SOCDeleteChannel mes)
handle the "delete channel" message

Parameters:
mes - the message

handleGAMES

protected void handleGAMES(SOCGames mes,
                           boolean isPractice)
handle the "list of games" message

Parameters:
mes - the message

handleJOINGAMEAUTH

protected void handleJOINGAMEAUTH(SOCJoinGameAuth mes,
                                  boolean isPractice)
handle the "join game authorization" message: create new SOCGame and SOCPlayerInterface so user can join the game

Parameters:
mes - the message
isPractice - server is practiceServer (not normal tcp network)

handleJOINGAME

protected void handleJOINGAME(SOCJoinGame mes)
handle the "join game" message

Parameters:
mes - the message

handleLEAVEGAME

protected void handleLEAVEGAME(SOCLeaveGame mes)
handle the "leave game" message

Parameters:
mes - the message

handleNEWGAME

protected void handleNEWGAME(SOCNewGame mes,
                             boolean isPractice)
handle the "new game" message

Parameters:
mes - the message

handleDELETEGAME

protected void handleDELETEGAME(SOCDeleteGame mes,
                                boolean isPractice)
handle the "delete game" message

Parameters:
mes - the message

handleGAMEMEMBERS

protected void handleGAMEMEMBERS(SOCGameMembers mes)
handle the "game members" message, the server's hint that it's almost done sending us the complete game state in response to JOINGAME.

Parameters:
mes - the message

handleGAMESTATS

protected void handleGAMESTATS(SOCGameStats mes)
handle the "game stats" message


handleGAMETEXTMSG

protected void handleGAMETEXTMSG(SOCGameTextMsg mes)
handle the "game text message" message. Messages not from Server go to the chat area. Messages from Server go to the game text window. Urgent messages from Server (starting with ">>>") also go to the chat area, which has less activity, so they are harder to miss.

Parameters:
mes - the message

handleSITDOWN

protected void handleSITDOWN(SOCSitDown mes)
handle the "player sitting down" message

Parameters:
mes - the message

handleBOARDLAYOUT

protected void handleBOARDLAYOUT(SOCBoardLayout mes)
Handle the old "board layout" message (original 4-player board, no options). Most game boards will call handleBOARDLAYOUT2(SOCBoardLayout2) instead.

Parameters:
mes - the message

handleSERVERPING

private void handleSERVERPING(SOCServerPing mes,
                              boolean isPractice)
echo the server ping, to ensure we're still connected. (ignored before version 1.1.08)

Since:
1.1.08

handleBOARDLAYOUT2

protected void handleBOARDLAYOUT2(SOCBoardLayout2 mes)
Handle the "board layout" message, in its usual format. (Some simple games can use the old handleBOARDLAYOUT(SOCBoardLayout) instead.)

Parameters:
mes - the message
Since:
1.1.08

handleSTARTGAME

protected void handleSTARTGAME(SOCStartGame mes)
handle the "start game" message

Parameters:
mes - the message

handleGAMESTATE

protected void handleGAMESTATE(SOCGameState mes)
handle the "game state" message

Parameters:
mes - the message

handleSETTURN

protected void handleSETTURN(SOCSetTurn mes)
handle the "set turn" message

Parameters:
mes - the message

handleFIRSTPLAYER

protected void handleFIRSTPLAYER(SOCFirstPlayer mes)
handle the "first player" message

Parameters:
mes - the message

handleTURN

protected void handleTURN(SOCTurn mes)
handle the "turn" message

Parameters:
mes - the message

handlePLAYERELEMENT

protected void handlePLAYERELEMENT(SOCPlayerElement mes)
handle the "player information" message

Parameters:
mes - the message

handleRESOURCECOUNT

protected void handleRESOURCECOUNT(SOCResourceCount mes)
handle "resource count" message

Parameters:
mes - the message

handleDICERESULT

protected void handleDICERESULT(SOCDiceResult mes)
handle the "dice result" message

Parameters:
mes - the message

handlePUTPIECE

protected void handlePUTPIECE(SOCPutPiece mes)
handle the "put piece" message

Parameters:
mes - the message

handleCANCELBUILDREQUEST

protected void handleCANCELBUILDREQUEST(SOCCancelBuildRequest mes)
handle the rare "cancel build request" message; usually not sent from server to client.

- When sent from client to server, CANCELBUILDREQUEST means the player has changed their mind about spending resources to build a piece. Only allowed during normal game play (PLACING_ROAD, PLACING_SETTLEMENT, or PLACING_CITY).

When sent from server to client:

- During game startup (START1B or START2B):
Sent from server, CANCELBUILDREQUEST means the current player wants to undo the placement of their initial settlement.

- During piece placement (PLACING_ROAD, PLACING_CITY, PLACING_SETTLEMENT, PLACING_FREE_ROAD1 or PLACING_FREE_ROAD2):

Sent from server, CANCELBUILDREQUEST means the player has sent an illegal PUTPIECE (bad building location). Humans can probably decide a better place to put their road, but robots must cancel the build request and decide on a new plan.

Our client can ignore this case, because the server also sends a text message that the human player is capable of reading and acting on.

Parameters:
mes - the message

handleMOVEROBBER

protected void handleMOVEROBBER(SOCMoveRobber mes)
handle the "robber moved" or "pirate moved" message.

Parameters:
mes - the message

handleDISCARDREQUEST

protected void handleDISCARDREQUEST(SOCDiscardRequest mes)
handle the "discard request" message

Parameters:
mes - the message

handlePICKRESOURCESREQUEST

protected void handlePICKRESOURCESREQUEST(SOCPickResourcesRequest mes)
handle the "pick resources request" message

Parameters:
mes - the message
Since:
2.0.00

handleCHOOSEPLAYERREQUEST

protected void handleCHOOSEPLAYERREQUEST(SOCChoosePlayerRequest mes)
handle the "choose player request" message

Parameters:
mes - the message

handleCHOOSEPLAYER

protected void handleCHOOSEPLAYER(SOCChoosePlayer mes)
The server wants this player to choose to rob cloth or rob resources, after moving the pirate ship. Added 2012-11-17 for v2.0.00.


handleMAKEOFFER

protected void handleMAKEOFFER(SOCMakeOffer mes)
handle the "make offer" message

Parameters:
mes - the message

handleCLEAROFFER

protected void handleCLEAROFFER(SOCClearOffer mes)
handle the "clear offer" message

Parameters:
mes - the message

handleREJECTOFFER

protected void handleREJECTOFFER(SOCRejectOffer mes)
handle the "reject offer" message

Parameters:
mes - the message

handleCLEARTRADEMSG

protected void handleCLEARTRADEMSG(SOCClearTradeMsg mes)
handle the "clear trade message" message

Parameters:
mes - the message

handleDEVCARDCOUNT

protected void handleDEVCARDCOUNT(SOCDevCardCount mes)
handle the "number of development cards" message

Parameters:
mes - the message

handleDEVCARDACTION

protected void handleDEVCARDACTION(boolean isPractice,
                                   SOCDevCardAction mes)
handle the "development card action" message

Parameters:
mes - the message

handleSETPLAYEDDEVCARD

protected void handleSETPLAYEDDEVCARD(SOCSetPlayedDevCard mes)
handle the "set played dev card flag" message

Parameters:
mes - the message

handlePOTENTIALSETTLEMENTS

protected void handlePOTENTIALSETTLEMENTS(SOCPotentialSettlements mes)
                                   throws java.lang.IllegalStateException
handle the "list of potential settlements" message

Parameters:
mes - the message
Throws:
java.lang.IllegalStateException - if the board has SOCBoardLarge.getAddedLayoutPart("AL") != null but badly formed (node list number 0, or a node list number not followed by a land area number). This Added Layout Part is rarely used, and this would be discovered quickly while testing the board layout that contained it.

handleCHANGEFACE

protected void handleCHANGEFACE(SOCChangeFace mes)
handle the "change face" message

Parameters:
mes - the message

handleREJECTCONNECTION

protected void handleREJECTCONNECTION(SOCRejectConnection mes)
handle the "reject connection" message

Parameters:
mes - the message

handleLONGESTROAD

protected void handleLONGESTROAD(SOCLongestRoad mes)
handle the "longest road" message

Parameters:
mes - the message

handleLARGESTARMY

protected void handleLARGESTARMY(SOCLargestArmy mes)
handle the "largest army" message

Parameters:
mes - the message

handleSETSEATLOCK

protected void handleSETSEATLOCK(SOCSetSeatLock mes)
handle the "set seat lock" message

Parameters:
mes - the message

handleROLLDICEPROMPT

protected void handleROLLDICEPROMPT(SOCRollDicePrompt mes)
handle the "roll dice prompt" message; if we're in a game and we're the dice roller, either set the auto-roll timer, or prompt to roll or choose card.

Parameters:
mes - the message

handleRESETBOARDAUTH

protected void handleRESETBOARDAUTH(SOCResetBoardAuth mes)
handle board reset (new game with same players, same game name, new layout). Create new Game object, destroy old one. For human players, the reset message will be followed with others which will fill in the game state. For robots, they must discard game state and ask to re-join.

Parameters:
mes - the message
See Also:
SOCServer.resetBoardAndNotify(String, int), SOCGame.resetAsCopy()

handleRESETBOARDVOTEREQUEST

protected void handleRESETBOARDVOTEREQUEST(SOCResetBoardVoteRequest mes)
a player is requesting a board reset: we must update local game state, and vote unless we are the requester.

Parameters:
mes - the message

handleRESETBOARDVOTE

protected void handleRESETBOARDVOTE(SOCResetBoardVote mes)
another player has voted on a board reset request: display the vote.

Parameters:
mes - the message

handleRESETBOARDREJECT

protected void handleRESETBOARDREJECT(SOCResetBoardReject mes)
voting complete, board reset request rejected

Parameters:
mes - the message

handleGAMEOPTIONGETDEFAULTS

private void handleGAMEOPTIONGETDEFAULTS(SOCGameOptionGetDefaults mes,
                                         boolean isPractice)
process the "game option get defaults" message. If any default option's keyname is unknown, ask the server.

Since:
1.1.07
See Also:
ServerGametypeInfo

handleGAMEOPTIONINFO

private void handleGAMEOPTIONINFO(SOCGameOptionInfo mes,
                                  boolean isPractice)
process the "game option info" message by calling ServerGametypeInfo.receiveInfo(SOCGameOptionInfo). If all are now received, possibly show game info/options window for new game or existing game.

For a summary of the flags and variables involved with game options, and the client/server interaction about their values, see ServerGametypeInfo.

Since:
1.1.07

handleNEWGAMEWITHOPTIONS

private void handleNEWGAMEWITHOPTIONS(SOCNewGameWithOptions mes,
                                      boolean isPractice)
process the "new game with options" message

Since:
1.1.07

handleGAMESWITHOPTIONS

private void handleGAMESWITHOPTIONS(SOCGamesWithOptions mes,
                                    boolean isPractice)
handle the "list of games with options" message

Since:
1.1.07

handleLOCALIZEDSTRINGS

private void handleLOCALIZEDSTRINGS(SOCLocalizedStrings mes,
                                    boolean isPractice)
Localized i18n strings for game items. Added 2015-01-11 for v2.0.00.

Parameters:
isPractice - Is the server SOCPlayerClient.ClientNetwork.practiceServer, not remote?

handleSCENARIOINFO

private void handleSCENARIOINFO(SOCScenarioInfo mes,
                                boolean isPractice)
Updated scenario info. Added 2015-09-21 for v2.0.00.

Parameters:
isPractice - Is the server SOCPlayerClient.ClientNetwork.practiceServer, not remote?

handlePLAYERSTATS

private void handlePLAYERSTATS(SOCPlayerStats mes)
handle the "player stats" message

Since:
1.1.09

handleDEBUGFREEPLACE

private final void handleDEBUGFREEPLACE(SOCDebugFreePlace mes)
Handle the server's debug piece placement on/off message.

Since:
1.1.12

handleSIMPLEREQUEST

private final void handleSIMPLEREQUEST(SOCSimpleRequest mes)
Handle server responses from the "simple request" handler.

Since:
1.1.18

handleSIMPLEACTION

private final void handleSIMPLEACTION(SOCSimpleAction mes)
Handle "simple action" announcements from the server.

Since:
1.1.19

handleGAMESERVERTEXT

protected void handleGAMESERVERTEXT(SOCGameServerText mes)
Handle game server text and announcements.

Since:
2.0.00

handleDICERESULTRESOURCES

protected void handleDICERESULTRESOURCES(SOCDiceResultResources mes)
Handle all players' dice roll result resources. Looks up the game, players gain resources, and announces results.

Since:
2.0.00

handleMOVEPIECE

private final void handleMOVEPIECE(SOCMovePiece mes)
Handle moving a piece (a ship) around on the board.

Since:
2.0.00

handleREMOVEPIECE

private final void handleREMOVEPIECE(SOCRemovePiece mes)
Handle removing a piece (a ship) from the board in certain scenarios.

Since:
2.0.00

handleREVEALFOGHEX

protected void handleREVEALFOGHEX(SOCRevealFogHex mes)
Reveal a hidden hex on the board.

Since:
2.0.00

handlePIECEVALUE

protected void handlePIECEVALUE(SOCPieceValue mes)
Update a village piece's value on the board (cloth remaining) in _SC_CLVI, or a pirate fortress's strength in _SC_PIRI.

Since:
2.0.00

handleSVPTEXTMSG

protected void handleSVPTEXTMSG(SOCSVPTextMessage mes)
Text that a player has been awarded Special Victory Point(s). The server will also send a SOCPlayerElement with the SVP total. Also sent for each player's SVPs when client is joining a game in progress.

Since:
2.0.00

handleBOARDSPECIALEDGE

private void handleBOARDSPECIALEDGE(SOCBoardSpecialEdge mes)
Set or clear a special edge on the board.

Since:
2.0.00

handleINVENTORYITEMACTION

private void handleINVENTORYITEMACTION(SOCInventoryItemAction mes)
Update player inventory. Refresh our display. If it's a reject message, give feedback to the user.

Since:
2.0.00

handleSETSPECIALITEM

private void handleSETSPECIALITEM(java.util.Map<java.lang.String,SOCGame> games,
                                  SOCSetSpecialItem mes)
Handle the "set special item" message. Calls SOCDisplaylessPlayerClient.handleSETSPECIALITEM(Map, SOCSetSpecialItem), then calls PlayerClientListener to update the game display.

Parameters:
games - Games the client is playing
mes - the message
Since:
2.0.00