Add constructor to PieceDTO

Quicksave
Justin 2025-06-19 17:38:22 +02:00
parent dc766f961f
commit 326d4ce98c
1 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,14 @@
package de.hs_mannheim.informatik.chess.model;
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;
}
}