VASSAL.build.module
Class PlayerHand

java.lang.Object
  |
  +--VASSAL.build.AbstractBuildable
        |
        +--VASSAL.build.AbstractConfigurable
              |
              +--VASSAL.build.module.Map
                    |
                    +--VASSAL.build.module.PrivateMap
                          |
                          +--VASSAL.build.module.PlayerHand
All Implemented Interfaces:
AutoConfigurable, Buildable, Configurable, java.awt.dnd.DropTargetListener, java.util.EventListener, java.awt.event.FocusListener, GameComponent, java.awt.event.MouseListener, java.awt.event.MouseMotionListener

public class PlayerHand
extends PrivateMap


Inner classes inherited from class VASSAL.build.module.PrivateMap
PrivateMap.View
 
Inner classes inherited from class VASSAL.build.module.Map
Map.IconConfig, Map.View
 
Inner classes inherited from class VASSAL.build.AutoConfigurable
AutoConfigurable.Util
 
Fields inherited from class VASSAL.build.module.PrivateMap
SIDE, USE_BOARDS, VISIBLE
 
Fields inherited from class VASSAL.build.module.Map
ALLOW_MULTIPLE, boards, BUTTON_NAME, EDGE_HEIGHT, EDGE_WIDTH, edgeBuffer, HIGHLIGHT_COLOR, HIGHLIGHT_THICKNESS, highlighter, HOTKEY, ICON, launchButton, mainWindowDock, MARK_MOVED, markMovedOption, metrics, mouseListenerStack, multicaster, NAME, picker, pieces, scroll, theMap, toolBar, USE_LAUNCH_BUTTON, useLaunchButton, zoom
 
Fields inherited from class VASSAL.build.AbstractConfigurable
changeSupport, config, name
 
Fields inherited from class VASSAL.build.AbstractBuildable
buildComponents
 
Fields inherited from interface VASSAL.build.Configurable
NAME_PROPERTY
 
Constructor Summary
PlayerHand()
           
 
Method Summary
 void build(org.w3c.dom.Element el)
          Build the object
static java.lang.String getConfigureTypeName()
           
 HelpFile getHelpFile()
           
 StackMetrics getStackMetrics()
          Every map must include a StackMetrics as one of its build components, which governs the stacking behavior of GamePieces on the map
 java.awt.Dimension mapSize()
           
 Command placeAt(GamePiece piece, java.awt.Point pt)
          Place a piece at the destination point.
 
Methods inherited from class VASSAL.build.module.PrivateMap
addTo, createParentFrame, getAttributeDescriptions, getAttributeNames, getAttributeTypes, getAttributeValueString, getView, isAccessibleTo, setAttribute, setBoards, setup, shouldDockIntoMainWindow
 
Methods inherited from class VASSAL.build.module.Map
addDrawComponent, addLocalMouseListener, addPiece, appendToTitle, boundingBoxOf, centerAt, centerAt, clearMapBorder, componentCoordinates, componentRectangle, dragEnter, dragExit, dragOver, drawBoards, drawBoardsInRegion, drawDrawable, drawPieces, drawPiecesInRegion, drop, dropActionChanged, ensureVisible, findBoard, findPiece, focusGained, focusLost, getAllBoards, getAllowableConfigureComponents, getAttributeVisibility, getBoardByName, getBoardPicker, getDefaultWindowTitle, getDragGestureListener, getEdgeBuffer, getHighlighter, getId, getMapById, getMapName, getPieceCollection, getPieces, getPreferredSize, getRestoreCommand, getToolBar, getZoom, getZoomer, indexOf, isPiecesVisible, locationName, mapCoordinates, mapRectangle, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paint, paint, paintRegion, placeOrMerge, popMouseListener, pushMouseListener, removeDrawComponent, removeFrom, removeLocalMouseListener, removePiece, repaint, repaint, repaint, reposition, scroll, scrollAtEdge, selectionBoundsOf, setBoardBoundaries, setBoardPicker, setDragGestureListener, setHighlighter, setID, setMapName, setPieceCollection, setPiecesVisible, setStackMetrics, setZoomer, snapTo
 
Methods inherited from class VASSAL.build.AbstractConfigurable
addPropertyChangeListener, getConfigureComponents, getConfigureName, getConfigurer, remove, setConfigureName
 
Methods inherited from class VASSAL.build.AbstractBuildable
add, getBuildComponents, getBuildElement, getComponents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface VASSAL.build.Configurable
addPropertyChangeListener, getConfigureComponents, getConfigureName, getConfigurer, remove
 
Methods inherited from interface VASSAL.build.Buildable
add, getBuildElement
 

Constructor Detail

PlayerHand

public PlayerHand()
Method Detail

build

public void build(org.w3c.dom.Element el)
Description copied from interface: Buildable
Build the object
Overrides:
build in class PrivateMap
Following copied from interface: VASSAL.build.Buildable
Parameters:
e - the XML element containing the object data

getConfigureTypeName

public static java.lang.String getConfigureTypeName()

getHelpFile

public HelpFile getHelpFile()
Overrides:
getHelpFile in class PrivateMap
Following copied from interface: VASSAL.build.Configurable
Returns:
a HelpFilte describing how to use and configure this component

getStackMetrics

public StackMetrics getStackMetrics()
Description copied from class: Map
Every map must include a StackMetrics as one of its build components, which governs the stacking behavior of GamePieces on the map
Overrides:
getStackMetrics in class Map
Following copied from class: VASSAL.build.module.Map
Returns:
the StackMetrics for this map

mapSize

public java.awt.Dimension mapSize()
Overrides:
mapSize in class Map
Following copied from class: VASSAL.build.module.Map
Returns:
the size of the map in pixels at 100% zoom, including the edge buffer

placeAt

public Command placeAt(GamePiece piece,
                       java.awt.Point pt)
Description copied from class: Map
Place a piece at the destination point. If necessary, remove the piece from its parent Stack or Map
Overrides:
placeAt in class Map
Following copied from class: VASSAL.build.module.Map
Returns:
a Command that reproduces this action