de.tabacha.cgo
Class Put

java.lang.Object
  extended byde.tabacha.cgo.Move
      extended byde.tabacha.cgo.Put
All Implemented Interfaces:
java.lang.Cloneable, Constants, java.io.Serializable

public final class Put
extends Move

A move where a piece is put on the board.
$Id: Put.java,v 1.5 2004/07/17 22:18:36 mk Exp $

Version:
$Revision: 1.5 $
See Also:
Serialized Form
Threadsafe?
false Same as Field.

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

Put

public Put(Field field)
Constructor.

Parameters:
field - Where the figure is put on the field.

Put

public Put(int row,
           int col)
Constructor.

Method Detail

clone

public java.lang.Object clone()

equals

public boolean equals(java.lang.Object obj)

upsideDown

public Move upsideDown()
Description copied from class: Move
The move returned is exactly this move mirrored along the central row.

Specified by:
upsideDown in class Move

getField

public Field getField()
Returns the field where the figure is set.


hashCode

public int hashCode()

toString

public java.lang.String toString()
Specified by:
toString in class Move