наверно финал

This commit is contained in:
AnnaLioness 2023-10-24 01:45:26 +04:00
parent 941cc8140e
commit 9c43a295f5
2 changed files with 1 additions and 3 deletions

View File

@ -35,7 +35,7 @@ additionalColor, boolean crane, boolean containers,int deck, int deckType, int w
return; return;
} }
iDecksDrawing = decks; iDecksDrawing = decks;
iDecksDrawing.setNumDecks(ship.Deck);
} }
@Override @Override

View File

@ -46,8 +46,6 @@ public class ShipGenericDop<T extends EntityShip, U extends IDecksDrawing> {
} }
int i = rand.nextInt(countShips); int i = rand.nextInt(countShips);
int j = rand.nextInt(countDecks); int j = rand.nextInt(countDecks);
DrawingShip drawingShip;
DrawingContainerShip drawingContainerShip;
if(Ships[i] instanceof EntityContainerShip){ if(Ships[i] instanceof EntityContainerShip){
return new DrawingContainerShip((EntityContainerShip)Ships[i], (IDecksDrawing)Decks[j], _pictureWidth, _pictureHeight); return new DrawingContainerShip((EntityContainerShip)Ships[i], (IDecksDrawing)Decks[j], _pictureWidth, _pictureHeight);
} }