|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use SOCInventoryItem | |
|---|---|
| soc.client | |
| soc.game | |
| Uses of SOCInventoryItem in soc.client |
|---|
| Fields in soc.client with type parameters of type SOCInventoryItem | |
|---|---|
private java.util.ArrayList<SOCInventoryItem> |
SOCHandPanel.inventoryItems
Player's development cards/inventory items, in same order as SOCHandPanel.inventory; updated frequently by SOCHandPanel.updateDevCards(boolean) |
| Methods in soc.client with parameters of type SOCInventoryItem | |
|---|---|
private void |
SOCHandPanel.clickPlayInventorySpecialItem(SOCInventoryItem item)
Handle a click on a special inventory item (not a SOCDevCard). |
| Uses of SOCInventoryItem in soc.game |
|---|
| Subclasses of SOCInventoryItem in soc.game | |
|---|---|
class |
SOCDevCard
A single Dev Card, probably within a player's SOCInventory. |
| Fields in soc.game declared as SOCInventoryItem | |
|---|---|
private SOCInventoryItem |
SOCForceEndTurnResult.invCard
Development card type / item returned to player's inventory, or null. |
private SOCInventoryItem |
SOCGame.placingItem
The special inventory item currently being placed in state SOCGame.PLACING_INV_ITEM, or null. |
| Fields in soc.game with type parameters of type SOCInventoryItem | |
|---|---|
private java.util.List<SOCInventoryItem> |
SOCInventory.kept
Current set of the items having 1 of 3 possible states (New and not playable yet; Playable; Kept until end of game). |
private java.util.List<SOCInventoryItem> |
SOCInventory.news
Current set of the items having 1 of 3 possible states (New and not playable yet; Playable; Kept until end of game). |
private java.util.List<SOCInventoryItem> |
SOCInventory.playables
Current set of the items having 1 of 3 possible states (New and not playable yet; Playable; Kept until end of game). |
| Methods in soc.game that return SOCInventoryItem | |
|---|---|
SOCInventoryItem |
SOCGame.cancelPlaceInventoryItem(boolean forceEndTurn)
In state SOCGame.PLACING_INV_ITEM, the current player is canceling special SOCInventoryItem placement. |
SOCInventoryItem |
SOCInventoryItem.clone()
For use in set copy constructors, create and return a clone of this SOCInventoryItem. |
static SOCInventoryItem |
SOCInventoryItem.createForScenario(SOCGame ga,
int type,
boolean isPlayable,
boolean isKept,
boolean isVP,
boolean canCancel)
Factory method to create a specific scenario's special items, including item name i18n string keys appropriate for type among the scenario's item types. |
SOCInventoryItem |
SOCGame.getPlacingItem()
Get the special Inventory Item to be placed by the current player in state SOCGame.PLACING_INV_ITEM,
if any, from the most recent call to SOCGame.setPlacingItem(SOCInventoryItem). |
SOCInventoryItem |
SOCForceEndTurnResult.getReturnedInvItem()
Is a development card or inventory item being returned to the player's hand? |
SOCInventoryItem |
SOCGame.playInventoryItem(int itype)
Play a special SOCInventoryItem for the current player. |
SOCInventoryItem |
SOCInventory.removeItem(int state,
int itype)
Remove a special item or card with a certain state from this set. |
SOCInventoryItem |
SOCGame.removePort(SOCPlayer pl,
int edge)
For scenario option _SC_FTRI, remove a "gift" port
at this edge to be placed elsewhere. |
| Methods in soc.game that return types with arguments of type SOCInventoryItem | |
|---|---|
java.util.List<SOCInventoryItem> |
SOCInventory.getByState(int cState)
Get the cards and items, if any, having this state. |
| Methods in soc.game with parameters of type SOCInventoryItem | |
|---|---|
void |
SOCInventory.addItem(SOCInventoryItem item)
Add a special item or dev card to this set. |
void |
SOCGame.setPlacingItem(SOCInventoryItem item)
Set or clear the special Inventory Item to be placed by the current player in state SOCGame.PLACING_INV_ITEM. |
| Constructors in soc.game with parameters of type SOCInventoryItem | |
|---|---|
SOCForceEndTurnResult(int res,
SOCInventoryItem item)
Creates a new SOCForceEndTurnResult object, optionally with a development card or inventory option regained (returned to the player's hand). |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||