Compare commits
No commits in common. "main" and "kommentar-check" have entirely different histories.
main
...
kommentar-
3
makefile
3
makefile
|
@ -29,9 +29,6 @@ test-jar: jar
|
||||||
# $(JR) -cp "$(OUT_DIR)/:$(LIB_DIR)/*" $(MAIN_CLASS)
|
# $(JR) -cp "$(OUT_DIR)/:$(LIB_DIR)/*" $(MAIN_CLASS)
|
||||||
$(JR) -jar $(OUT_DIR)/$(JAR_NAME)
|
$(JR) -jar $(OUT_DIR)/$(JAR_NAME)
|
||||||
|
|
||||||
docs:
|
|
||||||
javadoc -cp "$(LIB_DIR)/*" -d "docs" $(SRC_DIR)/*.java
|
|
||||||
|
|
||||||
test: classfiles
|
test: classfiles
|
||||||
$(JR) -cp "$(OUT_DIR)$(SEPERATOR)$(LIB_DIR)/*" $(MAIN_CLASS)
|
$(JR) -cp "$(OUT_DIR)$(SEPERATOR)$(LIB_DIR)/*" $(MAIN_CLASS)
|
||||||
|
|
||||||
|
|
|
@ -155,7 +155,6 @@ public abstract class AiPlayer extends LocalPlayer implements Runnable {
|
||||||
while(i.hasNext()) {
|
while(i.hasNext()) {
|
||||||
Thread thread = i.next();
|
Thread thread = i.next();
|
||||||
try {
|
try {
|
||||||
thread.interrupt();
|
|
||||||
thread.join();
|
thread.join();
|
||||||
i.remove();
|
i.remove();
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
|
|
|
@ -174,7 +174,6 @@ public class BoardDisplay extends JPanel {
|
||||||
if(currentShip != null) {
|
if(currentShip != null) {
|
||||||
test = currentShip.getVirtualOccupiedPoints(mousePosition, horizontal);
|
test = currentShip.getVirtualOccupiedPoints(mousePosition, horizontal);
|
||||||
}
|
}
|
||||||
if (player == null || player.getBoard() == null) return;
|
|
||||||
for(int i = 0; i < gridSize; i++) {
|
for(int i = 0; i < gridSize; i++) {
|
||||||
for(int j = 0; j < gridSize; j++) {
|
for(int j = 0; j < gridSize; j++) {
|
||||||
if(fields[i][j] == null) {
|
if(fields[i][j] == null) {
|
||||||
|
|
|
@ -23,7 +23,7 @@ public class GameBoard extends JPanel {
|
||||||
ImageIcon gameBoardX = new ImageIcon("graphics/gameboardx.png");
|
ImageIcon gameBoardX = new ImageIcon("graphics/gameboardx.png");
|
||||||
|
|
||||||
// kontextText Text-Strings
|
// kontextText Text-Strings
|
||||||
String kT1 = "Bitte Schiffe setzten - Rechtsclick zum drehen";
|
String kT1 = "Bitte Schiffe setzten";
|
||||||
String kT2 = "Warte auf Gegner";
|
String kT2 = "Warte auf Gegner";
|
||||||
String kT3 = "Du fängst an";
|
String kT3 = "Du fängst an";
|
||||||
String kT4 = "Dein Gegner fängt an";
|
String kT4 = "Dein Gegner fängt an";
|
||||||
|
@ -155,7 +155,7 @@ public class GameBoard extends JPanel {
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
kontextText.setText(kT2);
|
kontextText.setText(kT2);
|
||||||
p1.ready();
|
p1.ready();
|
||||||
if(p1.isReady()) {
|
if(true) {
|
||||||
remove(readyButton);
|
remove(readyButton);
|
||||||
remove(resetButton);
|
remove(resetButton);
|
||||||
remove(rightButtonsPanel);
|
remove(rightButtonsPanel);
|
||||||
|
|
|
@ -129,7 +129,7 @@ public class MainFrame extends JFrame {
|
||||||
* @author Lucas Bronson, Peer Ole Wachtel, Luca Conte
|
* @author Lucas Bronson, Peer Ole Wachtel, Luca Conte
|
||||||
*/
|
*/
|
||||||
public void showPanelWin(String panelName, Player player){
|
public void showPanelWin(String panelName, Player player){
|
||||||
if(gameBoard == null || player != gameBoard.getP1()){
|
if(player != gameBoard.getP1()){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ public class MainFrame extends JFrame {
|
||||||
* @author Lucas Bronson, Peer Ole Wachtel, Luca Conte
|
* @author Lucas Bronson, Peer Ole Wachtel, Luca Conte
|
||||||
*/
|
*/
|
||||||
public void showPanelLose(String panelName, Player player){
|
public void showPanelLose(String panelName, Player player){
|
||||||
if(gameBoard == null || player != gameBoard.getP1()){
|
if(player != gameBoard.getP1()){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue