Compare commits
No commits in common. "c2700c157450f167a04c3a09f1c946aa00c75443" and "2cb7ee7ee1d469b9220a4cf66050b16a6ebb3dc2" have entirely different histories.
c2700c1574
...
2cb7ee7ee1
3
makefile
3
makefile
|
@ -29,9 +29,6 @@ test-jar: jar
|
|||
# $(JR) -cp "$(OUT_DIR)/:$(LIB_DIR)/*" $(MAIN_CLASS)
|
||||
$(JR) -jar $(OUT_DIR)/$(JAR_NAME)
|
||||
|
||||
docs:
|
||||
javadoc -cp "$(LIB_DIR)/*" -d "docs" $(SRC_DIR)/*.java
|
||||
|
||||
test: classfiles
|
||||
$(JR) -cp "$(OUT_DIR)$(SEPERATOR)$(LIB_DIR)/*" $(MAIN_CLASS)
|
||||
|
||||
|
|
|
@ -155,7 +155,6 @@ public abstract class AiPlayer extends LocalPlayer implements Runnable {
|
|||
while(i.hasNext()) {
|
||||
Thread thread = i.next();
|
||||
try {
|
||||
thread.interrupt();
|
||||
thread.join();
|
||||
i.remove();
|
||||
} catch (InterruptedException e) {
|
||||
|
|
|
@ -174,7 +174,6 @@ public class BoardDisplay extends JPanel {
|
|||
if(currentShip != null) {
|
||||
test = currentShip.getVirtualOccupiedPoints(mousePosition, horizontal);
|
||||
}
|
||||
if (player == null || player.getBoard() == null) return;
|
||||
for(int i = 0; i < gridSize; i++) {
|
||||
for(int j = 0; j < gridSize; j++) {
|
||||
if(fields[i][j] == null) {
|
||||
|
|
|
@ -23,7 +23,7 @@ public class GameBoard extends JPanel {
|
|||
ImageIcon gameBoardX = new ImageIcon("graphics/gameboardx.png");
|
||||
|
||||
// kontextText Text-Strings
|
||||
String kT1 = "Bitte Schiffe setzten - Rechtsclick zum drehen";
|
||||
String kT1 = "Bitte Schiffe setzten";
|
||||
String kT2 = "Warte auf Gegner";
|
||||
String kT3 = "Du fängst an";
|
||||
String kT4 = "Dein Gegner fängt an";
|
||||
|
|
|
@ -4,7 +4,6 @@ import java.awt.event.ActionEvent;
|
|||
import java.awt.event.ActionListener;
|
||||
import java.io.IOException;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* Das JoinGame Panel dient zum setzten des Ports/IP-Adresse.
|
||||
|
@ -17,7 +16,7 @@ public class JoinGame extends JPanel {
|
|||
String standardPort = "51525";
|
||||
|
||||
// Grafiken
|
||||
ImageIcon backButtonIcon = new ImageIcon(Objects.requireNonNull(getClass().getClassLoader().getResource("graphics/backButton.png")));
|
||||
ImageIcon backButtonIcon = new ImageIcon("graphics/backButton.png");
|
||||
|
||||
// Labels
|
||||
JLabel spielBeitretenLabel;
|
||||
|
|
|
@ -129,7 +129,7 @@ public class MainFrame extends JFrame {
|
|||
* @author Lucas Bronson, Peer Ole Wachtel, Luca Conte
|
||||
*/
|
||||
public void showPanelWin(String panelName, Player player){
|
||||
if(gameBoard == null || player != gameBoard.getP1()){
|
||||
if(player != gameBoard.getP1()){
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -152,7 +152,7 @@ public class MainFrame extends JFrame {
|
|||
* @author Lucas Bronson, Peer Ole Wachtel, Luca Conte
|
||||
*/
|
||||
public void showPanelLose(String panelName, Player player){
|
||||
if(gameBoard == null || player != gameBoard.getP1()){
|
||||
if(player != gameBoard.getP1()){
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue