PIbd-21 Potapov N.S. LabWork06 Hard #6
@ -1,6 +1,7 @@
|
||||
package ProjectStormtrooper;
|
||||
|
||||
import java.awt.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Stack;
|
||||
|
||||
public class PlanesGenericCollection<T extends DrawingPlane, U extends IMoveableObject> {
|
||||
@ -9,6 +10,9 @@ public class PlanesGenericCollection<T extends DrawingPlane, U extends IMoveable
|
||||
private final int _placeSizeWidth = 160;
|
||||
private final int _placeSizeHeight = 120;
|
||||
private SetGeneric<T> _collection;
|
||||
public ArrayList<T> GetPlanes() {
|
||||
return _collection.GetEnumerator();
|
||||
}
|
||||
|
||||
public PlanesGenericCollection(int picWidth, int picHeight) {
|
||||
int horizontalObjectsCount = picWidth / _placeSizeWidth;
|
||||
|
Loading…
x
Reference in New Issue
Block a user