cz.cvut.agents.rph.reversi
Class ReversiMove

java.lang.Object
  extended by cz.cvut.agents.rph.reversi.ReversiMove
All Implemented Interfaces:
java.io.Serializable

public class ReversiMove
extends java.lang.Object
implements java.io.Serializable

A class representing one reversi move. Author: Ondrej Vanek Date: 10/3/12 Time: 10:52 AM

See Also:
Serialized Form

Field Summary
private static long serialVersionUID
          The answer to life, the universe and everything.
private  long timeInMilis
           
private  int x
          X coordinate of the stone.
private  int y
          Y coordinate of the stone.
 
Constructor Summary
ReversiMove(int x, int y)
          Creates a move which can be processed by the ReversiController.
 
Method Summary
(package private)  long getTimeInMilis()
          Gets the duration of the move in miliseconds.
 int getX()
          Gets X coordinate of the stone.
 int getY()
          Get Y coordinate of the stone.
(package private)  void setTimeInMilis(long timeInMilis)
          Sets the duration of the move in miliseconds.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
The answer to life, the universe and everything.

See Also:
Constant Field Values

x

private int x
X coordinate of the stone.


y

private int y
Y coordinate of the stone.


timeInMilis

private long timeInMilis
Constructor Detail

ReversiMove

public ReversiMove(int x,
                   int y)
Creates a move which can be processed by the ReversiController.

Parameters:
x - X coordinate of the stone.
y - Y coordinate of the stone.
Method Detail

getTimeInMilis

long getTimeInMilis()
Gets the duration of the move in miliseconds.

Returns:
duration of the move in miliseconds.

setTimeInMilis

void setTimeInMilis(long timeInMilis)
Sets the duration of the move in miliseconds.

Parameters:
timeInMilis - duration of the move in miliseconds.

getX

public int getX()
Gets X coordinate of the stone.

Returns:
X coordinate of the stone.

getY

public int getY()
Get Y coordinate of the stone.

Returns:
Y coordinate of the stone.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object