фиксик
This commit is contained in:
parent
35d781923f
commit
4b1b74674c
@ -31,7 +31,7 @@ public class HardGeneric <T extends EntityBus,U extends IDraw> {
|
|||||||
pictureBoxWidth = width;
|
pictureBoxWidth = width;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean insertBus(T bus) {
|
public boolean Add(T bus) {
|
||||||
if (bus == null) {
|
if (bus == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -42,7 +42,7 @@ public class HardGeneric <T extends EntityBus,U extends IDraw> {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean insertDoor(U door) {
|
public boolean Add(U door) {
|
||||||
if (door == null) {
|
if (door == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -59,8 +59,8 @@ public class HardForm extends JFrame {
|
|||||||
HardGeneric<EntityBus, IDraw> objectGenerator = new HardGeneric<>(size, size, pictureBoxWidth, pictureBoxHeight);
|
HardGeneric<EntityBus, IDraw> objectGenerator = new HardGeneric<>(size, size, pictureBoxWidth, pictureBoxHeight);
|
||||||
for (int i = 0; i < size; i++) {
|
for (int i = 0; i < size; i++) {
|
||||||
EntityBus ent = createRandomEntityBus();
|
EntityBus ent = createRandomEntityBus();
|
||||||
objectGenerator.insertBus(ent);
|
objectGenerator.Add(ent);
|
||||||
objectGenerator.insertDoor(createDrawningDoor());
|
objectGenerator.Add(createDrawningDoor());
|
||||||
}
|
}
|
||||||
createObjectButton.addActionListener(
|
createObjectButton.addActionListener(
|
||||||
new ActionListener() {
|
new ActionListener() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user