FileDocCategorySizeDatePackage
ChessMove.javaAPI DocExample621Tue Jan 20 21:19:42 GMT 1998dcj.examples.message

ChessMove

public class ChessMove extends Object implements Serializable
Source code from "Java Distributed Computing", by Jim Farley. Class: ChessMove Example: 6-8 Description: Encapsulation of a chess move.

Fields Summary
String
fromPos
String
toPos
int
checkFlag
Constructors Summary
public ChessMove(String from, String to, int ckFlag)

    fromPos = from;
    toPos = to;
    checkFlag = ckFlag;
  
Methods Summary
public intcheckFlag()

    return checkFlag;
  
public java.lang.Stringfrom()

    return fromPos;
  
public java.lang.Stringto()

    return toPos;