soc.robot
Class SOCPossiblePickSpecialItem

java.lang.Object
  extended by soc.robot.SOCPossiblePiece
      extended by soc.robot.SOCPossiblePickSpecialItem

public class SOCPossiblePickSpecialItem
extends SOCPossiblePiece

This is a possible Special Item Pick that we can request from the server, with a SOCSetSpecialItem.OP_PICK message.

Since:
2.0.00
Author:
Jeremy D Monin <jeremy@nand.net>

Field Summary
 SOCResourceSet cost
          The resource costs if any, or null
 int gi
          The pick request's game index
 int pi
          The pick request's player index
 java.lang.String typeKey
          The special item's typeKey, for SOCSetSpecialItem.typeKey
 
Fields inherited from class soc.robot.SOCPossiblePiece
biggestThreats, CARD, CITY, coord, eta, hasBeenExpanded, MAXPLUSONE, MIN, PICK_SPECIAL, pieceType, player, ROAD, score, SETTLEMENT, SHIP, threats, threatUpdatedFlag, updated
 
Constructor Summary
SOCPossiblePickSpecialItem(SOCPlayer pl, java.lang.String type, int gi, int pi, int eta, SOCResourceSet cost)
          Constructor.
 
Method Summary
 
Methods inherited from class soc.robot.SOCPossiblePiece
addBiggestThreat, addThreat, addToScore, clearBiggestThreats, clearThreats, clearUpdateFlag, getBiggestThreats, getCoordinates, getETA, getPlayer, getResourcesToBuild, getScore, getThreats, getType, hasBeenExpanded, isETAUpdated, isThreatUpdated, resetExpandedFlag, resetScore, setETA, setExpandedFlag, subtractFromScore, threatUpdated, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

typeKey

public final java.lang.String typeKey
The special item's typeKey, for SOCSetSpecialItem.typeKey


gi

public final int gi
The pick request's game index


pi

public final int pi
The pick request's player index


cost

public final SOCResourceSet cost
The resource costs if any, or null

Constructor Detail

SOCPossiblePickSpecialItem

public SOCPossiblePickSpecialItem(SOCPlayer pl,
                                  java.lang.String type,
                                  int gi,
                                  int pi,
                                  int eta,
                                  SOCResourceSet cost)
Constructor.

Parameters:
pl - the owner
type - the special item's typeKey, for SOCSetSpecialItem.typeKey
gi - the pick request's game index
pi - the pick request's player index
eta - the ETA
cost - the resource costs if any, or null