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).


Variable Index

 o ADD
 o moveKind
 o QUIT
 o STEP
 o x1
 o x2
 o y1
 o y2

Constructor Index

 o Move()
Construct a quit move.
 o Move(int, int)
Construct an add move.
 o Move(int, int, int, int)
Construct a step move.

Method Index

 o toString()

Variables

 o QUIT
 public static final int QUIT
 o ADD
 public static final int ADD
 o STEP
 public static final int STEP
 o moveKind
 public int moveKind
 o x1
 public int x1
 o y1
 public int y1
 o x2
 public int x2
 o y2
 public int y2

Constructors

 o Move
 public Move(int xx1,
             int yy1,
             int xx2,
             int yy2)
Construct a step move.

 o Move
 public Move(int x,
             int y)
Construct an add move.

 o Move
 public Move()
Construct a quit move.

Methods

 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index