HardLab1
This commit is contained in:
parent
93cdbfed6e
commit
713b70615a
@ -27,8 +27,6 @@ public class DrawingOars extends JComponent {
|
|||||||
_startXCoordOar += 40;
|
_startXCoordOar += 40;
|
||||||
_startYCoordOar += 33;
|
_startYCoordOar += 33;
|
||||||
|
|
||||||
System.out.println("oarsNum(drawOars): "+ oarsNumber);
|
|
||||||
|
|
||||||
switch (oarsNumber) {
|
switch (oarsNumber) {
|
||||||
case One:
|
case One:
|
||||||
paintPaddle(g, _startXCoordOar, _startYCoordOar, _startYCoordOar + 16,pen);
|
paintPaddle(g, _startXCoordOar, _startYCoordOar, _startYCoordOar + 16,pen);
|
||||||
|
@ -35,7 +35,6 @@ public class DrawingSpeedBoat extends JComponent {
|
|||||||
isMotor, isProtectedGLass);
|
isMotor, isProtectedGLass);
|
||||||
drawingOars = new DrawingOars();
|
drawingOars = new DrawingOars();
|
||||||
drawingOars.setOarNumber(oarsNumber);
|
drawingOars.setOarNumber(oarsNumber);
|
||||||
System.out.println("oarsNum(DrSpeedBoat): "+oarsNumber);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,7 +43,6 @@ public class PictureBox extends JPanel {
|
|||||||
drawingSpeedBoat = new DrawingSpeedBoat();
|
drawingSpeedBoat = new DrawingSpeedBoat();
|
||||||
|
|
||||||
int oars = random.nextInt(1, 4);
|
int oars = random.nextInt(1, 4);
|
||||||
System.out.println("OARS: "+oars);
|
|
||||||
drawingSpeedBoat.Init(random.nextInt(50, 150),
|
drawingSpeedBoat.Init(random.nextInt(50, 150),
|
||||||
random.nextInt(40, 120),
|
random.nextInt(40, 120),
|
||||||
new Color(random.nextInt(0, 256), random.nextInt(0, 256),
|
new Color(random.nextInt(0, 256), random.nextInt(0, 256),
|
||||||
|
Loading…
Reference in New Issue
Block a user