| XXJRobo.java |
// XJRobo Extension of XJRobo
// which adds rect method.
// Author: David 5/9/99
// Version: 1.0
import java.awt.*;
public class XXJRobo extends XJRobo
{
public XXJRobo ( Graphics g, String theName )
{
super( g, theName );
}
// rect - Draw rectangle with given height and width
// Pre: Facing north, pen down, bottom left corner.
// Post: as pre-cond., with rectangle drawn.
public void rect( int height, int width )
{
f( height );
r( 90 );
f( width );
r( 90 );
f( height );
r( 90 );
f( width );
r( 90 );
}
} // end JRobo class