fix: modify ClientHandler
This commit is contained in:
@@ -13,8 +13,8 @@ public class ClientHandler implements Runnable {
|
|||||||
private String username;
|
private String username;
|
||||||
ClientHandler enemy;
|
ClientHandler enemy;
|
||||||
|
|
||||||
public void print(String requst) {
|
public void sendData(String request) {
|
||||||
//TODO: write to output
|
//TODO: write to output and flush
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEnemy(ClientHandler enemy) throws IOException {
|
public void setEnemy(ClientHandler enemy) throws IOException {
|
||||||
@@ -50,9 +50,10 @@ public class ClientHandler implements Runnable {
|
|||||||
int col = 0;//TODO: extract row and col
|
int col = 0;//TODO: extract row and col
|
||||||
//TODO: inform enemy of the attack
|
//TODO: inform enemy of the attack
|
||||||
}
|
}
|
||||||
else if (false) { //TODO: Handle Hit Result
|
else if (false) { //TODO: Handle Attack Result
|
||||||
//TODO: inform the enemy of the hit result
|
// TODO: Notify the attacker about the result of their attack (hit or miss)
|
||||||
}
|
}
|
||||||
|
//TODO(for later): handle winning and losing
|
||||||
}
|
}
|
||||||
} finally
|
} finally
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user