net.sourceforge.yagurashogi.client.core
Class PlayerMove
java.lang.Object
net.sourceforge.yagurashogi.client.core.PlayerMove
public class PlayerMove
- extends java.lang.Object
Constructor Summary |
PlayerMove(int srcX,
int srcY,
int destX,
int destY,
int side,
java.lang.String pieceCode,
boolean promoting)
|
PlayerMove(int x,
int y,
int side,
java.lang.String pieceCode)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOWN
public static final int DOWN
- See Also:
- Constant Field Values
UP
public static final int UP
- See Also:
- Constant Field Values
DROP_MOVE
public static final int DROP_MOVE
- See Also:
- Constant Field Values
NORMAL_MOVE
public static final int NORMAL_MOVE
- See Also:
- Constant Field Values
PlayerMove
public PlayerMove(int x,
int y,
int side,
java.lang.String pieceCode)
PlayerMove
public PlayerMove(int srcX,
int srcY,
int destX,
int destY,
int side,
java.lang.String pieceCode,
boolean promoting)
isPromoting
public boolean isPromoting()
getType
public int getType()
getSource
public java.awt.Point getSource()
getDestination
public java.awt.Point getDestination()
getSide
public int getSide()
getCode
public java.lang.String getCode()
getEncodedMove
public java.lang.String getEncodedMove()
getDecodedMove
public static PlayerMove getDecodedMove(java.lang.String move)
equals
public boolean equals(PlayerMove move)