|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cvut.agents.rph.reversi.ReversiMove
public class ReversiMove
A class representing one reversi move. Author: Ondrej Vanek Date: 10/3/12 Time: 10:52 AM
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 |
---|
private static final long serialVersionUID
private int x
private int y
private long timeInMilis
Constructor Detail |
---|
public ReversiMove(int x, int y)
ReversiController
.
x
- X coordinate of the stone.y
- Y coordinate of the stone.Method Detail |
---|
long getTimeInMilis()
void setTimeInMilis(long timeInMilis)
timeInMilis
- duration of the move in miliseconds.public int getX()
public int getY()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |