Merge branch 'LabWork03' into LabWork04

This commit is contained in:
Safgerd 2022-11-22 16:05:10 +04:00
commit 44da4da1bf
2 changed files with 8 additions and 8 deletions

View File

@ -30,7 +30,7 @@ public class EntityWithRollers<T extends EntityTracktor, U extends IDrawningRoll
return true;
}
public IDrawningObject constructArtillery() {
public IDrawningObject constructTracktor() {
if (entitiesCount == 0 || rollersCount == 0) {
return null;
}

View File

@ -40,9 +40,9 @@ public class FormGallery extends JFrame {
}
buttonRefresh.addActionListener(e -> {
first = storage.constructArtillery();
second = storage.constructArtillery();
third = storage.constructArtillery();
first = storage.constructTracktor();
second = storage.constructTracktor();
third = storage.constructTracktor();
first.setObject(0, 10, pictureBox.getWidth(), pictureBox.getHeight());
second.setObject(150, 10, pictureBox.getWidth(), pictureBox.getHeight());