Add constructor to MoveDTO

Quicksave
Justin 2025-06-19 17:44:24 +02:00
parent f468f6f285
commit 329886aa5a
1 changed files with 9 additions and 0 deletions

View File

@ -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;
}
}