Готовая Лабораторная 2
This commit is contained in:
parent
a3c081c02a
commit
bac51aa40c
@ -5,9 +5,9 @@ public enum CountWheels {
|
|||||||
Five(5);
|
Five(5);
|
||||||
private final int Value;
|
private final int Value;
|
||||||
CountWheels(int Count){
|
CountWheels(int Count){
|
||||||
Value=Count;
|
Value = Count;
|
||||||
}
|
}
|
||||||
public int getCountWheels(){
|
public int getCountWheels(){
|
||||||
return Value;
|
return Value;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -106,4 +106,4 @@ public class DrawingWheelsCombination implements IOrnamentForm {
|
|||||||
CaterpillarStar(g,_startPosX + 105, _startPosY + 12);
|
CaterpillarStar(g,_startPosX + 105, _startPosY + 12);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -14,4 +14,4 @@ public class EntityArmoVehicle {
|
|||||||
numWheel = _numWheel;
|
numWheel = _numWheel;
|
||||||
Step = (double) Speed * 200 / Weight;
|
Step = (double) Speed * 200 / Weight;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -6,8 +6,7 @@ public class EntityTank extends EntityArmoVehicle {
|
|||||||
public boolean Caterpillar;
|
public boolean Caterpillar;
|
||||||
public boolean Tower;
|
public boolean Tower;
|
||||||
|
|
||||||
public EntityTank(int speed, double weight, Color bodyColor, int _numWheel, Color additionalColor, boolean bodyKit, boolean caterpillar, boolean tower)
|
public EntityTank(int speed, double weight, Color bodyColor, int _numWheel, Color additionalColor, boolean bodyKit, boolean caterpillar, boolean tower) {
|
||||||
{
|
|
||||||
super(speed, weight, bodyColor, _numWheel);
|
super(speed, weight, bodyColor, _numWheel);
|
||||||
AdditionalColor = additionalColor;
|
AdditionalColor = additionalColor;
|
||||||
BodyKit = bodyKit;
|
BodyKit = bodyKit;
|
||||||
|
@ -10,4 +10,4 @@ public interface IMoveableObject {
|
|||||||
|
|
||||||
/// Изменение направления пермещения объекта
|
/// Изменение направления пермещения объекта
|
||||||
void MoveObject(Direction direction);
|
void MoveObject(Direction direction);
|
||||||
}
|
}
|
@ -2,4 +2,4 @@ public enum Status {
|
|||||||
NotInit,
|
NotInit,
|
||||||
InProgress,
|
InProgress,
|
||||||
Finish
|
Finish
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user