add classes blank

This commit is contained in:
Ole Wachtel 2024-10-29 12:39:45 +01:00
parent afa8f598f7
commit 33b5749b9f
5 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,2 @@
public class Board {
}

View File

@ -0,0 +1,6 @@
import java.awt.*;
public class HitResponse {
private HitResponseType type;
private Point point;
}

View File

@ -0,0 +1,3 @@
public enum HitResponseType {
MISS, HIT, SUNK, VICTORY
}

View File

@ -0,0 +1,5 @@
import java.net.Socket;
public abstract class OnlinePlayer extends Player{
private Socket socket;
}

View File

@ -0,0 +1,26 @@
import java.awt.*;
public abstract class Player {
private boolean myTurn;
private boolean isServer;
private boolean waitingForResponse;
private Player enemy;
private String name;
private Board board;
public void receiveShoot(Point point) {
}
public void receiveHit(HitResponse hitResponse) {
}
public void click(Point point) {
}
public void beginTrun() {
}
}