|
|||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||
| Packages that use SOCPlayingPiece | |
| soc.client | |
| soc.game | |
| soc.robot | |
| Uses of SOCPlayingPiece in soc.client |
| Fields in soc.client declared as SOCPlayingPiece | |
private SOCPlayingPiece |
SOCBoardPanel.BoardToolTip.hoverPiece
Object last pointed at; null for hexes and ports |
| Methods in soc.client with parameters of type SOCPlayingPiece | |
void |
SOCPlayerClient.putPiece(SOCGame ga,
SOCPlayingPiece pp)
put a piece on the board |
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 |
void |
SOCDisplaylessPlayerClient.putPiece(SOCGame ga,
SOCPlayingPiece pp)
put a piece on the board |
| Uses of SOCPlayingPiece in soc.game |
| Subclasses of SOCPlayingPiece in soc.game | |
class |
SOCCity
A city playing piece |
class |
SOCRoad
A road playing piece |
class |
SOCSettlement
A settlement playing piece |
| Methods in soc.game that return SOCPlayingPiece | |
SOCPlayingPiece |
SOCBoard.settlementAtNode(int nodeCoord)
If there's a settlement or city at this node, find it. |
SOCPlayingPiece |
SOCBoard.roadAtEdge(int edgeCoord)
If there's a road placed at this node, find it. |
| Methods in soc.game with parameters of type SOCPlayingPiece | |
void |
SOCPlayerNumbers.updateNumbers(SOCPlayingPiece piece,
SOCBoard board)
update the numbers data given a piece and a board, add numbers for this player to the list |
void |
SOCPlayerNumbers.undoUpdateNumbers(SOCPlayingPiece piece,
SOCBoard board)
undo the updating of the numbers data given a piece and a board, remove numbers for this player from the list |
void |
SOCPlayer.putPiece(SOCPlayingPiece piece)
put a piece into play note: placing a city automatically removes the settlement there |
void |
SOCPlayer.undoPutPiece(SOCPlayingPiece piece)
undo the putting of a piece |
void |
SOCPlayer.removePiece(SOCPlayingPiece piece)
remove a player's piece from the board2 and put it back in the player's hand NOTE: Does NOT update the potential building lists for removing settlements or cities. |
void |
SOCPlayer.updatePotentials(SOCPlayingPiece piece)
update the arrays that keep track of where this player can play a piece |
void |
SOCGame.putPiece(SOCPlayingPiece pp)
Put this piece on the board and update all related game state. |
void |
SOCGame.putTempPiece(SOCPlayingPiece pp)
a temporary piece has been put on the board |
protected void |
SOCGame.undoPutPieceCommon(SOCPlayingPiece pp)
undo the putting of a temporary or initial piece |
void |
SOCGame.undoPutTempPiece(SOCPlayingPiece pp)
undo the putting of a temporary piece |
void |
SOCGame.undoPutInitSettlement(SOCPlayingPiece pp)
undo the putting of an initial settlement. |
void |
SOCBoard.putPiece(SOCPlayingPiece pp)
put a piece on the board |
void |
SOCBoard.removePiece(SOCPlayingPiece piece)
remove a piece from the board |
| Uses of SOCPlayingPiece in soc.robot |
| Fields in soc.robot declared as SOCPlayingPiece | |
protected SOCPlayingPiece |
SOCRobotBrain.whatWeWantToBuild
This is what we want to build |
protected SOCPlayingPiece |
SOCRobotBrain.whatWeFailedToBuild
This is what we tried building this turn, but the server said it was an illegal move (due to a bug in our robot). |
(package private) SOCPlayingPiece |
SOCBuildPossibility.piece
|
| Methods in soc.robot that return SOCPlayingPiece | |
SOCPlayingPiece |
SOCBuildPossibility.getPiece()
|
| Methods in soc.robot with parameters of type SOCPlayingPiece | |
protected void |
SOCRobotBrain.cancelWrongPiecePlacementLocal(SOCPlayingPiece cancelPiece)
JM TODO: javadoc out of trackers, without sending anything to server |
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 SOCPlayingPiece | |
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 |
|
|
|||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||