net.sourceforge.yagurashogi.client.core
Class PlayerMove

java.lang.Object
  extended by net.sourceforge.yagurashogi.client.core.PlayerMove

public class PlayerMove
extends java.lang.Object


Field Summary
static int DOWN
           
static int DROP_MOVE
           
static int NORMAL_MOVE
           
static int UP
           
 
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)
           
 
Method Summary
 boolean equals(PlayerMove move)
           
 java.lang.String getCode()
           
static PlayerMove getDecodedMove(java.lang.String move)
           
 java.awt.Point getDestination()
           
 java.lang.String getEncodedMove()
           
 int getSide()
           
 java.awt.Point getSource()
           
 int getType()
           
 boolean isPromoting()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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)