VASSAL.counters
Class PieceCloner

java.lang.Object
  |
  +--VASSAL.counters.PieceCloner

public class PieceCloner
extends java.lang.Object

Utility class for cloning GamePieces


Constructor Summary
protected PieceCloner()
           
 
Method Summary
 GamePiece clonePiece(GamePiece piece)
          Create a new instance that is a clone of the given piece
static PieceCloner getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PieceCloner

protected PieceCloner()
Method Detail

getInstance

public static PieceCloner getInstance()

clonePiece

public GamePiece clonePiece(GamePiece piece)
Create a new instance that is a clone of the given piece
Returns:
the new instance