From 329886aa5a7d809ff1baff0f12ac603e0a91e3e5 Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 19 Jun 2025 17:44:24 +0200 Subject: [PATCH] Add constructor to MoveDTO --- .../de/hs_mannheim/informatik/chess/model/MoveDTO.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/schach/src/main/java/de/hs_mannheim/informatik/chess/model/MoveDTO.java b/schach/src/main/java/de/hs_mannheim/informatik/chess/model/MoveDTO.java index 48064a8..206081a 100644 --- a/schach/src/main/java/de/hs_mannheim/informatik/chess/model/MoveDTO.java +++ b/schach/src/main/java/de/hs_mannheim/informatik/chess/model/MoveDTO.java @@ -1,5 +1,14 @@ package de.hs_mannheim.informatik.chess.model; public class MoveDTO { + private int fromRow, fromCol; + private int toRow, toCol; + + public MoveDTO(int fromRow, int fromCol, int toRow, int toCol) { + this.fromRow = fromRow; + this.fromCol = fromCol; + this.toRow = toRow; + this.toCol = toCol; + } }