|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.tabacha.cgo.Move de.tabacha.cgo.Put
A move where a piece is put on the board.
$Id: Put.java,v 1.5 2004/07/17 22:18:36 mk Exp $
Field Summary |
Fields inherited from interface de.tabacha.cgo.Constants |
BALL, COL_COUNT, DCOL, DOWN, DROW, E, EMPTY, FIRST_DIRECTION, KICK_OFF_FIELD, LAST_DIRECTION, N, NE, NW, OPPOSITE, PIECE, ROW_COUNT, S, SE, SW, UP, UPSIDEDOWN, W |
Constructor Summary | |
Put(Field field)
Constructor. |
|
Put(int row,
int col)
Constructor. |
Method Summary | |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
Field |
getField()
Returns the field where the figure is set. |
int |
hashCode()
|
java.lang.String |
toString()
|
Move |
upsideDown()
The move returned is exactly this move mirrored along the central row. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Put(Field field)
field
- Where the figure is put on the field.public Put(int row, int col)
Method Detail |
public java.lang.Object clone()
public boolean equals(java.lang.Object obj)
public Move upsideDown()
Move
upsideDown
in class Move
public Field getField()
public int hashCode()
public java.lang.String toString()
toString
in class Move
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |