PIbd-21 Belianin N.N. LabWork01 #1
@ -120,6 +120,7 @@ public class DrawingTank {
|
||||
g2.drawPolygon(xPointsGun,yPointsGun,nPointsGun);
|
||||
g2.fillPolygon(xPointsGun,yPointsGun,nPointsGun);
|
||||
}
|
||||
|
||||
public void ChangeBorders(int width,int height)
|
||||
{
|
||||
_pictureWidth = width;
|
||||
|
@ -17,7 +17,6 @@ public class EntityTank {
|
||||
public float Step;
|
||||
|
||||
public void Init(int speed, float weight, Color bodyColor){
|
||||
|
||||
Random rnd = new Random();
|
||||
Speed = speed <= 0 ? rnd.nextInt(50)+10 : speed;
|
||||
Weight = weight <= 0 ? rnd.nextInt(100)+500 : weight;
|
||||
|
Loading…
Reference in New Issue
Block a user