Added constructor to PlayerDTO
parent
c0bff9e7c6
commit
f6cfc8fd9b
|
|
@ -1,5 +1,12 @@
|
|||
package de.hs_mannheim.informatik.chess.model;
|
||||
|
||||
public class PlayerDTO {
|
||||
private String name;
|
||||
private String color; // "WHITE" oder "BLACK"
|
||||
|
||||
public PlayerDTO(String name, String color) {
|
||||
this.name = name;
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue