PIbd-21. Rodionov I.A. Lab work 02. Hard #2

Closed
ILRodionov wants to merge 2 commits from lab2 into lab1
4 changed files with 12 additions and 14 deletions
Showing only changes of commit ae45a3a851 - Show all commits

View File

@ -3,8 +3,6 @@ package projectMonorail.DrawingObjects;
import projectMonorail.DirectionType;
import projectMonorail.Entities.*;
import projectMonorail.Extras.*;
import projectMonorail.MovementStrategy.MoveToBorder;
import projectMonorail.MovementStrategy.MoveToCenter;
import java.awt.*;
import java.util.Random;

View File

@ -15,16 +15,16 @@ public class DrawingNormalWheels implements IDrawingWheels {
public void setWheelNumber(int number) {
switch (number) {
case 2:
wheelNumber = wheelNumber.Two;
wheelNumber = WheelNumber.Two;
break;
case 3:
wheelNumber = wheelNumber.Three;
wheelNumber = WheelNumber.Three;
break;
case 4:
wheelNumber = wheelNumber.Four;
wheelNumber = WheelNumber.Four;
break;
default:
wheelNumber = wheelNumber.Two;
wheelNumber = WheelNumber.Two;
}
}

View File

@ -15,16 +15,16 @@ public class DrawingSquarePatternWheels implements IDrawingWheels {
public void setWheelNumber(int number) {
switch (number) {
case 2:
wheelNumber = wheelNumber.Two;
wheelNumber = WheelNumber.Two;
break;
case 3:
wheelNumber = wheelNumber.Three;
wheelNumber = WheelNumber.Three;
break;
case 4:
wheelNumber = wheelNumber.Four;
wheelNumber = WheelNumber.Four;
break;
default:
wheelNumber = wheelNumber.Two;
wheelNumber = WheelNumber.Two;
}
}

View File

@ -15,16 +15,16 @@ public class DrawingVintageWheels implements IDrawingWheels {
public void setWheelNumber(int number) {
switch (number) {
case 2:
wheelNumber = wheelNumber.Two;
wheelNumber = WheelNumber.Two;
break;
case 3:
wheelNumber = wheelNumber.Three;
wheelNumber = WheelNumber.Three;
break;
case 4:
wheelNumber = wheelNumber.Four;
wheelNumber = WheelNumber.Four;
break;
default:
wheelNumber = wheelNumber.Two;
wheelNumber = WheelNumber.Two;
}
}