/************************************ * Umass Amherst * CS377 Operating System * Lab2: * Author: Andrew Fagg * Date: 9/22/2002 * * Class in this file: Goal * * Description: DataStructure for Goals. Must * be initialized and maintained by parent class: * * - Once the goal has been eaten, isEaten must be set to true. * ***********************************/ import java.util.*; import java.lang.*; class Goal { public char cColor; // the goal's color public boolean isEaten; // true if the goal has been eaten. If // true, it is no longer edible by a robot private int Row; // the goal's Row Position private int Col; // the goal's Col Position final int GetPosRow() { return(Row); }; final int GetPosCol() { return(Col); }; final void SetPosRow(int newx) { Row = newx; }; final void SetPosCol(int newy) { Col = newy; }; }