
/**
 * A robot that is capable of moving diagonally (up one, over one)
 * 
 * @author Russell C. Bjork 
 * @version January 9, 2006
 */
import kareltherobot.*;

public class DiagonalMoverRobot2 extends Robot
{
	/** Constructor
	 *
	 *	@param street the starting street for this robot
	 *	@param avenue the starting avenue for this robot
	 *	@param direction the direction this robot is initially facing
	 *	@param beepers the number of beepers this robot has initially
	 */
	public DiagonalMoverRobot2(int street, int avenue, Direction direction, int beepers)
	{
		super(street, avenue, direction, beepers);
	}
	
	/** Move diagonally - up one, over one
	 */
	public void moveDiagonally()
	{
		move();
		turnLeft();
		move();
		turnRight();
	}
	
	/** Turn 90 degrees right
	 */
	public void turnRight()
	{
	    turnLeft();
	    turnLeft();
	    turnLeft();
	}
}