PIbd-21 Belianin N.N. LabWork01 #1

Closed
Belnik wants to merge 4 commits from LabWork01 into main
2 changed files with 1 additions and 1 deletions
Showing only changes of commit 37b37b1fa1 - Show all commits

View File

@ -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;

View File

@ -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;