Package VASSAL.counters
Class KeyBuffer
java.lang.Object
VASSAL.counters.KeyBuffer
public class KeyBuffer extends Object
-
Method Summary
Modifier and Type Method Description voidadd(GamePiece p)List<GamePiece>asList()voidclear()booleancontains(GamePiece p)booleancontainsChild(Stack stack)static KeyBuffergetBuffer()PointgetClickPoint()Enumeration<GamePiece>getPieces()Deprecated.Iterator<GamePiece>getPiecesIterator()static voidinit(KeyBuffer kb)booleanisEmpty()CommandkeyCommand(KeyStroke stroke)voidremove(GamePiece p)voidsetClickPoint(Point p)voidsort(Comparator<GamePiece> comp)
-
Method Details
-
init
-
getBuffer
-
setClickPoint
-
getClickPoint
-
add
-
clear
public void clear() -
remove
-
contains
-
isEmpty
public boolean isEmpty() -
keyCommand
-
asList
-
getPiecesIterator
-
getPieces
Deprecated.UsegetPiecesIterator()instead. -
sort
-
containsChild
- Parameters:
stack-- Returns:
- true if a child of the specified Stack is selected
-
getPiecesIterator()instead.