Datasets:
ArXiv:
License:
File size: 450 Bytes
c574d3a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
package battleship.DataPackage;
public abstract class Data {
protected int clientID;
protected int recipientID;
Data(int clientID) {
this.clientID = clientID;
this.recipientID = -1;
}
public int getClientID() {
return clientID;
}
public int getRecipientID() {
return recipientID;
}
public void setRecipientID(int recipientID) {
this.recipientID = recipientID;
}
}
|