This commit is contained in:
Sergey Kozyrev 2023-11-15 14:21:31 +04:00
parent f7843bddbe
commit 58ecedcf4e

View File

@ -22,6 +22,8 @@ public class ComboGenericCollection <T extends BaseTanker, U extends IWheelDraw
Height = height; Height = height;
} }
public boolean Add(T tanker) public boolean Add(T tanker)
{ {
for (int i = 0; i < MaxSize(); i++) for (int i = 0; i < MaxSize(); i++)
@ -51,6 +53,8 @@ public class ComboGenericCollection <T extends BaseTanker, U extends IWheelDraw
} }
public DrawTanker CreateDraw() public DrawTanker CreateDraw()
{ {
T tanker = _tankers[random.nextInt(0, CountTankers)]; T tanker = _tankers[random.nextInt(0, CountTankers)];