Изменил название класса

This commit is contained in:
dyakonovr 2023-12-02 18:35:45 +04:00
parent abb0e68974
commit 422b56827d
3 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -5,6 +5,7 @@ out/
.idea
ProjectTankHard.iml
PIbd-23_Dyakonov_R_R_Tank_Hard.iml
### Eclipse ###
.apt_generated

View File

@ -39,7 +39,7 @@ public class DrawningTankBase {
DrawningWheels = new DrawningWheelsOrn(_tankWidth, _tankHeight, _startPosX, _startPosY, bodyColor);
break;
case 2:
DrawningWheels = new DrawningWheelsOrn2(_tankWidth, _tankHeight, _startPosX, _startPosY, bodyColor);
DrawningWheels = new DrawningWheelsOrnSecond(_tankWidth, _tankHeight, _startPosX, _startPosY, bodyColor);
break;
}

View File

@ -5,12 +5,12 @@ import ProjectTankHard.WheelQuantityType;
import java.awt.*;
import java.awt.geom.Ellipse2D;
public class DrawningWheelsOrn2 implements IDraw {
public class DrawningWheelsOrnSecond implements IDraw {
private WheelQuantityType WheelsQuantity;
private Color Color;
private int Width, Height;
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;
Height = height;
currentX = x;