* A class Position to store and change a Piece's position. * * @March 2000 * @author Ming Gu, Yasir Mehboob, Ammar Bandukwala, Mustally Hussain, * Shiva Kabra. */ public interface Position { /** public int rownumber; public int columnnumber; */ /** * Constructor, takes rownumber and columnnumber. */ // +------------+----------------------------------------- // | Extractors | // +------------+ /** * Some other objects may ask a piece for its information, * so some necessary extractors are needed. */ /** Get a piece's row number. */ public int getRow(); /** Get a piece's column number. */ public int getColumn(); /** Move a piece. Change only its position. */ public void movePiece(int newrownumber, int newcolumnnumber ); } // interface Position