наверно финал
This commit is contained in:
parent
941cc8140e
commit
9c43a295f5
@ -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
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user