PIbd-11 Karakozov_AK LabWork03 Hard #3
@ -1,33 +0,0 @@
|
||||
import java.awt.*;
|
||||
|
||||
public class EntityExcavator {
|
||||
private int Speed;
|
||||
private double Weight;
|
||||
private Color BodyColor;
|
||||
|
||||
public Color getBodyColor() {
|
||||
return BodyColor;
|
||||
}
|
||||
private Color AdditionalColor;
|
||||
public Color getAdditionalColor(){
|
||||
return AdditionalColor;
|
||||
}
|
||||
private boolean Prop;
|
||||
public boolean getProp(){
|
||||
return Prop;
|
||||
}
|
||||
private boolean Ladle;
|
||||
public boolean getLadle(){
|
||||
return Ladle;
|
||||
}
|
||||
public double Step;
|
||||
public void Init(int speed, double weight, Color bodyColor, Color additionalColor, boolean prop, boolean ladle){
|
||||
Speed = speed;
|
||||
Weight = weight;
|
||||
BodyColor = bodyColor;
|
||||
AdditionalColor = additionalColor;
|
||||
Prop = prop;
|
||||
Ladle = ladle;
|
||||
Step = Speed * 100 / Weight;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user