diff --git a/Tank/.idea/misc.xml b/Tank/.idea/misc.xml index 1e4328b..5d30da4 100644 --- a/Tank/.idea/misc.xml +++ b/Tank/.idea/misc.xml @@ -1,3 +1,4 @@ + diff --git a/Tank/Tank.iml b/Tank/Tank.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/Tank/Tank.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Tank/src/CountWheels.java b/Tank/src/CountWheels.java index b937e6d..dfe3b65 100644 --- a/Tank/src/CountWheels.java +++ b/Tank/src/CountWheels.java @@ -5,7 +5,7 @@ public enum CountWheels { Five(5); private final int Value; CountWheels(int Count){ - Value=Count; + Value = Count; } public int getCountWheels(){ return Value; diff --git a/Tank/src/DrawingArmoVehicle.java b/Tank/src/DrawingArmoVehicle.java index a6ca84f..dc9a434 100644 --- a/Tank/src/DrawingArmoVehicle.java +++ b/Tank/src/DrawingArmoVehicle.java @@ -22,7 +22,7 @@ public class DrawingArmoVehicle { ArmoVehicle = new EntityArmoVehicle(speed, weight, bodyColor, _numWheel); Random random = new Random(); - switch (random.nextInt(0, 3)) { + switch(random.nextInt(0, 3)) { case 0: OrnamentsForm = new DrawingWheelsCombination(); break; @@ -54,19 +54,19 @@ public class DrawingArmoVehicle { _startPosY = Math.min(y, _pictureHeight - _TankHeight); } - public int GetPosX() { + public int GetPosX () { return _startPosX; } - public int GetPosY() { + public int GetPosY () { return _startPosY; } - public int GetWidth() { + public int GetWidth () { return _TankWidth; } - public int GetHeight() { + public int GetHeight () { return _TankHeight; } @@ -95,19 +95,19 @@ public class DrawingArmoVehicle { switch (direction) { //влево case Left: - _startPosX -= (int) ArmoVehicle.Step; + _startPosX -= (int)ArmoVehicle.Step; break; //вверх case Up: - _startPosY -= (int) ArmoVehicle.Step; + _startPosY -= (int)ArmoVehicle.Step; break; // вправо case Right: - _startPosX += (int) ArmoVehicle.Step; + _startPosX += (int)ArmoVehicle.Step; break; //вниз case Down: - _startPosY += (int) ArmoVehicle.Step; + _startPosY += (int)ArmoVehicle.Step; break; } }