Commit a65b934b authored by Quentin DRUAULT-AUBIN's avatar Quentin DRUAULT-AUBIN
Browse files

[Ship] Call getTemplateShips

parent c76ce055
...@@ -327,22 +327,12 @@ public class InGameGUIController { ...@@ -327,22 +327,12 @@ public class InGameGUIController {
startPosition = null; startPosition = null;
endPosition = null; endPosition = null;
// Get the ships. try {
// TODO: ships = facade.getFacadeData().getTemplateShips(); // Get the ships.
ships = new ArrayList<>(); ships = facade.getFacadeData().getTemplateShips();
ships.add(new Ship(ShipType.BATTLESHIP, 4)); } catch (DataException ex) {
ships.add(new Ship(ShipType.BATTLESHIP, 4)); Logger.getLogger(InGameGUIController.class.getName()).log(Level.SEVERE, null, ex);
ships.add(new Ship(ShipType.CARRIER, 4)); }
ships.add(new Ship(ShipType.CRUISER, 3));
ships.add(new Ship(ShipType.DESTROYER, 2));
ships.add(new Ship(ShipType.SUBMARINE, 2));
ships.add(new Ship(ShipType.BATTLESHIP, 4));
ships.add(new Ship(ShipType.BATTLESHIP, 4));
ships.add(new Ship(ShipType.CARRIER, 4));
ships.add(new Ship(ShipType.CRUISER, 3));
ships.add(new Ship(ShipType.DESTROYER, 2));
ships.add(new Ship(ShipType.SUBMARINE, 2));
//Add manually the button to set them up //Add manually the button to set them up
mapBtnType = new HashMap<>(); mapBtnType = new HashMap<>();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment