java.lang.Object
cxtable.xtable_chess.xPawn
- All Implemented Interfaces:
- xPiece
- public class xPawn
- extends java.lang.Object
- implements xPiece
|
Constructor Summary |
xPawn(int sd,
int _x,
int _y)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
control
private java.lang.String control
name
private java.lang.String name
x
private int x
y
private int y
moves
private int moves
promoted
private boolean promoted
xrm
private xRookMoves xrm
xbm
private xBishopMoves xbm
playernum
private int playernum
WHITE
public static final int WHITE
- See Also:
- Constant Field Values
GREEN
public static final int GREEN
- See Also:
- Constant Field Values
BLACK
public static final int BLACK
- See Also:
- Constant Field Values
RED
public static final int RED
- See Also:
- Constant Field Values
xPawn
public xPawn(int sd,
int _x,
int _y)
moved
public int moved()
- Specified by:
moved in interface xPiece
getSide
public int getSide()
- Specified by:
getSide in interface xPiece
getControl
public java.lang.String getControl()
- Specified by:
getControl in interface xPiece
setMoves
public void setMoves(int i)
- Specified by:
setMoves in interface xPiece
getName
public java.lang.String getName()
- Specified by:
getName in interface xPiece
move
public void move(int _xx,
int _yy)
- Specified by:
move in interface xPiece
valid_spots
public java.util.Vector valid_spots()
- Specified by:
valid_spots in interface xPiece
getx
public int getx()
- Specified by:
getx in interface xPiece
gety
public int gety()
- Specified by:
gety in interface xPiece
valid_promote
public java.util.Vector valid_promote()
clr
public void clr()
- Specified by:
clr in interface xPiece
ded
public void ded(int ii)
- Specified by:
ded in interface xPiece