Изменил название класса
This commit is contained in:
parent
abb0e68974
commit
422b56827d
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,6 +5,7 @@ out/
|
|||||||
|
|
||||||
.idea
|
.idea
|
||||||
ProjectTankHard.iml
|
ProjectTankHard.iml
|
||||||
|
PIbd-23_Dyakonov_R_R_Tank_Hard.iml
|
||||||
|
|
||||||
### Eclipse ###
|
### Eclipse ###
|
||||||
.apt_generated
|
.apt_generated
|
||||||
|
@ -39,7 +39,7 @@ public class DrawningTankBase {
|
|||||||
DrawningWheels = new DrawningWheelsOrn(_tankWidth, _tankHeight, _startPosX, _startPosY, bodyColor);
|
DrawningWheels = new DrawningWheelsOrn(_tankWidth, _tankHeight, _startPosX, _startPosY, bodyColor);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
DrawningWheels = new DrawningWheelsOrn2(_tankWidth, _tankHeight, _startPosX, _startPosY, bodyColor);
|
DrawningWheels = new DrawningWheelsOrnSecond(_tankWidth, _tankHeight, _startPosX, _startPosY, bodyColor);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,12 +5,12 @@ import ProjectTankHard.WheelQuantityType;
|
|||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.awt.geom.Ellipse2D;
|
import java.awt.geom.Ellipse2D;
|
||||||
|
|
||||||
public class DrawningWheelsOrn2 implements IDraw {
|
public class DrawningWheelsOrnSecond implements IDraw {
|
||||||
private WheelQuantityType WheelsQuantity;
|
private WheelQuantityType WheelsQuantity;
|
||||||
private Color Color;
|
private Color Color;
|
||||||
private int Width, Height;
|
private int Width, Height;
|
||||||
public int currentX, currentY;
|
public int currentX, currentY;
|
||||||
public DrawningWheelsOrn2(int width, int height, int x, int y, Color color){
|
public DrawningWheelsOrnSecond(int width, int height, int x, int y, Color color){
|
||||||
Width = width;
|
Width = width;
|
||||||
Height = height;
|
Height = height;
|
||||||
currentX = x;
|
currentX = x;
|
Loading…
x
Reference in New Issue
Block a user