This commit is contained in:
25
app/src/main/java/game/Player.java
Normal file
25
app/src/main/java/game/Player.java
Normal file
@@ -0,0 +1,25 @@
|
||||
package game;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class Player implements Serializable {
|
||||
|
||||
static private final long serialVersionUID = 9999;
|
||||
|
||||
private final String pseudo;
|
||||
private final int id;
|
||||
|
||||
public Player(int id, String pseudo) {
|
||||
this.pseudo = pseudo;
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getPseudo() {
|
||||
return this.pseudo;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user