/** *
* Pacman.java * * Revisions: 1.0 Nov. 12, 2002 * Created the Pacman class * 1.1 Nov. 12, 2002 * Compiled, Completed, Done * ** * Collaboration Statement: * I worked on the homework assignment alone, using only * course materials. * * Created with JCreatorLE, some indents are off when viewed through notepad * or EMACS * * @author Jose Manuel Caban * @version Version 1.1, Nov. 12, 2002 */ public class Pacman extends MoveablePiece{ /** *holds the direction Pacman be going */ private int direction; /////////////// //Constructor// /////////////// /** *Constructor *@param x, x coordinate *@param y, y coordinate */ public Pacman(int x, int y){ super(x,y); direction = 1; } /** *@return a String */ public String toString(){ return (super.toString() + "Pacman]"); } /** *@param i, the new direction */ public void setDirection(int i){ this.direction = i; } /** *@return the direction */ public int getDirection(){ return direction; } /** * Debugging main for class Pacman. * This method will rigorously test my code. * *