Files
GTSchoolShit/CS1322/p6/Pacman.java
2025-06-07 01:59:34 -04:00

78 lines
1.5 KiB
Java

/**
* <PRE>
* Pacman.java
*
* Revisions: 1.0 Nov. 12, 2002
* Created the Pacman class
* 1.1 Nov. 12, 2002
* Compiled, Completed, Done
*
* </PRE>
*
* 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 <A HREF="mailto:gtg184g@mail.gatech.edu">Jose Manuel Caban</A>
* @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.
*
* <br><br>
* @param args a String array of command line arguments.
*/
public static void main(String[] args) {
}// end of main(String[] args)
}// end of class Pacman