|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrules.PieceFactory
public class PieceFactory
Go from a piece name to a piece instance.
Constructor Summary | |
---|---|
PieceFactory()
|
Method Summary | |
---|---|
static Piece |
newPiece(Piece p)
|
static Piece |
newPiece(Piece p,
int num)
Copy a piece, with a new lastMove. |
static Piece |
pieceFromChar(char s)
Go from a short name to a piece, lowercase = black. |
static Piece |
pieceFromChar(char s,
int num)
Go from a short name to a piece, lowercase = black. |
static Piece |
pieceFromString(String piece,
Color p)
Go from a long name to a piece. |
static Piece |
pieceFromString(String piece,
Color p,
int num)
Go from a long name to a piece. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PieceFactory()
Method Detail |
---|
public static Piece newPiece(Piece p, int num)
public static Piece newPiece(Piece p)
public static Piece pieceFromChar(char s)
public static Piece pieceFromChar(char s, int num)
public static Piece pieceFromString(String piece, Color p)
public static Piece pieceFromString(String piece, Color p, int num)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |