Javadoc Kommentare erweitert in BoardDisplay

This commit is contained in:
Kaver 2024-12-15 16:01:52 +01:00
parent c0f22cec6e
commit 37a984772c
1 changed files with 6 additions and 0 deletions

View File

@ -159,6 +159,12 @@ public class BoardDisplay extends JPanel {
//} //}
} }
/**
* Faerbt das Spielfeld blau, ueberprueft ob das aktuelle Schiff null ist
* Faerbt eine Preview in das Spielfeld ein ob Schiff setzen moeglich ist
* Schiffe die gesetzt wurden werden grau gefaerbt
* Aufrufen von refreshButtonState um zu zeigen ob Button drueckbar ist
*/
public void paintFields() { public void paintFields() {
List<Point> test=new ArrayList<>(); List<Point> test=new ArrayList<>();
if(currentShip != null) { if(currentShip != null) {