All Packages Class Hierarchy This Package Previous Next Index
Class NetworkGUI.Move
java.lang.Object
|
+----NetworkGUI.Move
- public class Move
- extends Object
A public class for holding all the fields in a move.
Because there are no interesting invariants enforced by this class,
fields, all fields are public. The x coordinates index in the
horizontal direction (left to right) and the y coordinates index
in the vertical direction (up to down).
-
ADD
-
-
moveKind
-
-
QUIT
-
-
STEP
-
-
x1
-
-
x2
-
-
y1
-
-
y2
-
-
Move()
- Construct a quit move.
-
Move(int, int)
- Construct an add move.
-
Move(int, int, int, int)
- Construct a step move.
-
toString()
-
QUIT
public static final int QUIT
ADD
public static final int ADD
STEP
public static final int STEP
moveKind
public int moveKind
x1
public int x1
y1
public int y1
x2
public int x2
y2
public int y2
Move
public Move(int xx1,
int yy1,
int xx2,
int yy2)
- Construct a step move.
Move
public Move(int x,
int y)
- Construct an add move.
Move
public Move()
- Construct a quit move.
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index