|
@ -74,7 +74,13 @@ public class GridGUI { |
|
|
} |
|
|
} |
|
|
public class MyCellListener implements ActionListener { |
|
|
public class MyCellListener implements ActionListener { |
|
|
public void actionPerformed(ActionEvent a) { |
|
|
public void actionPerformed(ActionEvent a) { |
|
|
|
|
|
|
|
|
|
|
|
if(!clicked) { |
|
|
|
|
|
BSButton cell = (BSButton) a.getSource(); |
|
|
|
|
|
Ship s = cell.getCellContents(); |
|
|
|
|
|
boolean killed = false; |
|
|
|
|
|
numOfGuesses++; |
|
|
|
|
|
boolean gameOver = true; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |