import javax.microedition.lcdui.*; import java.util.*; class Catcher{ public int position=EggPosition.UP_LEFT; public int oldPosition=EggPosition.UP_LEFT; double xAxisMultiplier; double yAxisMultiplier; private int[][][] hand={ // upper left hand { {21,19, 15,23}, {15,23, 16,15}, {16,15, 11,15}, {11,15, 13,18}, {13,18, 15,15} }, // upper right hand { {30,19, 35,23}, {35,23, 33,15}, {33,15, 38,15}, {38,15, 36,18}, {36,18, 34,15} }, // lower left hand { {21,19, 18,25}, {18,25, 15,29}, {15,29, 11,29}, {11,29, 13,32}, {13,32, 15,29} }, // lower right hand { {30,19, 31,25}, {31,25, 34,29}, {34,29, 38,29}, {38,29, 36,32}, {36,32, 34,29} } }; public Catcher(int pos, int width, int height) { position=pos; xAxisMultiplier=(double)width/50.0; yAxisMultiplier=(double)height/50.0; } public void drawFigure(Graphics g) { // with black color g.setColor(0,0,0); int[][] coordinates={ // triangles {0,4, 10,14}, {0,14, 10,14}, {0,18, 10,28}, {0,28, 10,28}, {49,4, 39,14}, {49,14, 39,14}, {49,18, 39,28}, {49,28, 39,28}, // feet {17,48, 21,48}, {21,48, 21,41}, {29,41, 29,48}, {29,48, 33,48}, // dress {18,41, 33,41}, {33,41, 28,27}, {28,27, 30,19}, {30,19, 21,19}, {21,19, 23,27}, {23,27, 18,41}, // head {24,19, 23,10}, {23,10, 28,10}, {28,10, 29,15}, {29,15, 24,10}, {26,19, 27,15} }; // loop through all the coordinates for (int i=0; i