add classes blank
This commit is contained in:
parent
afa8f598f7
commit
33b5749b9f
|
@ -0,0 +1,2 @@
|
|||
public class Board {
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
import java.awt.*;
|
||||
|
||||
public class HitResponse {
|
||||
private HitResponseType type;
|
||||
private Point point;
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
public enum HitResponseType {
|
||||
MISS, HIT, SUNK, VICTORY
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
import java.net.Socket;
|
||||
|
||||
public abstract class OnlinePlayer extends Player{
|
||||
private Socket socket;
|
||||
}
|
|
@ -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() {
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue