Add constructor to PieceDTO
parent
dc766f961f
commit
326d4ce98c
|
|
@ -1,5 +1,14 @@
|
||||||
package de.hs_mannheim.informatik.chess.model;
|
package de.hs_mannheim.informatik.chess.model;
|
||||||
|
|
||||||
public class PieceDTO {
|
public class PieceDTO {
|
||||||
|
private String type; // z.B. "KING", "PAWN"
|
||||||
|
private String color; // "WHITE" oder "BLACK"
|
||||||
|
private String unicodeSymbol;
|
||||||
|
|
||||||
|
public PieceDTO(String type, String color, String unicodeSymbol) {
|
||||||
|
this.type = type;
|
||||||
|
this.color = color;
|
||||||
|
this.unicodeSymbol = unicodeSymbol;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue