Add constructor to MoveDTO
parent
f468f6f285
commit
329886aa5a
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue