PIbd-21. Rodionov I.A. Lab work 02. Hard #2
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user