27 lines
458 B
Java
27 lines
458 B
Java
|
|
public class HumanPlayer extends LocalPlayer {
|
|
/*
|
|
- myTurn : bool
|
|
- isServer : bool
|
|
- waitingForResponse : bool
|
|
- enemy : Player
|
|
- name : String
|
|
- board : Board
|
|
+ receiveShoot(Point) : void
|
|
+ receiveHit(HitResponse) : void
|
|
+ click(Point) : void
|
|
+ beginTurn() : void
|
|
|
|
*/
|
|
|
|
public HumanPlayer() {
|
|
Board board = new Board();
|
|
this.board = board;
|
|
}
|
|
|
|
public void setBoardSize(int s) {
|
|
this.board.setSize(s);
|
|
this.board.initBoard();
|
|
}
|
|
}
|