|
|||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||
| Packages that use SOCGame | |
| soc.client | |
| soc.game | |
| soc.robot | |
| soc.server | |
| Uses of SOCGame in soc.client |
| Fields in soc.client declared as SOCGame | |
protected SOCGame |
SOCPlayerInterface.game
the game associated with this interface |
protected SOCGame |
SOCHandPanel.game
|
private SOCGame |
SOCFaceButton.game
|
private SOCGame |
SOCBoardPanel.game
The game which this board is a part of |
| Methods in soc.client that return SOCGame | |
SOCGame |
SOCPlayerInterface.getGame()
|
SOCGame |
SOCHandPanel.getGame()
|
| Methods in soc.client with parameters of type SOCGame | |
void |
SOCPlayerInterface.resetBoard(SOCGame newGame,
int rejoinPlayerNumber,
int requesterNumber)
Handle board reset (new game with same players, same game name). |
void |
SOCPlayerClient.buyDevCard(SOCGame ga)
request to buy a development card |
void |
SOCPlayerClient.buildRequest(SOCGame ga,
int piece)
request to build something |
void |
SOCPlayerClient.cancelBuildRequest(SOCGame ga,
int piece)
request to cancel building something |
void |
SOCPlayerClient.putPiece(SOCGame ga,
SOCPlayingPiece pp)
put a piece on the board |
void |
SOCPlayerClient.moveRobber(SOCGame ga,
SOCPlayer pl,
int coord)
the player wants to move the robber |
void |
SOCPlayerClient.sendText(SOCGame ga,
java.lang.String me)
send a text message to the people in the game |
void |
SOCPlayerClient.leaveGame(SOCGame ga)
the user leaves the given game |
void |
SOCPlayerClient.sitDown(SOCGame ga,
int pn)
the user sits down to play |
void |
SOCPlayerClient.startGame(SOCGame ga)
the user is starting the game |
void |
SOCPlayerClient.rollDice(SOCGame ga)
the user rolls the dice |
void |
SOCPlayerClient.endTurn(SOCGame ga)
the user is done with the turn |
void |
SOCPlayerClient.discard(SOCGame ga,
SOCResourceSet rs)
the user wants to discard |
void |
SOCPlayerClient.choosePlayer(SOCGame ga,
int pn)
the user chose a player to steal from |
void |
SOCPlayerClient.rejectOffer(SOCGame ga)
the user is rejecting the current offers |
void |
SOCPlayerClient.acceptOffer(SOCGame ga,
int from)
the user is accepting an offer |
void |
SOCPlayerClient.clearOffer(SOCGame ga)
the user is clearing an offer |
void |
SOCPlayerClient.bankTrade(SOCGame ga,
SOCResourceSet give,
SOCResourceSet get)
the user wants to trade with the bank |
void |
SOCPlayerClient.offerTrade(SOCGame ga,
SOCTradeOffer offer)
the user is making an offer to trade |
void |
SOCPlayerClient.playDevCard(SOCGame ga,
int dc)
the user wants to play a development card |
void |
SOCPlayerClient.discoveryPick(SOCGame ga,
SOCResourceSet rscs)
the user picked 2 resources to discover |
void |
SOCPlayerClient.monopolyPick(SOCGame ga,
int res)
the user picked a resource to monopolize |
void |
SOCPlayerClient.changeFace(SOCGame ga,
int id)
the user is changing the face image |
void |
SOCPlayerClient.lockSeat(SOCGame ga,
int pn)
the user is locking a seat |
void |
SOCPlayerClient.unlockSeat(SOCGame ga,
int pn)
the user is unlocking a seat |
void |
SOCPlayerClient.resetBoardRequest(SOCGame ga)
Player wants to request to reset the board (same players, new game, new layout). |
void |
SOCPlayerClient.resetBoardVote(SOCGame ga,
int pn,
boolean voteYes)
Player is responding to a board-reset vote from another player. |
boolean |
SOCPlayerClient.doLocalCommand(SOCGame ga,
java.lang.String cmd)
handle local client commands for games |
void |
SOCPlayerClient.considerMove(SOCGame ga,
java.lang.String pname,
SOCPlayingPiece piece)
send a command to the server with a message asking a robot to show the debug info for a possible move after a move has been made |
void |
SOCPlayerClient.considerTarget(SOCGame ga,
java.lang.String pname,
SOCPlayingPiece piece)
send a command to the server with a message asking a robot to show the debug info for a possible move before a move has been made |
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). |
void |
SOCDisplaylessPlayerClient.buyDevCard(SOCGame ga)
request to buy a development card |
void |
SOCDisplaylessPlayerClient.buildRequest(SOCGame ga,
int piece)
request to build something |
void |
SOCDisplaylessPlayerClient.cancelBuildRequest(SOCGame ga,
int piece)
request to cancel building something |
void |
SOCDisplaylessPlayerClient.putPiece(SOCGame ga,
SOCPlayingPiece pp)
put a piece on the board |
void |
SOCDisplaylessPlayerClient.moveRobber(SOCGame ga,
SOCPlayer pl,
int coord)
the player wants to move the robber |
void |
SOCDisplaylessPlayerClient.sendText(SOCGame ga,
java.lang.String me)
send a text message to the people in the game |
void |
SOCDisplaylessPlayerClient.leaveGame(SOCGame ga)
the user leaves the given game |
void |
SOCDisplaylessPlayerClient.sitDown(SOCGame ga,
int pn)
the user sits down to play |
void |
SOCDisplaylessPlayerClient.startGame(SOCGame ga)
the user is starting the game |
void |
SOCDisplaylessPlayerClient.rollDice(SOCGame ga)
the user rolls the dice |
void |
SOCDisplaylessPlayerClient.endTurn(SOCGame ga)
the user is done with the turn |
void |
SOCDisplaylessPlayerClient.discard(SOCGame ga,
SOCResourceSet rs)
the user wants to discard |
void |
SOCDisplaylessPlayerClient.choosePlayer(SOCGame ga,
int pn)
the user chose a player to steal from |
void |
SOCDisplaylessPlayerClient.rejectOffer(SOCGame ga)
the user is rejecting the current offers |
void |
SOCDisplaylessPlayerClient.acceptOffer(SOCGame ga,
int from)
the user is accepting an offer |
void |
SOCDisplaylessPlayerClient.clearOffer(SOCGame ga)
the user is clearing an offer |
void |
SOCDisplaylessPlayerClient.bankTrade(SOCGame ga,
SOCResourceSet give,
SOCResourceSet get)
the user wants to trade with the bank |
void |
SOCDisplaylessPlayerClient.offerTrade(SOCGame ga,
SOCTradeOffer offer)
the user is making an offer to trade |
void |
SOCDisplaylessPlayerClient.playDevCard(SOCGame ga,
int dc)
the user wants to play a development card |
void |
SOCDisplaylessPlayerClient.discoveryPick(SOCGame ga,
SOCResourceSet rscs)
the user picked 2 resources to discover |
void |
SOCDisplaylessPlayerClient.monopolyPick(SOCGame ga,
int res)
the user picked a resource to monopolize |
void |
SOCDisplaylessPlayerClient.changeFace(SOCGame ga,
int id)
the user is changing the face image |
void |
SOCDisplaylessPlayerClient.lockSeat(SOCGame ga,
int pn)
the user is locking a seat |
void |
SOCDisplaylessPlayerClient.unlockSeat(SOCGame ga,
int pn)
the user is unlocking a seat |
void |
SOCBuildingPanel.clickBuildingButton(SOCGame game,
SOCPlayerClient client,
java.lang.String target,
boolean doNotClearPopup)
Handle a click on a building-panel button. |
| Constructors in soc.client with parameters of type SOCGame | |
SOCPlayerInterface(java.lang.String title,
SOCPlayerClient cl,
SOCGame ga)
create a new player interface |
|
| Uses of SOCGame in soc.game |
| Fields in soc.game declared as SOCGame | |
private SOCGame |
SOCPlayer.game
the game that this player is in |
| Methods in soc.game that return SOCGame | |
SOCGame |
SOCPlayer.getGame()
|
SOCGame |
SOCGame.resetAsCopy()
Create a new game with same players and name, new board; like calling constructor otherwise. |
| Methods in soc.game with parameters of type SOCGame | |
void |
SOCOldLRStats.restoreOldStats(SOCGame ga)
restore the old stats |
| Constructors in soc.game with parameters of type SOCGame | |
SOCPlayer(int pn,
SOCGame ga)
create a new player |
|
SOCOldLRStats(SOCGame ga)
constructor |
|
| Uses of SOCGame in soc.robot |
| Fields in soc.robot declared as SOCGame | |
protected SOCGame |
SOCRobotNegotiator.game
|
protected SOCGame |
SOCRobotDM.game
|
protected SOCGame |
SOCRobotBrain.game
The game we are playing |
| Methods in soc.robot that return SOCGame | |
SOCGame |
SOCRobotBrain.getGame()
|
| Methods in soc.robot with parameters of type SOCGame | |
protected void |
SOCRobotClient.sendRecordsText(SOCGame ga,
java.util.Vector record)
Call sendText on each string element of record. |
void |
SOCRobotClient.leaveGame(SOCGame ga)
the user leaves the given game |
static java.util.HashMap |
SOCPlayerTracker.tryPutPiece(SOCPlayingPiece piece,
SOCGame game,
java.util.HashMap trackers)
See how building a piece impacts the game |
static void |
SOCPlayerTracker.tryPutPieceNoCopy(SOCPlayingPiece piece,
SOCGame game,
java.util.HashMap trackers)
same as tryPutPiece, but we don't make a copy of the player trackers instead you supply the copy |
static void |
SOCPlayerTracker.undoTryPutPiece(SOCPlayingPiece piece,
SOCGame game)
Reset the game back to before we put the temp piece |
| Constructors in soc.robot with parameters of type SOCGame | |
SOCRobotBrain(SOCRobotClient rc,
SOCRobotParameters params,
SOCGame ga,
CappedQueue mq)
Create a robot brain to play a game |
|
| Uses of SOCGame in soc.server |
| Fields in soc.server declared as SOCGame | |
SOCGame |
SOCGameBoardReset.newGame
The new game, created from an old game by resetAsCopy() |
| Methods in soc.server that return SOCGame | |
SOCGame |
SOCGameList.getGameData(java.lang.String gaName)
|
| Methods in soc.server with parameters of type SOCGame | |
private void |
SOCServer.forceGamePlayerDiscard(SOCGame cg,
int cpn,
StringConnection c,
java.lang.String plName,
int pn)
Force this player (not current player) to discard, and report resources to all players. |
private void |
SOCServer.readyGameAskRobotsJoin(SOCGame ga,
StringConnection[] robotSeats)
Fill all the unlocked empty seats with robots. |
private void |
SOCServer.endGameTurn(SOCGame ga)
Pre-checking already done, end the current player's turn in this game. |
private void |
SOCServer.forceEndGameTurn(SOCGame ga,
java.lang.String plName)
Try to force-end the current player's turn in this game. |
private void |
SOCServer.joinGame(SOCGame gameData,
StringConnection c,
boolean isReset)
Client has been approved to join game; send the entire state of the game to client, send client join event to other players. |
private void |
SOCServer.sitDown(SOCGame ga,
StringConnection c,
int pn,
boolean robot,
boolean isReset)
This player is sitting down at the game |
protected void |
SOCServer.reportRobbery(SOCGame ga,
SOCPlayer pe,
SOCPlayer vi,
int rsrc)
The current player is stealing from another player. |
protected void |
SOCServer.sendGameState(SOCGame ga)
send the current state of the game with a message. |
protected boolean |
SOCServer.sendGameState(SOCGame ga,
boolean sendRollPrompt)
send the current state of the game with a message. |
protected void |
SOCServer.sendGameStateOVER(SOCGame ga)
If game is OVER, send messages reporting winner, final score, and each player's victory-point cards. |
protected void |
SOCServer.reportTrade(SOCGame ga,
int offering,
int accepting)
report a trade that has taken place between players, using SOCPlayerElement
and SOCGameTextMsg messages. |
protected void |
SOCServer.reportBankTrade(SOCGame ga,
SOCResourceSet give,
SOCResourceSet get)
report that the current player traded with the bank or a port, using SOCPlayerElement and SOCGameTextMsg messages. |
protected boolean |
SOCServer.checkTurn(StringConnection c,
SOCGame ga)
make sure it's the player's turn |
protected void |
SOCServer.startGame(SOCGame ga)
do the stuff you need to do to start a game |
private void |
SOCServer.sendTurn(SOCGame ga,
boolean sendRollPrompt)
send whose turn it is. |
private SOCBoardLayout |
SOCServer.getBoardLayoutMessage(SOCGame ga)
put together the SOCBoardLayout message |
protected void |
SOCServer.storeGameScores(SOCGame ga)
if all the players stayed for the whole game, record the scores in the database |
protected void |
SOCServer.giveResources(java.lang.String mes,
SOCGame game)
this is a debugging command that gives resources to a player |
protected void |
SOCServer.broadcastGameStats(SOCGame ga)
this broadcasts game information to all people connected used to display the scores on the player client |
protected void |
SOCServer.giveDevCard(java.lang.String mes,
SOCGame game)
this is a debugging command that gives a dev card to a player |
static int |
SOCGameBoardReset.sortPlayerConnections(SOCGame newGame,
SOCGame oldGame,
java.util.Vector memberConns,
StringConnection[] humanConns,
StringConnection[] robotConns)
Grab connection information for this game's humans and robots. |
| Constructors in soc.server with parameters of type SOCGame | |
SOCGameBoardReset(SOCGame oldGame,
java.util.Vector memberConns)
Create a SOCGameReset: Extract data, reset the old game, and gather new data. |
|
|
|||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||