2023-10-05 23:49:36 +02:00
|
|
|
/*
|
|
|
|
============================================================
|
|
|
|
This is the "Blockeintrag" file from Author: Philipp Kotte
|
|
|
|
written on: 05 / 10 / 2023 at: 23:44
|
|
|
|
============================================================
|
|
|
|
*/
|
2023-10-10 21:22:33 +02:00
|
|
|
package Domain.Block;
|
2023-10-05 23:49:36 +02:00
|
|
|
|
|
|
|
public class Blockeintrag {
|
2023-11-05 20:40:16 +01:00
|
|
|
private int punkte;
|
|
|
|
private int stiche;
|
|
|
|
private int spielerId;
|
2023-10-10 21:13:21 +02:00
|
|
|
public Blockeintrag() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public Blockeintrag(int punkte, int stiche) {
|
2023-11-05 20:40:16 +01:00
|
|
|
if(stiche < 0){
|
|
|
|
throw new IllegalArgumentException("Ihre Stiche dürfen nicht im Negativen bereich sein");
|
|
|
|
}
|
2023-10-10 21:13:21 +02:00
|
|
|
this.stiche = stiche;
|
2023-11-05 20:40:16 +01:00
|
|
|
this.punkte = punkte;
|
2023-10-10 21:13:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public int getPunkte() {
|
|
|
|
return this.punkte;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getStiche() {
|
|
|
|
return this.stiche;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setStiche(int stiche) {
|
2023-11-05 20:40:16 +01:00
|
|
|
if (stiche < 0){
|
|
|
|
throw new IllegalArgumentException("Ihre Stich dürfen nicht im Negative bereich sein");
|
|
|
|
}
|
2023-10-10 21:13:21 +02:00
|
|
|
this.stiche = stiche;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setPunkte(int punkte) {
|
|
|
|
this.punkte = punkte;
|
|
|
|
}
|
2023-10-05 23:49:36 +02:00
|
|
|
}
|